Index: pkg/front_end/lib/src/fasta/fasta_codes.dart |
diff --git a/pkg/front_end/lib/src/fasta/fasta_codes.dart b/pkg/front_end/lib/src/fasta/fasta_codes.dart |
index 91a472b92c36dc4ea69f921afeb8b44dc75c9fe3..0604ca99aaa98761e3067027f70aa99bad32eba1 100644 |
--- a/pkg/front_end/lib/src/fasta/fasta_codes.dart |
+++ b/pkg/front_end/lib/src/fasta/fasta_codes.dart |
@@ -9,6 +9,8 @@ import 'package:front_end/src/scanner/token.dart' show Token; |
part 'fasta_codes_generated.dart'; |
class FastaCode<T> { |
+ final String name; |
+ |
final String template; |
final String tip; |
@@ -19,12 +21,14 @@ class FastaCode<T> { |
final T format; |
- const FastaCode( |
+ const FastaCode(this.name, |
{this.template, |
this.tip, |
this.analyzerCode, |
this.dart2jsCode, |
this.format}); |
+ |
+ String toString() => name; |
} |
class FastaMessage { |