| 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 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1550 BaseFunctionElementX(String name, | 1550 BaseFunctionElementX(String name, |
| 1551 ElementKind kind, | 1551 ElementKind kind, |
| 1552 Modifiers this.modifiers, | 1552 Modifiers this.modifiers, |
| 1553 Element enclosing, | 1553 Element enclosing, |
| 1554 bool hasNoBody) | 1554 bool hasNoBody) |
| 1555 : super(name, kind, enclosing), | 1555 : super(name, kind, enclosing), |
| 1556 _hasNoBody = hasNoBody { | 1556 _hasNoBody = hasNoBody { |
| 1557 assert(modifiers != null); | 1557 assert(modifiers != null); |
| 1558 } | 1558 } |
| 1559 | 1559 |
| 1560 bool get hasNoBody => _hasNoBody; |
| 1561 |
| 1560 bool get isInstanceMember { | 1562 bool get isInstanceMember { |
| 1561 return isClassMember | 1563 return isClassMember |
| 1562 && !isConstructor | 1564 && !isConstructor |
| 1563 && !isStatic; | 1565 && !isStatic; |
| 1564 } | 1566 } |
| 1565 | 1567 |
| 1566 bool get hasFunctionSignature => functionSignatureCache != null; | 1568 bool get hasFunctionSignature => functionSignatureCache != null; |
| 1567 | 1569 |
| 1568 FunctionSignature computeSignature(Compiler compiler) { | 1570 FunctionSignature computeSignature(Compiler compiler) { |
| 1569 if (functionSignatureCache != null) return functionSignatureCache; | 1571 if (functionSignatureCache != null) return functionSignatureCache; |
| (...skipping 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2817 AstElement get definingElement; | 2819 AstElement get definingElement; |
| 2818 | 2820 |
| 2819 bool get hasResolvedAst => definingElement.hasTreeElements; | 2821 bool get hasResolvedAst => definingElement.hasTreeElements; |
| 2820 | 2822 |
| 2821 ResolvedAst get resolvedAst { | 2823 ResolvedAst get resolvedAst { |
| 2822 return new ResolvedAst(declaration, | 2824 return new ResolvedAst(declaration, |
| 2823 definingElement.node, definingElement.treeElements); | 2825 definingElement.node, definingElement.treeElements); |
| 2824 } | 2826 } |
| 2825 | 2827 |
| 2826 } | 2828 } |
| OLD | NEW |