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

Unified Diff: pkg/analysis_server/lib/src/services/generated/util.dart

Issue 667463004: Code clean-up (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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_server/lib/src/services/generated/util.dart
diff --git a/pkg/analysis_server/lib/src/services/generated/util.dart b/pkg/analysis_server/lib/src/services/generated/util.dart
index a8753fe248bc4a8b69ebfcbe78ec5e00dcadf87b..2c89137e62bdcfde96c388f343bc8c2baaf1582a 100644
--- a/pkg/analysis_server/lib/src/services/generated/util.dart
+++ b/pkg/analysis_server/lib/src/services/generated/util.dart
@@ -457,7 +457,7 @@ class CorrectionUtils {
parents[--index] = current;
current = current.parent;
}
- return JavaArrays.asList(parents);
+ return parents;
}
/**
@@ -1010,7 +1010,9 @@ class CorrectionUtils {
// check if "offset" is in one of the String ranges
bool inString = false;
for (SourceRange lineRange in lineRanges) {
- inString = javaBooleanOr(inString, lineOffset > lineRange.offset && lineOffset < lineRange.end);
+ if (lineOffset > lineRange.offset && lineOffset < lineRange.end) {
+ inString = true;
+ }
if (lineOffset > lineRange.end) {
break;
}

Powered by Google App Engine
This is Rietveld 408576698