| 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('dart:uri'); | 7 #import('dart:uri'); |
| 8 | 8 |
| 9 #import('../tree/tree.dart'); | 9 #import('../tree/tree.dart'); |
| 10 #import('../scanner/scannerlib.dart'); | 10 #import('../scanner/scannerlib.dart'); |
| (...skipping 1538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1549 TypeVariableElement(name, Element enclosing, this.cachedNode, | 1549 TypeVariableElement(name, Element enclosing, this.cachedNode, |
| 1550 [this.type, this.bound]) | 1550 [this.type, this.bound]) |
| 1551 : super(name, ElementKind.TYPE_VARIABLE, enclosing); | 1551 : super(name, ElementKind.TYPE_VARIABLE, enclosing); |
| 1552 | 1552 |
| 1553 TypeVariableType computeType(compiler) => type; | 1553 TypeVariableType computeType(compiler) => type; |
| 1554 | 1554 |
| 1555 Node parseNode(compiler) => cachedNode; | 1555 Node parseNode(compiler) => cachedNode; |
| 1556 | 1556 |
| 1557 String toString() => "${enclosingElement.toString()}.${name.slowToString()}"; | 1557 String toString() => "${enclosingElement.toString()}.${name.slowToString()}"; |
| 1558 | 1558 |
| 1559 Token position() => findMyName(enclosingElement.position()); | 1559 Token position() => cachedNode.getBeginToken(); |
| 1560 | 1560 |
| 1561 TypeVariableElement cloneTo(Element enclosing, DiagnosticListener listener) { | 1561 TypeVariableElement cloneTo(Element enclosing, DiagnosticListener listener) { |
| 1562 TypeVariableElement result = | 1562 TypeVariableElement result = |
| 1563 new TypeVariableElement(name, enclosing, cachedNode, type, bound); | 1563 new TypeVariableElement(name, enclosing, cachedNode, type, bound); |
| 1564 return result; | 1564 return result; |
| 1565 } | 1565 } |
| 1566 } | 1566 } |
| OLD | NEW |