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

Unified Diff: pkg/front_end/tool/_fasta/generate_messages.dart

Issue 2977713002: Remove deprecated api from LibraryBuilder. (Closed)
Patch Set: Created 3 years, 5 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
« pkg/front_end/messages.yaml ('K') | « pkg/front_end/messages.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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]}";
}
« pkg/front_end/messages.yaml ('K') | « pkg/front_end/messages.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698