| 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 1998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2009 ElementKind.GENERATIVE_CONSTRUCTOR_BODY, | 2009 ElementKind.GENERATIVE_CONSTRUCTOR_BODY, |
| 2010 Modifiers.EMPTY, | 2010 Modifiers.EMPTY, |
| 2011 constructor.enclosingElement, false) { | 2011 constructor.enclosingElement, false) { |
| 2012 functionSignatureCache = constructor.functionSignature; | 2012 functionSignatureCache = constructor.functionSignature; |
| 2013 } | 2013 } |
| 2014 | 2014 |
| 2015 bool get hasNode => constructor.hasNode; | 2015 bool get hasNode => constructor.hasNode; |
| 2016 | 2016 |
| 2017 FunctionExpression get node => constructor.node; | 2017 FunctionExpression get node => constructor.node; |
| 2018 | 2018 |
| 2019 Link<MetadataAnnotation> get metadata => constructor.metadata; |
| 2020 |
| 2019 bool get isInstanceMember => true; | 2021 bool get isInstanceMember => true; |
| 2020 | 2022 |
| 2021 FunctionType computeType(Compiler compiler) { | 2023 FunctionType computeType(Compiler compiler) { |
| 2022 compiler.internalError(this, '$this.computeType.'); | 2024 compiler.internalError(this, '$this.computeType.'); |
| 2023 return null; | 2025 return null; |
| 2024 } | 2026 } |
| 2025 | 2027 |
| 2026 Token get position => constructor.position; | 2028 Token get position => constructor.position; |
| 2027 | 2029 |
| 2028 Element get outermostEnclosingMemberOrTopLevel => constructor; | 2030 Element get outermostEnclosingMemberOrTopLevel => constructor; |
| (...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3061 AstElement get definingElement; | 3063 AstElement get definingElement; |
| 3062 | 3064 |
| 3063 bool get hasResolvedAst => definingElement.hasTreeElements; | 3065 bool get hasResolvedAst => definingElement.hasTreeElements; |
| 3064 | 3066 |
| 3065 ResolvedAst get resolvedAst { | 3067 ResolvedAst get resolvedAst { |
| 3066 return new ResolvedAst(declaration, | 3068 return new ResolvedAst(declaration, |
| 3067 definingElement.node, definingElement.treeElements); | 3069 definingElement.node, definingElement.treeElements); |
| 3068 } | 3070 } |
| 3069 | 3071 |
| 3070 } | 3072 } |
| OLD | NEW |