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

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

Issue 2876813002: Implement generalized function types. (Closed)
Patch Set: Fixes for analyzer and dart2js. 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
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 f21d228dadca15931ad3f0c22a70c88e9db9714a..56c61239bb44e5055abbecc8cd8432338e768ab1 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/fasta/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 {

Powered by Google App Engine
This is Rietveld 408576698