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

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

Issue 2977693002: Remove deprecated methods from ClassBuilder. (Closed)
Patch Set: Spelling of unnamed. 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 case "#name": 73 case "#name":
74 parameters.add("String name"); 74 parameters.add("String name");
75 arguments.add("'name': name"); 75 arguments.add("'name': name");
76 break; 76 break;
77 77
78 case "#name2": 78 case "#name2":
79 parameters.add("String name2"); 79 parameters.add("String name2");
80 arguments.add("'name2': name2"); 80 arguments.add("'name2': name2");
81 break; 81 break;
82 82
83 case "#name3":
84 parameters.add("String name3");
85 arguments.add("'name3': name3");
86 break;
87
83 case "#lexeme": 88 case "#lexeme":
84 parameters.add("Token token"); 89 parameters.add("Token token");
85 conversions.add("String lexeme = token.lexeme;"); 90 conversions.add("String lexeme = token.lexeme;");
86 arguments.add("'token': token"); 91 arguments.add("'token': token");
87 break; 92 break;
88 93
89 case "#string": 94 case "#string":
90 parameters.add("String string"); 95 parameters.add("String string");
91 arguments.add("'string': string"); 96 arguments.add("'string': string");
92 break; 97 break;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 179
175 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 180 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
176 Message _withArguments$name(${parameters.join(', ')}) { 181 Message _withArguments$name(${parameters.join(', ')}) {
177 ${conversions.join('\n ')} 182 ${conversions.join('\n ')}
178 return new Message( 183 return new Message(
179 code$name, 184 code$name,
180 ${messageArguments.join(', ')}); 185 ${messageArguments.join(', ')});
181 } 186 }
182 """; 187 """;
183 } 188 }
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