Chromium Code Reviews| 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 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1504 TypeVariableElement(name, Element enclosing, this.cachedNode, | 1504 TypeVariableElement(name, Element enclosing, this.cachedNode, |
| 1505 [this.type, this.bound]) | 1505 [this.type, this.bound]) |
| 1506 : super(name, ElementKind.TYPE_VARIABLE, enclosing); | 1506 : super(name, ElementKind.TYPE_VARIABLE, enclosing); |
| 1507 | 1507 |
| 1508 TypeVariableType computeType(compiler) => type; | 1508 TypeVariableType computeType(compiler) => type; |
| 1509 | 1509 |
| 1510 Node parseNode(compiler) => cachedNode; | 1510 Node parseNode(compiler) => cachedNode; |
| 1511 | 1511 |
| 1512 String toString() => "${enclosingElement.toString()}.${name.slowToString()}"; | 1512 String toString() => "${enclosingElement.toString()}.${name.slowToString()}"; |
| 1513 | 1513 |
| 1514 Token position() => findMyName(enclosingElement.position()); | |
|
ahe
2012/08/21 14:06:37
I think this should be:
Token position() => cache
Anton Muhin
2012/08/21 14:08:27
Fresh CL sent to you and Johnni.
On 2012/08/21 14
| |
| 1515 | |
| 1514 TypeVariableElement cloneTo(Element enclosing, DiagnosticListener listener) { | 1516 TypeVariableElement cloneTo(Element enclosing, DiagnosticListener listener) { |
| 1515 TypeVariableElement result = | 1517 TypeVariableElement result = |
| 1516 new TypeVariableElement(name, enclosing, cachedNode, type, bound); | 1518 new TypeVariableElement(name, enclosing, cachedNode, type, bound); |
| 1517 return result; | 1519 return result; |
| 1518 } | 1520 } |
| 1519 } | 1521 } |
| OLD | NEW |