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

Unified Diff: pkg/analyzer/lib/src/generated/parser.dart

Issue 677303002: Remove unnecessary List creation (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/analyzer/lib/src/generated/parser.dart
diff --git a/pkg/analyzer/lib/src/generated/parser.dart b/pkg/analyzer/lib/src/generated/parser.dart
index 94ad0ccfdd884228cf7d4a3db9f2548ddce166ac..5d1432315373d7562af6e550fcb85ef0ffa54f6e 100644
--- a/pkg/analyzer/lib/src/generated/parser.dart
+++ b/pkg/analyzer/lib/src/generated/parser.dart
@@ -4598,9 +4598,8 @@ class Parser {
if (commentTokens.isEmpty) {
return null;
}
- List<Token> tokens = new List.from(commentTokens);
- List<CommentReference> references = _parseCommentReferences(tokens);
- return Comment.createDocumentationCommentWithReferences(tokens, references);
+ List<CommentReference> references = _parseCommentReferences(commentTokens);
+ return Comment.createDocumentationCommentWithReferences(commentTokens, references);
}
/**
@@ -6442,7 +6441,7 @@ class Parser {
_reportErrorForCurrentToken(ParserErrorCode.MISSING_IDENTIFIER, []);
components.add(_createSyntheticToken(TokenType.IDENTIFIER));
}
- return new SymbolLiteral(poundSign, new List.from(components));
+ return new SymbolLiteral(poundSign, components);
}
/**

Powered by Google App Engine
This is Rietveld 408576698