| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 elements.modelx; | 5 library elements.modelx; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/names.dart' show Identifiers; | 8 import '../common/names.dart' show Identifiers; |
| 9 import '../common/resolution.dart' show Resolution, ParsingContext; | 9 import '../common/resolution.dart' show Resolution, ParsingContext; |
| 10 import '../compiler.dart' show Compiler; | 10 import '../compiler.dart' show Compiler; |
| (...skipping 3251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3262 final Node statement; | 3262 final Node statement; |
| 3263 final int nestingLevel; | 3263 final int nestingLevel; |
| 3264 List<LabelDefinition> labels = <LabelDefinition>[]; | 3264 List<LabelDefinition> labels = <LabelDefinition>[]; |
| 3265 bool isBreakTarget = false; | 3265 bool isBreakTarget = false; |
| 3266 bool isContinueTarget = false; | 3266 bool isContinueTarget = false; |
| 3267 | 3267 |
| 3268 final int hashCode = ElementX.newHashCode(); | 3268 final int hashCode = ElementX.newHashCode(); |
| 3269 | 3269 |
| 3270 JumpTargetX(this.statement, this.nestingLevel, this.executableContext); | 3270 JumpTargetX(this.statement, this.nestingLevel, this.executableContext); |
| 3271 | 3271 |
| 3272 @override |
| 3273 MemberElement get memberContext => executableContext.memberContext; |
| 3274 |
| 3272 String get name => "target"; | 3275 String get name => "target"; |
| 3273 | 3276 |
| 3274 bool get isTarget => isBreakTarget || isContinueTarget; | 3277 bool get isTarget => isBreakTarget || isContinueTarget; |
| 3275 | 3278 |
| 3276 LabelDefinition addLabel(Label label, String labelName) { | 3279 LabelDefinition addLabel(Label label, String labelName) { |
| 3277 LabelDefinition result = new LabelDefinitionX(label, labelName, this); | 3280 LabelDefinition result = new LabelDefinitionX(label, labelName, this); |
| 3278 labels.add(result); | 3281 labels.add(result); |
| 3279 return result; | 3282 return result; |
| 3280 } | 3283 } |
| 3281 | 3284 |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3466 body = node.asFunctionExpression().body; | 3469 body = node.asFunctionExpression().body; |
| 3467 } | 3470 } |
| 3468 return new ParsedResolvedAst( | 3471 return new ParsedResolvedAst( |
| 3469 declaration, | 3472 declaration, |
| 3470 node, | 3473 node, |
| 3471 body, | 3474 body, |
| 3472 definingElement.treeElements, | 3475 definingElement.treeElements, |
| 3473 definingElement.compilationUnit.script.resourceUri); | 3476 definingElement.compilationUnit.script.resourceUri); |
| 3474 } | 3477 } |
| 3475 } | 3478 } |
| OLD | NEW |