Skip to content

Commit

Permalink
Fix indentation errors in generated code.
Browse files Browse the repository at this point in the history
  • Loading branch information
GGG-KILLER committed Jan 29, 2024
1 parent 87c97c1 commit cfb0fba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ public virtual bool IsEquivalentTo([NotNullWhen(true)] global::Tsu.Trees.RedGree
if (this == other) return true;
if (other == null) return false;
if (this.Kind != other.Kind) return false;
var n = this.SlotCount;

var n = this.SlotCount;
if (n != other.SlotCount) return false;

for (int i = 0; i < n; i++)
Expand Down
2 changes: 1 addition & 1 deletion Tsu.Trees.RedGreen/sourcegen/GreenTreeWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public static void WriteGreenRoot(this IndentedTextWriter writer, Tree tree, Nod
writer.WriteLine("if (other == null) return false;");
foreach (var extraData in root.ExtraData)
{
writer.Write("if (this.{0} != other.{0}) return false;", extraData.PropertyName);
writer.WriteLine("if (this.{0} != other.{0}) return false;", extraData.PropertyName);
}
writer.WriteLineNoTabs("");
writer.WriteLine("var n = this.SlotCount;");
Expand Down

0 comments on commit cfb0fba

Please sign in to comment.