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

Side by Side Diff: pkg/front_end/tool/_fasta/generate_messages.dart

Issue 2978903002: Remove number from operator mismatch message. (Closed)
Patch Set: Add missing show clause. 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 unified diff | Download patch
« no previous file with comments | « pkg/front_end/messages.yaml ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:io'; 5 import 'dart:io';
6 6
7 import 'dart:isolate'; 7 import 'dart:isolate';
8 8
9 import 'package:yaml/yaml.dart' show loadYaml; 9 import 'package:yaml/yaml.dart' show loadYaml;
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 case "#name2": 83 case "#name2":
84 parameters.add("String name2"); 84 parameters.add("String name2");
85 arguments.add("'name2': name2"); 85 arguments.add("'name2': name2");
86 break; 86 break;
87 87
88 case "#name3": 88 case "#name3":
89 parameters.add("String name3"); 89 parameters.add("String name3");
90 arguments.add("'name3': name3"); 90 arguments.add("'name3': name3");
91 break; 91 break;
92 92
93 case "#number":
94 parameters.add("int number");
95 arguments.add("'number': number");
96 break;
97
98 case "#lexeme": 93 case "#lexeme":
99 parameters.add("Token token"); 94 parameters.add("Token token");
100 conversions.add("String lexeme = token.lexeme;"); 95 conversions.add("String lexeme = token.lexeme;");
101 arguments.add("'token': token"); 96 arguments.add("'token': token");
102 break; 97 break;
103 98
104 case "#string": 99 case "#string":
105 parameters.add("String string"); 100 parameters.add("String string");
106 arguments.add("'string': string"); 101 arguments.add("'string': string");
107 break; 102 break;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 190
196 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 191 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
197 Message _withArguments$name(${parameters.join(', ')}) { 192 Message _withArguments$name(${parameters.join(', ')}) {
198 ${conversions.join('\n ')} 193 ${conversions.join('\n ')}
199 return new Message( 194 return new Message(
200 code$name, 195 code$name,
201 ${messageArguments.join(', ')}); 196 ${messageArguments.join(', ')});
202 } 197 }
203 """; 198 """;
204 } 199 }
OLDNEW
« no previous file with comments | « pkg/front_end/messages.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698