| Index: tests/language/function_type/test_generator.dart
|
| diff --git a/tests/language/function_type/test_generator.dart b/tests/language/function_type/test_generator.dart
|
| index 68f8a7cb7612e3c2461484890a10cee872008ddf..c9f14ec05eb50e345eb9ab7f0c85d8513478ca28 100644
|
| --- a/tests/language/function_type/test_generator.dart
|
| +++ b/tests/language/function_type/test_generator.dart
|
| @@ -448,8 +448,8 @@ List<FunctionType> buildFunctionTypes() {
|
| [new Parameter(new NominalType("int"), "x")],
|
| [new Parameter(parameterType, null)]));
|
| // int Function({int x}).
|
| - result.add(new FunctionType(returnType, generics, null, null,
|
| - [new Parameter(parameterType, "x")]));
|
| + result.add(new FunctionType(
|
| + returnType, generics, null, null, [new Parameter(parameterType, "x")]));
|
| // int Function(int, {int x})
|
| result.add(new FunctionType(
|
| returnType,
|
| @@ -546,7 +546,6 @@ final bool inCheckedMode =
|
| (() { bool result = false; assert(result = true); return result; })();
|
| """;
|
|
|
| -
|
| class Unit {
|
| final String name;
|
| final StringBuffer typedefs = new StringBuffer();
|
| @@ -593,7 +592,6 @@ void main() {
|
| }
|
| }
|
|
|
| -
|
| final TEST_METHOD_HEADER = """
|
| void #testName() {
|
| // #typeCode""";
|
| @@ -670,6 +668,7 @@ String createTypeCode(FunctionType type) {
|
| type.writeType(typeBuffer);
|
| return typeBuffer.toString();
|
| }
|
| +
|
| String createStaticFunCode(FunctionType type, int id) {
|
| StringBuffer staticFunBuffer = new StringBuffer();
|
| type.writeFunction(staticFunBuffer, createStaticFunName(id));
|
| @@ -733,7 +732,6 @@ void generateTests() {
|
| String testMethodCode =
|
| createTestMethodFunCode(type, typeCode, typeCounter);
|
|
|
| -
|
| unit.typedefs.writeln("typedef $typeName<T> = $typeCode;");
|
| unit.globals.writeln(staticFunCode);
|
| unit.fields.writeln(" $typeCode $fieldName;");
|
| @@ -767,4 +765,4 @@ void main(List<String> arguments) {
|
| return;
|
| }
|
| generateTests();
|
| -}
|
| +}
|
|
|