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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java

Issue 24481002: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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/parser/Parser.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
index 53b22c84863973e349b6b1e586b948707febda33..2cb03db2e570db2319d5e282575f22a26992ad87 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
@@ -5603,12 +5603,14 @@ public class Parser {
Matcher matcher = TodoCode.TODO_REGEX.matcher(commentToken.getLexeme());
if (matcher.find()) {
+ int offset = commentToken.getOffset() + matcher.start() + matcher.group(1).length();
+ int length = matcher.group(2).length();
errorListener.onError(new AnalysisError(
source,
- commentToken.getOffset() + matcher.start(1),
- matcher.end(1) - matcher.start(1),
+ offset,
+ length,
TodoCode.TODO,
- matcher.group(1)));
+ matcher.group(2)));
}
}

Powered by Google App Engine
This is Rietveld 408576698