Skip to content

Commit f811322

Browse files
authored
Add toString() to GeneratorBuilder (#127)
Some places use the toString for debugging and knowing which generators are involved is useful.
1 parent e719ef6 commit f811322

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)