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

Side by Side Diff: pkg/front_end/lib/src/fasta/kernel/body_builder.dart

Issue 3002323002: tweak fasta parser event debug code (Closed)
Patch Set: rebase Created 3 years, 3 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 | « no previous file | pkg/front_end/lib/src/fasta/source/diet_listener.dart » ('j') | 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 library fasta.body_builder; 5 library fasta.body_builder;
6 6
7 import 'package:kernel/ast.dart' 7 import 'package:kernel/ast.dart'
8 hide InvalidExpression, InvalidInitializer, InvalidStatement; 8 hide InvalidExpression, InvalidInitializer, InvalidStatement;
9 9
10 import 'package:kernel/class_hierarchy.dart' show ClassHierarchy; 10 import 'package:kernel/class_hierarchy.dart' show ClassHierarchy;
(...skipping 3345 matching lines...) Expand 10 before | Expand all | Expand 10 after
3356 } 3356 }
3357 } 3357 }
3358 3358
3359 @override 3359 @override
3360 void addCompileTimeError(Message message, int charOffset) { 3360 void addCompileTimeError(Message message, int charOffset) {
3361 library.addCompileTimeError(message, charOffset, uri); 3361 library.addCompileTimeError(message, charOffset, uri);
3362 } 3362 }
3363 3363
3364 @override 3364 @override
3365 void debugEvent(String name) { 3365 void debugEvent(String name) {
3366 // printEvent(name); 3366 // printEvent('BodyBuilder: $name');
3367 } 3367 }
3368 3368
3369 @override 3369 @override
3370 StaticGet makeStaticGet(Member readTarget, Token token) { 3370 StaticGet makeStaticGet(Member readTarget, Token token) {
3371 return new KernelStaticGet(readTarget)..fileOffset = offsetForToken(token); 3371 return new KernelStaticGet(readTarget)..fileOffset = offsetForToken(token);
3372 } 3372 }
3373 } 3373 }
3374 3374
3375 class Identifier { 3375 class Identifier {
3376 final Token token; 3376 final Token token;
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
3827 return AsyncMarker.Async; 3827 return AsyncMarker.Async;
3828 } else { 3828 } else {
3829 assert(identical(starToken.stringValue, "*")); 3829 assert(identical(starToken.stringValue, "*"));
3830 return AsyncMarker.AsyncStar; 3830 return AsyncMarker.AsyncStar;
3831 } 3831 }
3832 } else { 3832 } else {
3833 return unhandled(asyncToken.lexeme, "asyncMarkerFromTokens", 3833 return unhandled(asyncToken.lexeme, "asyncMarkerFromTokens",
3834 asyncToken.charOffset, null); 3834 asyncToken.charOffset, null);
3835 } 3835 }
3836 } 3836 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/source/diet_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698