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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/LibraryConfigurationFileImpl.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/LibraryConfigurationFileImpl.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/LibraryConfigurationFileImpl.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/LibraryConfigurationFileImpl.java
index 169bd5c1ce0c04c1d529cd182d6f2f5688ca0f2d..2d838d228d433f4e8a86e5b95467a11b38978798 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/LibraryConfigurationFileImpl.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/LibraryConfigurationFileImpl.java
@@ -97,12 +97,12 @@ public class LibraryConfigurationFileImpl extends SourceFileElementImpl<LibraryC
//this loop is to make sure we're inserting in alphabetical order
isEmpty = false;
LibraryNode node = itr.next();
- pos = node.getSourceStart();
+ pos = node.getSourceInfo().getOffset();
if (node.getText().compareTo(name) > 0) {
isLast = false;
break;
}
- pos += node.getSourceLength();
+ pos += node.getSourceInfo().getLength();
}
Buffer buffer = getBuffer();
String whole = buffer.getContents();
@@ -142,12 +142,12 @@ public class LibraryConfigurationFileImpl extends SourceFileElementImpl<LibraryC
//this loop is to make sure we're inserting in alphabetical order
isEmpty = false;
LibraryNode node = itr.next();
- pos = node.getSourceStart();
+ pos = node.getSourceInfo().getOffset();
if (node.getText().compareTo(name) > 0) {
isLast = false;
break;
}
- pos += node.getSourceLength();
+ pos += node.getSourceInfo().getLength();
}
Buffer buffer = getBuffer();
String whole = buffer.getContents();

Powered by Google App Engine
This is Rietveld 408576698