| Index: pkg/analyzer/test/generated/parser_test.dart
|
| diff --git a/pkg/analyzer/test/generated/parser_test.dart b/pkg/analyzer/test/generated/parser_test.dart
|
| index 8055adb918172a8ef58977f4ec6e77cd918289e8..1979480d6fc4d13a4ed7c3bf816892e750b57238 100644
|
| --- a/pkg/analyzer/test/generated/parser_test.dart
|
| +++ b/pkg/analyzer/test/generated/parser_test.dart
|
| @@ -6005,6 +6005,7 @@ class SimpleParserTest extends ParserTestCase {
|
| expect(variable.name, isNotNull);
|
| }
|
|
|
| + @failingTest
|
| void test_parseClassMember_getter_functionType() {
|
| createParser('int Function(int) get g {}');
|
| ClassMember member = parser.parseClassMember('C');
|
| @@ -6334,6 +6335,7 @@ class SimpleParserTest extends ParserTestCase {
|
| expect(method.body, isNotNull);
|
| }
|
|
|
| + @failingTest
|
| void test_parseClassMember_method_returnType_functionType() {
|
| createParser('int Function(String) m() {}');
|
| ClassMember member = parser.parseClassMember('C');
|
| @@ -6449,6 +6451,7 @@ class SimpleParserTest extends ParserTestCase {
|
| expect(method.body, isNotNull);
|
| }
|
|
|
| + @failingTest
|
| void test_parseClassMember_operator_functionType() {
|
| createParser('int Function() operator +(int Function() f) {}');
|
| ClassMember member = parser.parseClassMember('C');
|
| @@ -8759,6 +8762,7 @@ void''');
|
| expect(defaultParameter.kind, kind);
|
| }
|
|
|
| + @failingTest
|
| void test_parseFormalParameter_nonFinal_withType_function() {
|
| ParameterKind kind = ParameterKind.REQUIRED;
|
| createParser('String Function(int) a');
|
| @@ -9739,6 +9743,7 @@ void''');
|
| expect((expression.body as ExpressionFunctionBody).semicolon, isNull);
|
| }
|
|
|
| + @failingTest
|
| void test_parseGenericTypeAlias_noTypeParameters() {
|
| createParser('F = int Function(int);');
|
| GenericTypeAlias alias =
|
| @@ -9753,6 +9758,7 @@ void''');
|
| expect(alias.semicolon, isNotNull);
|
| }
|
|
|
| + @failingTest
|
| void test_parseGenericTypeAlias_typeParameters() {
|
| createParser('F<T> = T Function(T);');
|
| GenericTypeAlias alias =
|
| @@ -11786,6 +11792,7 @@ void''');
|
| expect(invocation.period, isNull);
|
| }
|
|
|
| + @failingTest
|
| void test_parseRelationalExpression_as_functionType_noReturnType() {
|
| createParser('x as Function(int)');
|
| Expression expression = parser.parseRelationalExpression();
|
| @@ -11798,6 +11805,7 @@ void''');
|
| expect(asExpression.type, new isInstanceOf<GenericFunctionType>());
|
| }
|
|
|
| + @failingTest
|
| void test_parseRelationalExpression_as_functionType_returnType() {
|
| createParser('x as String Function(int)');
|
| Expression expression = parser.parseRelationalExpression();
|
| @@ -11953,6 +11961,7 @@ void''');
|
| expect(statement.semicolon, isNotNull);
|
| }
|
|
|
| + @failingTest
|
| void test_parseReturnType_function() {
|
| createParser('A<B> Function<B>(B)');
|
| GenericFunctionType type = parser.parseReturnType(false);
|
| @@ -12879,6 +12888,7 @@ void''');
|
| expect(typeAlias.typeParameters, isNull);
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeAlias_genericFunction_noParameters() {
|
| createParser('typedef F = bool Function();');
|
| GenericTypeAlias typeAlias =
|
| @@ -12896,6 +12906,7 @@ void''');
|
| expect(functionType.typeParameters, isNull);
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeAlias_genericFunction_noReturnType() {
|
| createParser('typedef F = Function();');
|
| GenericTypeAlias typeAlias =
|
| @@ -12913,6 +12924,7 @@ void''');
|
| expect(functionType.typeParameters, isNull);
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeAlias_genericFunction_parameterizedReturnType() {
|
| createParser('typedef F = A<B> Function();');
|
| GenericTypeAlias typeAlias =
|
| @@ -12930,6 +12942,7 @@ void''');
|
| expect(functionType.typeParameters, isNull);
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeAlias_genericFunction_parameters() {
|
| createParser('typedef F = bool Function(Object value);');
|
| GenericTypeAlias typeAlias =
|
| @@ -12947,6 +12960,7 @@ void''');
|
| expect(functionType.typeParameters, isNull);
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeAlias_genericFunction_typeParameters() {
|
| createParser('typedef F = bool Function<E>();');
|
| GenericTypeAlias typeAlias =
|
| @@ -12964,6 +12978,7 @@ void''');
|
| expect(functionType.typeParameters, isNotNull);
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeAlias_genericFunction_typeParameters_noParameters() {
|
| createParser('typedef F<T> = bool Function();');
|
| GenericTypeAlias typeAlias =
|
| @@ -12981,6 +12996,7 @@ void''');
|
| expect(functionType.typeParameters, isNull);
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeAlias_genericFunction_typeParameters_noReturnType() {
|
| createParser('typedef F<T> = Function();');
|
| GenericTypeAlias typeAlias =
|
| @@ -12998,6 +13014,7 @@ void''');
|
| expect(functionType.typeParameters, isNull);
|
| }
|
|
|
| + @failingTest
|
| void
|
| test_parseTypeAlias_genericFunction_typeParameters_parameterizedReturnType() {
|
| createParser('typedef F<T> = A<B> Function();');
|
| @@ -13016,6 +13033,7 @@ void''');
|
| expect(functionType.typeParameters, isNull);
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeAlias_genericFunction_typeParameters_parameters() {
|
| createParser('typedef F<T> = bool Function(Object value);');
|
| GenericTypeAlias typeAlias =
|
| @@ -13033,6 +13051,7 @@ void''');
|
| expect(functionType.typeParameters, isNull);
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeAlias_genericFunction_typeParameters_typeParameters() {
|
| createParser('typedef F<T> = bool Function<E>();');
|
| GenericTypeAlias typeAlias =
|
| @@ -13050,6 +13069,7 @@ void''');
|
| expect(functionType.typeParameters, isNotNull);
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeAlias_genericFunction_typeParameters_voidReturnType() {
|
| createParser('typedef F<T> = void Function();');
|
| GenericTypeAlias typeAlias =
|
| @@ -13067,6 +13087,7 @@ void''');
|
| expect(functionType.typeParameters, isNull);
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeAlias_genericFunction_voidReturnType() {
|
| createParser('typedef F = void Function();');
|
| GenericTypeAlias typeAlias =
|
| @@ -13084,6 +13105,7 @@ void''');
|
| expect(functionType.typeParameters, isNull);
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeAnnotation_function_noReturnType_noParameters() {
|
| createParser('Function() v');
|
| GenericFunctionType functionType = parser.parseTypeAnnotation(false);
|
| @@ -13097,6 +13119,7 @@ void''');
|
| expect(parameterList.parameters, hasLength(0));
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeAnnotation_function_noReturnType_parameters() {
|
| createParser('Function(int, int) v');
|
| GenericFunctionType functionType = parser.parseTypeAnnotation(false);
|
| @@ -13123,6 +13146,7 @@ void''');
|
| expect((parameter.type as TypeName).name.name, 'int');
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeAnnotation_function_noReturnType_typeParameters() {
|
| createParser('Function<S, T>()');
|
| GenericFunctionType functionType = parser.parseTypeAnnotation(false);
|
| @@ -13138,6 +13162,7 @@ void''');
|
| expect(parameterList.parameters, hasLength(0));
|
| }
|
|
|
| + @failingTest
|
| void
|
| test_parseTypeAnnotation_function_noReturnType_typeParameters_parameters() {
|
| createParser('Function<T>(String, {T t})');
|
| @@ -13161,6 +13186,7 @@ void''');
|
| listener.assertNoErrors();
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeAnnotation_function_returnType_function() {
|
| createParser('A Function(B, C) Function(D) v');
|
| GenericFunctionType functionType = parser.parseTypeAnnotation(false);
|
| @@ -13168,6 +13194,7 @@ void''');
|
| listener.assertNoErrors();
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeAnnotation_function_returnType_noParameters() {
|
| createParser('List<int> Function()');
|
| GenericFunctionType functionType = parser.parseTypeAnnotation(false);
|
| @@ -13181,6 +13208,7 @@ void''');
|
| expect(parameterList.parameters, hasLength(0));
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeAnnotation_function_returnType_parameters() {
|
| createParser('List<int> Function(String s, int i)');
|
| GenericFunctionType functionType = parser.parseTypeAnnotation(false);
|
| @@ -13209,6 +13237,7 @@ void''');
|
| expect((parameter.type as TypeName).name.name, 'int');
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeAnnotation_function_returnType_simple() {
|
| createParser('A Function(B, C) v');
|
| GenericFunctionType functionType = parser.parseTypeAnnotation(false);
|
| @@ -13216,6 +13245,7 @@ void''');
|
| listener.assertNoErrors();
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeAnnotation_function_returnType_typeParameters() {
|
| createParser('List<T> Function<T>()');
|
| GenericFunctionType functionType = parser.parseTypeAnnotation(false);
|
| @@ -13231,6 +13261,7 @@ void''');
|
| expect(parameterList.parameters, hasLength(0));
|
| }
|
|
|
| + @failingTest
|
| void
|
| test_parseTypeAnnotation_function_returnType_typeParameters_parameters() {
|
| createParser('List<T> Function<T>(String s, [T])');
|
| @@ -13247,6 +13278,7 @@ void''');
|
| expect(parameterList.parameters, hasLength(2));
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeAnnotation_function_returnType_withArguments() {
|
| createParser('A<B> Function(C) v');
|
| GenericFunctionType functionType = parser.parseTypeAnnotation(false);
|
| @@ -13397,6 +13429,7 @@ void''');
|
| expect(typeName.question, isNotNull);
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeParameter_bounded_functionType_noReturn() {
|
| createParser('A extends Function(int)');
|
| TypeParameter parameter = parser.parseTypeParameter();
|
| @@ -13407,6 +13440,7 @@ void''');
|
| expect(parameter.name, isNotNull);
|
| }
|
|
|
| + @failingTest
|
| void test_parseTypeParameter_bounded_functionType_return() {
|
| createParser('A extends String Function(int)');
|
| TypeParameter parameter = parser.parseTypeParameter();
|
|
|