| 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 get origin => this; | 299 get origin => this; |
| 300 get immediateRedirectionTarget => unsupported(); | 300 get immediateRedirectionTarget => unsupported(); |
| 301 get nestedClosures => unsupported(); | 301 get nestedClosures => unsupported(); |
| 302 get memberContext => unsupported(); | 302 get memberContext => unsupported(); |
| 303 get executableContext => unsupported(); | 303 get executableContext => unsupported(); |
| 304 | 304 |
| 305 bool get isRedirectingFactory => unsupported(); | 305 bool get isRedirectingFactory => unsupported(); |
| 306 | 306 |
| 307 computeSignature(compiler) => unsupported(); | 307 computeSignature(compiler) => unsupported(); |
| 308 | 308 |
| 309 bool get hasFunctionSignature => false; |
| 310 |
| 309 get effectiveTarget => this; | 311 get effectiveTarget => this; |
| 310 | 312 |
| 311 computeEffectiveTargetType(InterfaceType newType) => unsupported(); | 313 computeEffectiveTargetType(InterfaceType newType) => unsupported(); |
| 312 | 314 |
| 313 get definingConstructor => null; | 315 get definingConstructor => null; |
| 314 | 316 |
| 315 FunctionElement asFunctionElement() => this; | 317 FunctionElement asFunctionElement() => this; |
| 316 | 318 |
| 317 String get message => '${messageKind.message(messageArguments)}'; | 319 String get message => '${messageKind.message(messageArguments)}'; |
| 318 | 320 |
| (...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1554 _hasNoBody = hasNoBody { | 1556 _hasNoBody = hasNoBody { |
| 1555 assert(modifiers != null); | 1557 assert(modifiers != null); |
| 1556 } | 1558 } |
| 1557 | 1559 |
| 1558 bool get isInstanceMember { | 1560 bool get isInstanceMember { |
| 1559 return isClassMember | 1561 return isClassMember |
| 1560 && !isConstructor | 1562 && !isConstructor |
| 1561 && !isStatic; | 1563 && !isStatic; |
| 1562 } | 1564 } |
| 1563 | 1565 |
| 1566 bool get hasFunctionSignature => functionSignatureCache != null; |
| 1567 |
| 1564 FunctionSignature computeSignature(Compiler compiler) { | 1568 FunctionSignature computeSignature(Compiler compiler) { |
| 1565 if (functionSignatureCache != null) return functionSignatureCache; | 1569 if (functionSignatureCache != null) return functionSignatureCache; |
| 1566 compiler.withCurrentElement(this, () { | 1570 compiler.withCurrentElement(this, () { |
| 1567 functionSignatureCache = compiler.resolver.resolveSignature(this); | 1571 functionSignatureCache = compiler.resolver.resolveSignature(this); |
| 1568 }); | 1572 }); |
| 1569 return functionSignatureCache; | 1573 return functionSignatureCache; |
| 1570 } | 1574 } |
| 1571 | 1575 |
| 1572 FunctionSignature get functionSignature { | 1576 FunctionSignature get functionSignature { |
| 1573 assert(invariant(this, functionSignatureCache != null, | 1577 assert(invariant(this, functionSignatureCache != null, |
| (...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2708 AstElement get definingElement; | 2712 AstElement get definingElement; |
| 2709 | 2713 |
| 2710 bool get hasResolvedAst => definingElement.hasTreeElements; | 2714 bool get hasResolvedAst => definingElement.hasTreeElements; |
| 2711 | 2715 |
| 2712 ResolvedAst get resolvedAst { | 2716 ResolvedAst get resolvedAst { |
| 2713 return new ResolvedAst(declaration, | 2717 return new ResolvedAst(declaration, |
| 2714 definingElement.node, definingElement.treeElements); | 2718 definingElement.node, definingElement.treeElements); |
| 2715 } | 2719 } |
| 2716 | 2720 |
| 2717 } | 2721 } |
| OLD | NEW |