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

Unified Diff: pkg/analyzer-experimental/test/generated/element_test.dart

Issue 12543003: Use limited JavaStringBuilder implementation instead of Dart StringBuffer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweak JavaStringBuilder. Created 7 years, 9 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 9ae66da0c9bd3e1faea5ba5d0eb468f701c90c1f..bb3470f3ab29947dc7c17f32eed8a77316d33e07 100644
--- a/pkg/analyzer-experimental/test/generated/element_test.dart
+++ b/pkg/analyzer-experimental/test/generated/element_test.dart
@@ -1147,7 +1147,7 @@ class ElementFactory {
}
static LocalVariableElementImpl localVariableElement(Identifier name) => new LocalVariableElementImpl(name);
static LocalVariableElementImpl localVariableElement2(String name) => new LocalVariableElementImpl(ASTFactory.identifier2(name));
- static MethodElementImpl methodElement(String methodName, Type2 returnType11, List<Type2> argumentTypes) {
+ static MethodElementImpl methodElement(String methodName, Type2 returnType12, List<Type2> argumentTypes) {
MethodElementImpl method = new MethodElementImpl.con1(ASTFactory.identifier2(methodName));
int count = argumentTypes.length;
List<ParameterElement> parameters = new List<ParameterElement>(count);
@@ -1159,7 +1159,7 @@ class ElementFactory {
method.parameters = parameters;
FunctionTypeImpl methodType = new FunctionTypeImpl.con1(method);
methodType.normalParameterTypes = argumentTypes;
- methodType.returnType = returnType11;
+ methodType.returnType = returnType12;
method.type = methodType;
return method;
}
@@ -1453,8 +1453,8 @@ class FunctionTypeImplTest extends EngineTestCase {
}
void test_getReturnType() {
FunctionTypeImpl type = new FunctionTypeImpl.con1(new FunctionElementImpl.con1(ASTFactory.identifier2("f")));
- Type2 returnType7 = type.returnType;
- JUnitTestCase.assertEquals(VoidTypeImpl.instance, returnType7);
+ Type2 returnType8 = type.returnType;
+ JUnitTestCase.assertEquals(VoidTypeImpl.instance, returnType8);
}
void test_getTypeArguments() {
FunctionTypeImpl type = new FunctionTypeImpl.con1(new FunctionElementImpl.con1(ASTFactory.identifier2("f")));
@@ -1657,8 +1657,8 @@ class FunctionTypeImplTest extends EngineTestCase {
FunctionTypeImpl type = new FunctionTypeImpl.con1(new FunctionElementImpl.con1(ASTFactory.identifier2("f")));
Type2 expectedType = new InterfaceTypeImpl.con1(new ClassElementImpl(ASTFactory.identifier2("C")));
type.returnType = expectedType;
- Type2 returnType8 = type.returnType;
- JUnitTestCase.assertEquals(expectedType, returnType8);
+ Type2 returnType9 = type.returnType;
+ JUnitTestCase.assertEquals(expectedType, returnType9);
}
void test_setTypeArguments() {
FunctionTypeImpl type = new FunctionTypeImpl.con1(new FunctionElementImpl.con1(ASTFactory.identifier2("f")));
« no previous file with comments | « pkg/analyzer-experimental/lib/src/generated/source.dart ('k') | pkg/analyzer-experimental/test/generated/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698