Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(845)

Unified Diff: pkg/front_end/lib/src/fasta/fasta_codes.dart

Issue 2876813002: Implement generalized function types. (Closed)
Patch Set: Address comments. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/front_end/lib/src/fasta/errors.dart ('k') | pkg/front_end/lib/src/fasta/fasta_codes_generated.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « pkg/front_end/lib/src/fasta/errors.dart ('k') | pkg/front_end/lib/src/fasta/fasta_codes_generated.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698