Skip to content

Commit 48025f8

Browse files
committed
Regenerate LST models
1 parent 4e314e7 commit 48025f8

File tree

3 files changed

+25
-5
lines changed

3 files changed

+25
-5
lines changed

Rewrite/src/Rewrite.Java/Tree/J.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6526,7 +6526,7 @@ public class Unknown(
65266526
Space prefix,
65276527
Markers markers,
65286528
Unknown.Source unknownSource
6529-
) : J, Statement, Expression, TypeTree, TypedTree, NameTree, MutableTree<Unknown>
6529+
) : J, Statement, Expression, TypeTree, MutableTree<Unknown>
65306530
{
65316531
public J? AcceptJava<P>(JavaVisitor<P> v, P p)
65326532
{

Rewrite/src/Rewrite.Xml/Tree/Xml.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ public Document WithRoot(Xml.Tag newRoot)
119119

120120
public string Eof => eof;
121121

122+
public Document WithEof(string newEof)
123+
{
124+
return newEof == eof ? this : new Document(id, sourcePath, prefix, markers, charsetName, charsetBomMarked, checksum, fileAttributes, prolog, root, newEof);
125+
}
126+
122127
public bool Equals(Rewrite.Core.Tree? other)
123128
{
124129
return other is Document && other.Id == Id;
@@ -375,6 +380,11 @@ public Tag WithMarkers(Markers newMarkers)
375380

376381
public string Name => name;
377382

383+
public Tag WithName(string newName)
384+
{
385+
return newName == name ? this : new Tag(id, prefix, markers, newName, attributes, content, closingTag, beforeTagDelimiterPrefix);
386+
}
387+
378388
public IList<Xml.Attribute> Attributes => attributes;
379389

380390
public Tag WithAttributes(IList<Xml.Attribute> newAttributes)
@@ -384,6 +394,11 @@ public Tag WithAttributes(IList<Xml.Attribute> newAttributes)
384394

385395
public IList<Content>? Content => content;
386396

397+
public Tag WithContent(IList<Content>? newContent)
398+
{
399+
return newContent == content ? this : new Tag(id, prefix, markers, name, attributes, newContent, closingTag, beforeTagDelimiterPrefix);
400+
}
401+
387402
public Closing? ClosingTag => closingTag;
388403

389404
public Tag WithClosingTag(Closing? newClosingTag)
@@ -1008,6 +1023,11 @@ public JspDirective WithBeforeTypePrefix(string newBeforeTypePrefix)
10081023

10091024
public string Type => type;
10101025

1026+
public JspDirective WithType(string newType)
1027+
{
1028+
return newType == type ? this : new JspDirective(id, prefix, markers, beforeTypePrefix, newType, attributes, beforeDirectiveEndPrefix);
1029+
}
1030+
10111031
public IList<Xml.Attribute> Attributes => attributes;
10121032

10131033
public JspDirective WithAttributes(IList<Xml.Attribute> newAttributes)

Rewrite/src/Rewrite.Yaml/Tree/Yaml.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,10 @@ public override int GetHashCode()
234234
}
235235
}
236236

237+
public interface Block : Yaml
238+
{
239+
}
240+
237241
public sealed class Scalar(
238242
Guid id,
239243
string prefix,
@@ -689,8 +693,4 @@ public override int GetHashCode()
689693
}
690694
}
691695

692-
public interface Block : Yaml
693-
{
694-
}
695-
696696
}

0 commit comments

Comments
 (0)