Skip to content

Commit 7b77d84

Browse files
committed
Implement TranslationUnit.ToString() to help with debugging.
1 parent bd783b1 commit 7b77d84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/AST/TranslationUnit.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,7 @@ public override T Visit<T>(IDeclVisitor<T> visitor)
8383
{
8484
return visitor.VisitTranslationUnit(this);
8585
}
86+
87+
public override string ToString() => FileName;
8688
}
8789
}

0 commit comments

Comments
 (0)