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

Unified Diff: pkg/analysis_services/lib/src/correction/source_range.dart

Issue 427473003: Uncomment and test fixes for importing libraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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: pkg/analysis_services/lib/src/correction/source_range.dart
diff --git a/pkg/analysis_services/lib/src/correction/source_range.dart b/pkg/analysis_services/lib/src/correction/source_range.dart
index 433d5e6fad22966de77471a15d1ef2861899be9d..a0c3a46c5eedc42aab3b2f6159d12d8b973c9b23 100644
--- a/pkg/analysis_services/lib/src/correction/source_range.dart
+++ b/pkg/analysis_services/lib/src/correction/source_range.dart
@@ -47,6 +47,12 @@ SourceRange rangeNodes(List<AstNode> nodes) {
return rangeStartEnd(first, last);
}
+SourceRange rangeOffsetEnd(o) {
+ int offset = o.offset;
+ int length = o.end - offset;
+ return new SourceRange(offset, length);
+}
+
SourceRange rangeStartEnd(a, b) {
int offset = a is int ? a : a.offset;
int end = b is int ? b : b.end;

Powered by Google App Engine
This is Rietveld 408576698