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

Unified Diff: compiler/java/com/google/dart/compiler/parser/CommentPreservingParser.java

Issue 9600049: Use NodeList where possible. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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: compiler/java/com/google/dart/compiler/parser/CommentPreservingParser.java
diff --git a/compiler/java/com/google/dart/compiler/parser/CommentPreservingParser.java b/compiler/java/com/google/dart/compiler/parser/CommentPreservingParser.java
index 8729d083e6b587215cafbc904c1a3c13a72bbe44..6b0ad6ac2c84a036c65c332b175be8663bc43cb4 100644
--- a/compiler/java/com/google/dart/compiler/parser/CommentPreservingParser.java
+++ b/compiler/java/com/google/dart/compiler/parser/CommentPreservingParser.java
@@ -133,7 +133,7 @@ public class CommentPreservingParser extends DartParser {
for (int[] loc : context.getCommentLocs()) {
DartComment.Style style = getCommentStyle(sourceString, loc[0]);
if (!onlyDartDoc || style == DartComment.Style.DART_DOC) {
- unit.addComment(new DartComment(source, loc[0], loc[1] - loc[0], loc[2], loc[3], style));
+ unit.getComments().add(new DartComment(source, loc[0], loc[1] - loc[0], loc[2], loc[3], style));
}
}

Powered by Google App Engine
This is Rietveld 408576698