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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/html/angular/AngularXmlExpression.java

Issue 131233009: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/html/angular/AngularXmlExpression.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/html/angular/AngularXmlExpression.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/html/angular/AngularXmlExpression.java
index 7a8097ed1c123b99275144536dae1af8a7de48d6..d600588f88610af5d6b14f6f0bbd3ea052b09e66 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/html/angular/AngularXmlExpression.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/html/angular/AngularXmlExpression.java
@@ -19,8 +19,6 @@ import com.google.dart.engine.ast.visitor.ElementLocator;
import com.google.dart.engine.ast.visitor.NodeLocator;
import com.google.dart.engine.element.Element;
import com.google.dart.engine.html.ast.XmlExpression;
-import com.google.dart.engine.utilities.source.SourceRange;
-import com.google.dart.engine.utilities.source.SourceRangeFactory;
/**
* Abstract Angular specific {@link XmlExpression}.
@@ -75,8 +73,7 @@ public abstract class AngularXmlExpression extends XmlExpression {
ASTNode node = new NodeLocator(offset).searchWithin(root);
if (node != null) {
Element element = ElementLocator.locate(node);
- SourceRange range = SourceRangeFactory.rangeNode(node);
- return new Reference(element, range);
+ return new Reference(element, node.getOffset(), node.getLength());
}
return null;
}

Powered by Google App Engine
This is Rietveld 408576698