Chromium Code Reviews| 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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 399 push(wrapInCompileTimeError( | 399 push(wrapInCompileTimeError( |
| 400 toValue(expression), fasta.messageExpressionNotMetadata)); | 400 toValue(expression), fasta.messageExpressionNotMetadata)); |
| 401 } else { | 401 } else { |
| 402 push(toValue(expression)); | 402 push(toValue(expression)); |
| 403 } | 403 } |
| 404 constantExpressionRequired = savedConstantExpressionRequired; | 404 constantExpressionRequired = savedConstantExpressionRequired; |
| 405 } | 405 } |
| 406 } | 406 } |
| 407 | 407 |
| 408 @override | 408 @override |
| 409 void endMetadataStar(int count, bool forParameter) { | |
|
ahe
2017/08/07 13:31:00
Why remove this method?
danrubel
2017/08/14 16:43:11
The superclass has an identical method, so I remov
| |
| 410 debugEvent("MetadataStar"); | |
| 411 push(popList(count) ?? NullValue.Metadata); | |
| 412 } | |
| 413 | |
| 414 @override | |
| 415 void endTopLevelFields(int count, Token beginToken, Token endToken) { | 409 void endTopLevelFields(int count, Token beginToken, Token endToken) { |
| 416 debugEvent("TopLevelFields"); | 410 debugEvent("TopLevelFields"); |
| 417 push(count); | 411 push(count); |
| 418 } | 412 } |
| 419 | 413 |
| 420 @override | 414 @override |
| 421 void endFields(int count, Token beginToken, Token endToken) { | 415 void endFields(int count, Token beginToken, Token endToken) { |
| 422 debugEvent("Fields"); | 416 debugEvent("Fields"); |
| 423 push(count); | 417 push(count); |
| 424 } | 418 } |
| (...skipping 3376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3801 return AsyncMarker.Async; | 3795 return AsyncMarker.Async; |
| 3802 } else { | 3796 } else { |
| 3803 assert(identical(starToken.stringValue, "*")); | 3797 assert(identical(starToken.stringValue, "*")); |
| 3804 return AsyncMarker.AsyncStar; | 3798 return AsyncMarker.AsyncStar; |
| 3805 } | 3799 } |
| 3806 } else { | 3800 } else { |
| 3807 return unhandled(asyncToken.lexeme, "asyncMarkerFromTokens", | 3801 return unhandled(asyncToken.lexeme, "asyncMarkerFromTokens", |
| 3808 asyncToken.charOffset, null); | 3802 asyncToken.charOffset, null); |
| 3809 } | 3803 } |
| 3810 } | 3804 } |
| OLD | NEW |