| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |