Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Unified Diff: lib/compiler/implementation/elements/elements.dart

Issue 10837361: Better version of TypeVariableElement.position. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/elements/elements.dart
diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart
index d264f29ef93fb69bd9a837df195de6efb16ab827..1e14a7283a29dfaacabc8588336321409a22a34d 100644
--- a/lib/compiler/implementation/elements/elements.dart
+++ b/lib/compiler/implementation/elements/elements.dart
@@ -1556,7 +1556,7 @@ class TypeVariableElement extends Element {
String toString() => "${enclosingElement.toString()}.${name.slowToString()}";
- Token position() => findMyName(enclosingElement.position());
+ Token position() => cachedNode.getBeginToken();
TypeVariableElement cloneTo(Element enclosing, DiagnosticListener listener) {
TypeVariableElement result =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698