Skip to content

Commit

Permalink
Merge branch '23-feature-component-like-partial-templa'
Browse files Browse the repository at this point in the history
  • Loading branch information
Antaris committed Nov 11, 2024
2 parents a3e2a2e + 03c6c29 commit 3db8c97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/FuManchu/Parser/SyntaxTree/Block.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,14 @@ internal void ReplaceChildren(IReadOnlyCollection<SyntaxTreeNode> children)
/// <inheritdoc />
public override string ToString() => $"BLOCK: {{ {Type}, {Name} }}";

#if DEBUG

public override string DebugToString()
{
var builder = new StringBuilder();
Enumerable.Aggregate(Children, builder, (sb, node) => sb.Append(node.DebugToString()));

return builder.ToString();
}
#endif
}

0 comments on commit 3db8c97

Please sign in to comment.