| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 /// This file declares a "shadow hierarchy" of concrete classes which extend | 5 /// This file declares a "shadow hierarchy" of concrete classes which extend |
| 6 /// the kernel class hierarchy, adding methods and fields needed by the | 6 /// the kernel class hierarchy, adding methods and fields needed by the |
| 7 /// BodyBuilder. | 7 /// BodyBuilder. |
| 8 /// | 8 /// |
| 9 /// Instances of these classes may be created using the factory methods in | 9 /// Instances of these classes may be created using the factory methods in |
| 10 /// `ast_factory.dart`. | 10 /// `ast_factory.dart`. |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 /// Indicates whether the expression arose from a post-increment or | 274 /// Indicates whether the expression arose from a post-increment or |
| 275 /// post-decrement. | 275 /// post-decrement. |
| 276 bool isPostIncDec = false; | 276 bool isPostIncDec = false; |
| 277 | 277 |
| 278 /// Indicates whether the expression arose from a pre-increment or | 278 /// Indicates whether the expression arose from a pre-increment or |
| 279 /// pre-decrement. | 279 /// pre-decrement. |
| 280 bool isPreIncDec = false; | 280 bool isPreIncDec = false; |
| 281 | 281 |
| 282 KernelComplexAssignment(this.rhs); | 282 KernelComplexAssignment(this.rhs); |
| 283 | 283 |
| 284 void set parent(TreeNode node) { |
| 285 super.parent = node; |
| 286 desugared?.parent = node; |
| 287 } |
| 288 |
| 284 @override | 289 @override |
| 285 accept(ExpressionVisitor v) => desugared.accept(v); | 290 accept(ExpressionVisitor v) => desugared.accept(v); |
| 286 | 291 |
| 287 @override | 292 @override |
| 288 accept1(ExpressionVisitor1 v, arg) => desugared.accept1(v, arg); | 293 accept1(ExpressionVisitor1 v, arg) => desugared.accept1(v, arg); |
| 289 | 294 |
| 290 @override | 295 @override |
| 291 DartType getStaticType(TypeEnvironment types) => | 296 DartType getStaticType(TypeEnvironment types) => |
| 292 desugared.getStaticType(types); | 297 desugared.getStaticType(types); |
| 293 | 298 |
| (...skipping 1843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2137 } | 2142 } |
| 2138 | 2143 |
| 2139 transformChildren(v) { | 2144 transformChildren(v) { |
| 2140 return internalError("Internal error: Unsupported operation."); | 2145 return internalError("Internal error: Unsupported operation."); |
| 2141 } | 2146 } |
| 2142 | 2147 |
| 2143 visitChildren(v) { | 2148 visitChildren(v) { |
| 2144 return internalError("Internal error: Unsupported operation."); | 2149 return internalError("Internal error: Unsupported operation."); |
| 2145 } | 2150 } |
| 2146 } | 2151 } |
| OLD | NEW |