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

Unified Diff: pkg/analyzer-experimental/lib/src/generated/resolver.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/resolver.dart
diff --git a/pkg/analyzer-experimental/lib/src/generated/resolver.dart b/pkg/analyzer-experimental/lib/src/generated/resolver.dart
index ed1a436d645efbbdf8abb304dd3f4359b4bdfa13..2e576fca2f4aadb8651165b6ddcf0949d28c1e0f 100644
--- a/pkg/analyzer-experimental/lib/src/generated/resolver.dart
+++ b/pkg/analyzer-experimental/lib/src/generated/resolver.dart
@@ -125,7 +125,7 @@ class ElementBuilder extends RecursiveASTVisitor<Object> {
element.typeVariables = typeVariables4;
InterfaceTypeImpl interfaceType = new InterfaceTypeImpl.con1(element);
int typeVariableCount = typeVariables4.length;
- List<Type2> typeArguments = new List<Type2>.fixedLength(typeVariableCount);
+ List<Type2> typeArguments = new List<Type2>(typeVariableCount);
for (int i = 0; i < typeVariableCount; i++) {
TypeVariableElementImpl typeVariable = (typeVariables4[i] as TypeVariableElementImpl);
TypeVariableTypeImpl typeArgument = new TypeVariableTypeImpl(typeVariable);
@@ -148,7 +148,7 @@ class ElementBuilder extends RecursiveASTVisitor<Object> {
element.typeVariables = typeVariables5;
InterfaceTypeImpl interfaceType = new InterfaceTypeImpl.con1(element);
int typeVariableCount = typeVariables5.length;
- List<Type2> typeArguments = new List<Type2>.fixedLength(typeVariableCount);
+ List<Type2> typeArguments = new List<Type2>(typeVariableCount);
for (int i = 0; i < typeVariableCount; i++) {
TypeVariableElementImpl typeVariable = (typeVariables5[i] as TypeVariableElementImpl);
TypeVariableTypeImpl typeArgument = new TypeVariableTypeImpl(typeVariable);
@@ -1996,7 +1996,7 @@ class LibraryResolver {
*/
List<String> getIdentifiers(NodeList<SimpleIdentifier> names) {
int count = names.length;
- List<String> identifiers = new List<String>.fixedLength(count);
+ List<String> identifiers = new List<String>(count);
for (int i = 0; i < count; i++) {
identifiers[i] = names[i].name;
}
@@ -3536,7 +3536,7 @@ class TypeResolverVisitor extends ScopedVisitor {
int parameterCount = parameters.length;
if (parameterCount > 0) {
DynamicTypeImpl dynamicType = DynamicTypeImpl.instance;
- List<Type2> arguments = new List<Type2>.fixedLength(parameterCount);
+ List<Type2> arguments = new List<Type2>(parameterCount);
for (int i = 0; i < parameterCount; i++) {
arguments[i] = dynamicType;
}

Powered by Google App Engine
This is Rietveld 408576698