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

Unified Diff: pkg/analyzer-experimental/lib/src/generated/scanner.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/scanner.dart
diff --git a/pkg/analyzer-experimental/lib/src/generated/scanner.dart b/pkg/analyzer-experimental/lib/src/generated/scanner.dart
index 5251003f8f12fbb55e83424fe3b7278b6a1685b2..f2bd02d28705a58e4fb2e39c56f0f4bb54adcce3 100644
--- a/pkg/analyzer-experimental/lib/src/generated/scanner.dart
+++ b/pkg/analyzer-experimental/lib/src/generated/scanner.dart
@@ -1771,7 +1771,7 @@ class KeywordState {
/**
* An empty transition table used by leaf states.
*/
- static List<KeywordState> _EMPTY_TABLE = new List<KeywordState>.fixedLength(26);
+ static List<KeywordState> _EMPTY_TABLE = new List<KeywordState>(26);
/**
* The initial state in the state machine.
*/
@@ -1789,7 +1789,7 @@ class KeywordState {
* @return the state that was created
*/
static KeywordState computeKeywordStateTable(int start, List<String> strings, int offset, int length12) {
- List<KeywordState> result = new List<KeywordState>.fixedLength(26);
+ List<KeywordState> result = new List<KeywordState>(26);
assert(length12 != 0);
int chunk = 0x0;
int chunkStart = -1;
@@ -1828,7 +1828,7 @@ class KeywordState {
*/
static KeywordState createKeywordStateTable() {
List<Keyword> values2 = Keyword.values;
- List<String> strings = new List<String>.fixedLength(values2.length);
+ List<String> strings = new List<String>(values2.length);
for (int i = 0; i < values2.length; i++) {
strings[i] = values2[i].syntax;
}
@@ -1867,4 +1867,4 @@ class KeywordState {
* @return the state that follows this state on a transition of the given character
*/
KeywordState next(int c) => _table[c - 0x61];
-}
+}

Powered by Google App Engine
This is Rietveld 408576698