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

Unified Diff: pkg/analyzer-experimental/lib/src/generated/engine.dart

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 7 years, 10 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-experimental/lib/src/generated/engine.dart
diff --git a/pkg/analyzer-experimental/lib/src/generated/engine.dart b/pkg/analyzer-experimental/lib/src/generated/engine.dart
index 20ab9248d6939c4605b24706f55b861030ec9451..b1f1265dbb0984d2e0524063b44b29e5ed4ab2d0 100644
--- a/pkg/analyzer-experimental/lib/src/generated/engine.dart
+++ b/pkg/analyzer-experimental/lib/src/generated/engine.dart
@@ -513,7 +513,7 @@ class AnalysisContextImpl implements AnalysisContext {
}
CompilationUnit resolve(Source source, LibraryElement library) => parse(source);
Token scan(Source source, AnalysisErrorListener errorListener) {
- List<Token> tokens = new List<Token>.fixedLength(1);
+ List<Token> tokens = new List<Token>(1);
Source_ContentReceiver receiver = new Source_ContentReceiver_1(source, errorListener, tokens);
try {
source.getContents(receiver);
@@ -657,4 +657,4 @@ class Logger_NullLogger implements Logger {
}
void logInformation2(String message, Exception exception) {
}
-}
+}

Powered by Google App Engine
This is Rietveld 408576698