| 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 '../fasta_codes.dart' | 7 import '../fasta_codes.dart' |
| 8 show FastaMessage, codeExpectedButGot, codeExpectedFunctionBody; | 8 show FastaMessage, codeExpectedButGot, codeExpectedFunctionBody; |
| 9 | 9 |
| 10 import '../parser/parser.dart' | 10 import '../parser/parser.dart' |
| (...skipping 3082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3093 } | 3093 } |
| 3094 | 3094 |
| 3095 Expression buildNullAwareAssignment(Expression value, DartType type, | 3095 Expression buildNullAwareAssignment(Expression value, DartType type, |
| 3096 {bool voidContext: false}) { | 3096 {bool voidContext: false}) { |
| 3097 return makeInvalidWrite(value); | 3097 return makeInvalidWrite(value); |
| 3098 } | 3098 } |
| 3099 | 3099 |
| 3100 Expression buildCompoundAssignment(Name binaryOperator, Expression value, | 3100 Expression buildCompoundAssignment(Name binaryOperator, Expression value, |
| 3101 {int offset: TreeNode.noOffset, | 3101 {int offset: TreeNode.noOffset, |
| 3102 bool voidContext: false, | 3102 bool voidContext: false, |
| 3103 Procedure interfaceTarget}) { | 3103 Procedure interfaceTarget, |
| 3104 bool isPreIncDec: false}) { |
| 3104 return makeInvalidWrite(value); | 3105 return makeInvalidWrite(value); |
| 3105 } | 3106 } |
| 3106 | 3107 |
| 3107 Expression buildPrefixIncrement(Name binaryOperator, | 3108 Expression buildPrefixIncrement(Name binaryOperator, |
| 3108 {int offset: TreeNode.noOffset, | 3109 {int offset: TreeNode.noOffset, |
| 3109 bool voidContext: false, | 3110 bool voidContext: false, |
| 3110 Procedure interfaceTarget}) { | 3111 Procedure interfaceTarget}) { |
| 3111 return makeInvalidWrite(null); | 3112 return makeInvalidWrite(null); |
| 3112 } | 3113 } |
| 3113 | 3114 |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3473 if (starToken == null) { | 3474 if (starToken == null) { |
| 3474 return AsyncMarker.Async; | 3475 return AsyncMarker.Async; |
| 3475 } else { | 3476 } else { |
| 3476 assert(identical(starToken.stringValue, "*")); | 3477 assert(identical(starToken.stringValue, "*")); |
| 3477 return AsyncMarker.AsyncStar; | 3478 return AsyncMarker.AsyncStar; |
| 3478 } | 3479 } |
| 3479 } else { | 3480 } else { |
| 3480 return internalError("Unknown async modifier: $asyncToken"); | 3481 return internalError("Unknown async modifier: $asyncToken"); |
| 3481 } | 3482 } |
| 3482 } | 3483 } |
| OLD | NEW |