Skip to content

Commit 93713b3

Browse files
authored
Add toString() to GeneratorBuilder (dart-lang/source_gen#127)
Some places use the toString for debugging and knowing which generators are involved is useful.
1 parent ac5fddb commit 93713b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkgs/source_gen/lib/src/builder.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ if approppriate.""",
9595
var output = new Asset(outputId, '$_topHeader$genPartContent');
9696
buildStep.writeAsString(output);
9797
}
98+
99+
@override
100+
String toString() => 'GeneratorBuilder:$generators';
98101
}
99102

100103
Stream<GeneratedOutput> _generate(LibraryElement unit,

0 commit comments

Comments
 (0)