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

Unified Diff: pkg/analyzer-experimental/test/generated/element_test.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/element_test.dart
diff --git a/pkg/analyzer-experimental/test/generated/element_test.dart b/pkg/analyzer-experimental/test/generated/element_test.dart
index 384d3323fbb2aa943472f5b2ac1d528b90eedb09..0610a558c302ee389deb3ee810b241f18113e008 100644
--- a/pkg/analyzer-experimental/test/generated/element_test.dart
+++ b/pkg/analyzer-experimental/test/generated/element_test.dart
@@ -613,8 +613,8 @@ class ElementFactory {
element.type = type;
int count = parameterNames.length;
if (count > 0) {
- List<TypeVariableElementImpl> typeVariables = new List<TypeVariableElementImpl>.fixedLength(count);
- List<TypeVariableTypeImpl> typeArguments = new List<TypeVariableTypeImpl>.fixedLength(count);
+ List<TypeVariableElementImpl> typeVariables = new List<TypeVariableElementImpl>(count);
+ List<TypeVariableTypeImpl> typeArguments = new List<TypeVariableTypeImpl>(count);
for (int i = 0; i < count; i++) {
TypeVariableElementImpl variable = new TypeVariableElementImpl(ASTFactory.identifier2(parameterNames[i]));
typeVariables[i] = variable;
@@ -664,7 +664,7 @@ class ElementFactory {
}
int count = normalParameters == null ? 0 : normalParameters.length;
if (count > 0) {
- List<InterfaceType> normalParameterTypes = new List<InterfaceType>.fixedLength(count);
+ List<InterfaceType> normalParameterTypes = new List<InterfaceType>(count);
for (int i = 0; i < count; i++) {
normalParameterTypes[i] = normalParameters[i].type;
}
@@ -672,7 +672,7 @@ class ElementFactory {
}
count = optionalParameters == null ? 0 : optionalParameters.length;
if (count > 0) {
- List<InterfaceType> optionalParameterTypes = new List<InterfaceType>.fixedLength(count);
+ List<InterfaceType> optionalParameterTypes = new List<InterfaceType>(count);
for (int i = 0; i < count; i++) {
optionalParameterTypes[i] = optionalParameters[i].type;
}
@@ -689,7 +689,7 @@ class ElementFactory {
}
int count = normalParameters == null ? 0 : normalParameters.length;
if (count > 0) {
- List<InterfaceType> normalParameterTypes = new List<InterfaceType>.fixedLength(count);
+ List<InterfaceType> normalParameterTypes = new List<InterfaceType>(count);
for (int i = 0; i < count; i++) {
normalParameterTypes[i] = normalParameters[i].type;
}
@@ -747,7 +747,7 @@ class ElementFactory {
static MethodElement methodElement(String methodName, Type2 returnType9, List<Type2> argumentTypes) {
MethodElementImpl method = new MethodElementImpl.con1(ASTFactory.identifier2(methodName));
int count = argumentTypes.length;
- List<ParameterElement> parameters = new List<ParameterElement>.fixedLength(count);
+ List<ParameterElement> parameters = new List<ParameterElement>(count);
for (int i = 0; i < count; i++) {
ParameterElementImpl parameter = new ParameterElementImpl(ASTFactory.identifier2("a${i}"));
parameter.type = argumentTypes[i];

Powered by Google App Engine
This is Rietveld 408576698