| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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'); | 5 #library('elements'); |
| 6 | 6 |
| 7 #import('../tree/tree.dart'); | 7 #import('../tree/tree.dart'); |
| 8 #import('../scanner/scannerlib.dart'); | 8 #import('../scanner/scannerlib.dart'); |
| 9 #import('../leg.dart'); // TODO(karlklose): we only need type. | 9 #import('../leg.dart'); // TODO(karlklose): we only need type. |
| 10 #import('../util/util.dart'); | 10 #import('../util/util.dart'); |
| (...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 | 655 |
| 656 Type computeType(Compiler compiler) { | 656 Type computeType(Compiler compiler) { |
| 657 return compiler.types.dynamicType; | 657 return compiler.types.dynamicType; |
| 658 } | 658 } |
| 659 | 659 |
| 660 parseNode(DiagnosticListener listener) { | 660 parseNode(DiagnosticListener listener) { |
| 661 throw "internal error: ForeignElement has no node"; | 661 throw "internal error: ForeignElement has no node"; |
| 662 } | 662 } |
| 663 | 663 |
| 664 ForeignElement cloneTo(Element enclosing, DiagnosticListener listener) { | 664 ForeignElement cloneTo(Element enclosing, DiagnosticListener listener) { |
| 665 ForeignElement result = new ForeignElement(name, kind, enclosing); | 665 ForeignElement result = new ForeignElement(name, enclosing); |
| 666 return result; | 666 return result; |
| 667 } | 667 } |
| 668 } | 668 } |
| 669 | 669 |
| 670 class AbstractFieldElement extends Element { | 670 class AbstractFieldElement extends Element { |
| 671 FunctionElement getter; | 671 FunctionElement getter; |
| 672 FunctionElement setter; | 672 FunctionElement setter; |
| 673 | 673 |
| 674 AbstractFieldElement(SourceString name, Element enclosing) | 674 AbstractFieldElement(SourceString name, Element enclosing) |
| 675 : super(name, ElementKind.ABSTRACT_FIELD, enclosing); | 675 : super(name, ElementKind.ABSTRACT_FIELD, enclosing); |
| (...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1423 Node parseNode(compiler) => cachedNode; | 1423 Node parseNode(compiler) => cachedNode; |
| 1424 | 1424 |
| 1425 String toString() => "${enclosingElement.toString()}.${name.slowToString()}"; | 1425 String toString() => "${enclosingElement.toString()}.${name.slowToString()}"; |
| 1426 | 1426 |
| 1427 TypeVariableElement cloneTo(Element enclosing, DiagnosticListener listener) { | 1427 TypeVariableElement cloneTo(Element enclosing, DiagnosticListener listener) { |
| 1428 TypeVariableElement result = | 1428 TypeVariableElement result = |
| 1429 new TypeVariableElement(name, enclosing, node, type, bound); | 1429 new TypeVariableElement(name, enclosing, node, type, bound); |
| 1430 return result; | 1430 return result; |
| 1431 } | 1431 } |
| 1432 } | 1432 } |
| OLD | NEW |