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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/SourceRangeImpl.java

Issue 9651004: Make SourceInfo a class, rename its menthods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweak for formatting, lazily create LainesInfo Created 8 years, 9 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.tools.core/src/com/google/dart/tools/core/internal/model/SourceRangeImpl.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/SourceRangeImpl.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/SourceRangeImpl.java
index d07cae2551e7eafa678de70ffe446b679131a2a8..812b87c5a80a9d1a95d45a2c899582739b637dc1 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/SourceRangeImpl.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/SourceRangeImpl.java
@@ -53,8 +53,8 @@ public class SourceRangeImpl implements SourceRange {
* @param the node whose source position is to be used to initialize the source range
*/
public SourceRangeImpl(DartNode node) {
- this.offset = node.getSourceStart();
- this.length = node.getSourceLength();
+ this.offset = node.getSourceInfo().getOffset();
+ this.length = node.getSourceInfo().getLength();
}
/**

Powered by Google App Engine
This is Rietveld 408576698