Index: pkg/front_end/tool/_fasta/generate_messages.dart |
diff --git a/pkg/front_end/tool/_fasta/generate_messages.dart b/pkg/front_end/tool/_fasta/generate_messages.dart |
index 716e933ab2e3b731384b02dabe0073b4e020242c..9058c47359fa29c3a284bb5e0f2c25e0564f4155 100644 |
--- a/pkg/front_end/tool/_fasta/generate_messages.dart |
+++ b/pkg/front_end/tool/_fasta/generate_messages.dart |
@@ -85,6 +85,11 @@ String compileTemplate(String name, String template, String tip, |
arguments.add("'name3': name3"); |
break; |
+ case "#number": |
+ parameters.add("int number"); |
+ arguments.add("'number': number"); |
+ break; |
+ |
case "#lexeme": |
parameters.add("Token token"); |
conversions.add("String lexeme = token.lexeme;"); |
@@ -113,6 +118,12 @@ String compileTemplate(String name, String template, String tip, |
arguments.add("'uri2': uri2_"); |
break; |
+ case "#uri3": |
+ parameters.add("Uri uri3_"); |
+ conversions.add("String uri3 = relativizeUri(uri3_);"); |
+ arguments.add("'uri3': uri3_"); |
+ break; |
+ |
default: |
throw "Unhandled placeholder in template: ${match[0]}"; |
} |