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

Unified Diff: pkg/analyzer-experimental/test/generated/test_support.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/test/generated/test_support.dart
diff --git a/pkg/analyzer-experimental/test/generated/test_support.dart b/pkg/analyzer-experimental/test/generated/test_support.dart
index a559098c41e6b928be1b84020303c33513515288..987ff382636fe71ac72b5289b932b929561c4888 100644
--- a/pkg/analyzer-experimental/test/generated/test_support.dart
+++ b/pkg/analyzer-experimental/test/generated/test_support.dart
@@ -37,7 +37,7 @@ class GatheringErrorListener implements AnalysisErrorListener {
/**
* An empty array of errors used when no errors are expected.
*/
- static List<AnalysisError> _NO_ERRORS = new List<AnalysisError>.fixedLength(0);
+ static List<AnalysisError> _NO_ERRORS = new List<AnalysisError>(0);
/**
* Initialize a newly created error listener to collect errors.
*/
@@ -351,7 +351,7 @@ class EngineTestCase extends JUnitTestCase {
JUnitTestCase.assertNotNull(actualValues);
int expectedLength = expectedValues.length;
JUnitTestCase.assertEquals(expectedLength, actualValues.length);
- List<bool> found = new List<bool>.fixedLength(expectedLength);
+ List<bool> found = new List<bool>(expectedLength);
for (int i = 0; i < expectedLength; i++) {
found[i] = false;
}

Powered by Google App Engine
This is Rietveld 408576698