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

Side by Side Diff: pkg/compiler/lib/src/native/enqueue.dart

Issue 2738313002: rename fasta.Token.value --> lexeme (Closed)
Patch Set: merge Created 3 years, 9 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 '../common.dart'; 5 import '../common.dart';
6 import '../common/backend_api.dart' show ForeignResolver; 6 import '../common/backend_api.dart' show ForeignResolver;
7 import '../common/resolution.dart' show Resolution; 7 import '../common/resolution.dart' show Resolution;
8 import '../compiler.dart' show Compiler; 8 import '../compiler.dart' show Compiler;
9 import '../constants/values.dart'; 9 import '../constants/values.dart';
10 import '../common_elements.dart' show CommonElements; 10 import '../common_elements.dart' show CommonElements;
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 token = token.next; 233 token = token.next;
234 Token id = token; 234 Token id = token;
235 while (token.kind != Tokens.EOF_TOKEN) { 235 while (token.kind != Tokens.EOF_TOKEN) {
236 token = token.next; 236 token = token.next;
237 if (token.stringValue != '.') break; 237 if (token.stringValue != '.') break;
238 token = token.next; 238 token = token.next;
239 if (!token.isIdentifier()) return null; 239 if (!token.isIdentifier()) return null;
240 id = token; 240 id = token;
241 } 241 }
242 // Should be at '{', 'with', 'implements', '<' or 'native'. 242 // Should be at '{', 'with', 'implements', '<' or 'native'.
243 return id.value; 243 return id.lexeme;
244 } 244 }
245 245
246 return reporter.withCurrentElement(classElement, () { 246 return reporter.withCurrentElement(classElement, () {
247 return scanForExtendsName(classElement.position); 247 return scanForExtendsName(classElement.position);
248 }); 248 });
249 } 249 }
250 250
251 /// Returns the JSName annotation string or `null` if no JSName annotation is 251 /// Returns the JSName annotation string or `null` if no JSName annotation is
252 /// present. 252 /// present.
253 String findJsNameFromAnnotation(Element element) { 253 String findJsNameFromAnnotation(Element element) {
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 List<ClassEntity> directSubtypes = 614 List<ClassEntity> directSubtypes =
615 emitter.directSubtypes.putIfAbsent(superclass, () => <ClassEntity>[]); 615 emitter.directSubtypes.putIfAbsent(superclass, () => <ClassEntity>[]);
616 directSubtypes.add(cls); 616 directSubtypes.add(cls);
617 } 617 }
618 618
619 void logSummary(log(message)) { 619 void logSummary(log(message)) {
620 log('Compiled ${_registeredClasses.length} native classes, ' 620 log('Compiled ${_registeredClasses.length} native classes, '
621 '${_unusedClasses.length} native classes omitted.'); 621 '${_unusedClasses.length} native classes omitted.');
622 } 622 }
623 } 623 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/elements/modelx.dart ('k') | pkg/compiler/lib/src/parser/element_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698