Chromium Code Reviews| 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 'elements.dart'; | 7 import 'elements.dart'; |
| 8 import '../constants/expressions.dart'; | 8 import '../constants/expressions.dart'; |
| 9 import '../helpers/helpers.dart'; // Included for debug helpers. | 9 import '../helpers/helpers.dart'; // Included for debug helpers. |
| 10 import '../tree/tree.dart'; | 10 import '../tree/tree.dart'; |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 280 bool get isTopLevel => false; | 280 bool get isTopLevel => false; |
| 281 | 281 |
| 282 bool get isSynthesized => true; | 282 bool get isSynthesized => true; |
| 283 | 283 |
| 284 AbstractFieldElement abstractField; | 284 AbstractFieldElement abstractField; |
| 285 | 285 |
| 286 unsupported() { | 286 unsupported() { |
| 287 throw 'unsupported operation on erroneous element'; | 287 throw 'unsupported operation on erroneous element'; |
| 288 } | 288 } |
| 289 | 289 |
| 290 get asyncMarker => AsyncMarker.SYNC; | |
| 290 Link<MetadataAnnotation> get metadata => unsupported(); | 291 Link<MetadataAnnotation> get metadata => unsupported(); |
| 291 bool get hasNode => false; | 292 bool get hasNode => false; |
| 292 get node => unsupported(); | 293 get node => unsupported(); |
| 293 get hasResolvedAst => false; | 294 get hasResolvedAst => false; |
| 294 get resolvedAst => unsupported(); | 295 get resolvedAst => unsupported(); |
| 295 get type => unsupported(); | 296 get type => unsupported(); |
| 296 get cachedNode => unsupported(); | 297 get cachedNode => unsupported(); |
| 297 get functionSignature => unsupported(); | 298 get functionSignature => unsupported(); |
| 298 get patch => null; | 299 get patch => null; |
| 299 get origin => this; | 300 get origin => this; |
| (...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1533 final Modifiers modifiers; | 1534 final Modifiers modifiers; |
| 1534 | 1535 |
| 1535 List<FunctionElement> nestedClosures = new List<FunctionElement>(); | 1536 List<FunctionElement> nestedClosures = new List<FunctionElement>(); |
| 1536 | 1537 |
| 1537 FunctionSignature functionSignatureCache; | 1538 FunctionSignature functionSignatureCache; |
| 1538 | 1539 |
| 1539 final bool _hasNoBody; | 1540 final bool _hasNoBody; |
| 1540 | 1541 |
| 1541 AbstractFieldElement abstractField; | 1542 AbstractFieldElement abstractField; |
| 1542 | 1543 |
| 1544 AsyncMarker asyncMarker = AsyncMarker.SYNC; | |
|
floitsch
2014/11/03 17:55:54
final
Johnni Winther
2014/11/04 12:24:33
Can't do :( These are set when the function body i
| |
| 1545 | |
| 1543 BaseFunctionElementX(String name, | 1546 BaseFunctionElementX(String name, |
| 1544 ElementKind kind, | 1547 ElementKind kind, |
| 1545 Modifiers this.modifiers, | 1548 Modifiers this.modifiers, |
| 1546 Element enclosing, | 1549 Element enclosing, |
| 1547 bool hasNoBody) | 1550 bool hasNoBody) |
| 1548 : super(name, kind, enclosing), | 1551 : super(name, kind, enclosing), |
| 1549 _hasNoBody = hasNoBody { | 1552 _hasNoBody = hasNoBody { |
| 1550 assert(modifiers != null); | 1553 assert(modifiers != null); |
| 1551 } | 1554 } |
| 1552 | 1555 |
| (...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2709 AstElement get definingElement; | 2712 AstElement get definingElement; |
| 2710 | 2713 |
| 2711 bool get hasResolvedAst => definingElement.hasTreeElements; | 2714 bool get hasResolvedAst => definingElement.hasTreeElements; |
| 2712 | 2715 |
| 2713 ResolvedAst get resolvedAst { | 2716 ResolvedAst get resolvedAst { |
| 2714 return new ResolvedAst(declaration, | 2717 return new ResolvedAst(declaration, |
| 2715 definingElement.node, definingElement.treeElements); | 2718 definingElement.node, definingElement.treeElements); |
| 2716 } | 2719 } |
| 2717 | 2720 |
| 2718 } | 2721 } |
| OLD | NEW |