| OLD | NEW |
| 1 // This code was auto-generated, is not intended to be edited, and is subject to | 1 // This code was auto-generated, is not intended to be edited, and is subject to |
| 2 // significant change. Please see the README file for more information. | 2 // significant change. Please see the README file for more information. |
| 3 library engine.parser_test; | 3 library engine.parser_test; |
| 4 import 'package:analyzer_experimental/src/generated/java_core.dart'; | 4 import 'package:analyzer_experimental/src/generated/java_core.dart'; |
| 5 import 'package:analyzer_experimental/src/generated/java_junit.dart'; | 5 import 'package:analyzer_experimental/src/generated/java_junit.dart'; |
| 6 import 'package:analyzer_experimental/src/generated/error.dart'; | 6 import 'package:analyzer_experimental/src/generated/error.dart'; |
| 7 import 'package:analyzer_experimental/src/generated/scanner.dart'; | 7 import 'package:analyzer_experimental/src/generated/scanner.dart'; |
| 8 import 'package:analyzer_experimental/src/generated/ast.dart'; | 8 import 'package:analyzer_experimental/src/generated/ast.dart'; |
| 9 import 'package:analyzer_experimental/src/generated/parser.dart'; | 9 import 'package:analyzer_experimental/src/generated/parser.dart'; |
| 10 import 'package:analyzer_experimental/src/generated/utilities_dart.dart'; | 10 import 'package:analyzer_experimental/src/generated/utilities_dart.dart'; |
| (...skipping 1910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1921 JUnitTestCase.assertNotNull(parameterList.leftParenthesis); | 1921 JUnitTestCase.assertNotNull(parameterList.leftParenthesis); |
| 1922 JUnitTestCase.assertNotNull(parameterList.leftDelimiter); | 1922 JUnitTestCase.assertNotNull(parameterList.leftDelimiter); |
| 1923 EngineTestCase.assertSize(1, parameterList.parameters); | 1923 EngineTestCase.assertSize(1, parameterList.parameters); |
| 1924 JUnitTestCase.assertNotNull(parameterList.rightDelimiter); | 1924 JUnitTestCase.assertNotNull(parameterList.rightDelimiter); |
| 1925 JUnitTestCase.assertNotNull(parameterList.rightParenthesis); | 1925 JUnitTestCase.assertNotNull(parameterList.rightParenthesis); |
| 1926 } | 1926 } |
| 1927 void test_parseForStatement_each_identifier() { | 1927 void test_parseForStatement_each_identifier() { |
| 1928 ForEachStatement statement = ParserTestCase.parse5("parseForStatement", "for
(element in list) {}", []); | 1928 ForEachStatement statement = ParserTestCase.parse5("parseForStatement", "for
(element in list) {}", []); |
| 1929 JUnitTestCase.assertNotNull(statement.forKeyword); | 1929 JUnitTestCase.assertNotNull(statement.forKeyword); |
| 1930 JUnitTestCase.assertNotNull(statement.leftParenthesis); | 1930 JUnitTestCase.assertNotNull(statement.leftParenthesis); |
| 1931 JUnitTestCase.assertNotNull(statement.loopVariable); | 1931 JUnitTestCase.assertNull(statement.loopVariable); |
| 1932 JUnitTestCase.assertNotNull(statement.identifier); |
| 1932 JUnitTestCase.assertNotNull(statement.inKeyword); | 1933 JUnitTestCase.assertNotNull(statement.inKeyword); |
| 1933 JUnitTestCase.assertNotNull(statement.iterator); | 1934 JUnitTestCase.assertNotNull(statement.iterator); |
| 1934 JUnitTestCase.assertNotNull(statement.rightParenthesis); | 1935 JUnitTestCase.assertNotNull(statement.rightParenthesis); |
| 1935 JUnitTestCase.assertNotNull(statement.body); | 1936 JUnitTestCase.assertNotNull(statement.body); |
| 1936 } | 1937 } |
| 1937 void test_parseForStatement_each_noType_metadata() { | 1938 void test_parseForStatement_each_noType_metadata() { |
| 1938 ForEachStatement statement = ParserTestCase.parse5("parseForStatement", "for
(@A var element in list) {}", []); | 1939 ForEachStatement statement = ParserTestCase.parse5("parseForStatement", "for
(@A var element in list) {}", []); |
| 1939 JUnitTestCase.assertNotNull(statement.forKeyword); | 1940 JUnitTestCase.assertNotNull(statement.forKeyword); |
| 1940 JUnitTestCase.assertNotNull(statement.leftParenthesis); | 1941 JUnitTestCase.assertNotNull(statement.leftParenthesis); |
| 1941 JUnitTestCase.assertNotNull(statement.loopVariable); | 1942 JUnitTestCase.assertNotNull(statement.loopVariable); |
| 1942 EngineTestCase.assertSize(1, statement.loopVariable.metadata); | 1943 EngineTestCase.assertSize(1, statement.loopVariable.metadata); |
| 1944 JUnitTestCase.assertNull(statement.identifier); |
| 1943 JUnitTestCase.assertNotNull(statement.inKeyword); | 1945 JUnitTestCase.assertNotNull(statement.inKeyword); |
| 1944 JUnitTestCase.assertNotNull(statement.iterator); | 1946 JUnitTestCase.assertNotNull(statement.iterator); |
| 1945 JUnitTestCase.assertNotNull(statement.rightParenthesis); | 1947 JUnitTestCase.assertNotNull(statement.rightParenthesis); |
| 1946 JUnitTestCase.assertNotNull(statement.body); | 1948 JUnitTestCase.assertNotNull(statement.body); |
| 1947 } | 1949 } |
| 1948 void test_parseForStatement_each_type() { | 1950 void test_parseForStatement_each_type() { |
| 1949 ForEachStatement statement = ParserTestCase.parse5("parseForStatement", "for
(A element in list) {}", []); | 1951 ForEachStatement statement = ParserTestCase.parse5("parseForStatement", "for
(A element in list) {}", []); |
| 1950 JUnitTestCase.assertNotNull(statement.forKeyword); | 1952 JUnitTestCase.assertNotNull(statement.forKeyword); |
| 1951 JUnitTestCase.assertNotNull(statement.leftParenthesis); | 1953 JUnitTestCase.assertNotNull(statement.leftParenthesis); |
| 1952 JUnitTestCase.assertNotNull(statement.loopVariable); | 1954 JUnitTestCase.assertNotNull(statement.loopVariable); |
| 1955 JUnitTestCase.assertNull(statement.identifier); |
| 1953 JUnitTestCase.assertNotNull(statement.inKeyword); | 1956 JUnitTestCase.assertNotNull(statement.inKeyword); |
| 1954 JUnitTestCase.assertNotNull(statement.iterator); | 1957 JUnitTestCase.assertNotNull(statement.iterator); |
| 1955 JUnitTestCase.assertNotNull(statement.rightParenthesis); | 1958 JUnitTestCase.assertNotNull(statement.rightParenthesis); |
| 1956 JUnitTestCase.assertNotNull(statement.body); | 1959 JUnitTestCase.assertNotNull(statement.body); |
| 1957 } | 1960 } |
| 1958 void test_parseForStatement_each_var() { | 1961 void test_parseForStatement_each_var() { |
| 1959 ForEachStatement statement = ParserTestCase.parse5("parseForStatement", "for
(var element in list) {}", []); | 1962 ForEachStatement statement = ParserTestCase.parse5("parseForStatement", "for
(var element in list) {}", []); |
| 1960 JUnitTestCase.assertNotNull(statement.forKeyword); | 1963 JUnitTestCase.assertNotNull(statement.forKeyword); |
| 1961 JUnitTestCase.assertNotNull(statement.leftParenthesis); | 1964 JUnitTestCase.assertNotNull(statement.leftParenthesis); |
| 1962 JUnitTestCase.assertNotNull(statement.loopVariable); | 1965 JUnitTestCase.assertNotNull(statement.loopVariable); |
| 1966 JUnitTestCase.assertNull(statement.identifier); |
| 1963 JUnitTestCase.assertNotNull(statement.inKeyword); | 1967 JUnitTestCase.assertNotNull(statement.inKeyword); |
| 1964 JUnitTestCase.assertNotNull(statement.iterator); | 1968 JUnitTestCase.assertNotNull(statement.iterator); |
| 1965 JUnitTestCase.assertNotNull(statement.rightParenthesis); | 1969 JUnitTestCase.assertNotNull(statement.rightParenthesis); |
| 1966 JUnitTestCase.assertNotNull(statement.body); | 1970 JUnitTestCase.assertNotNull(statement.body); |
| 1967 } | 1971 } |
| 1968 void test_parseForStatement_loop_c() { | 1972 void test_parseForStatement_loop_c() { |
| 1969 ForStatement statement = ParserTestCase.parse5("parseForStatement", "for (;
i < count;) {}", []); | 1973 ForStatement statement = ParserTestCase.parse5("parseForStatement", "for (;
i < count;) {}", []); |
| 1970 JUnitTestCase.assertNotNull(statement.forKeyword); | 1974 JUnitTestCase.assertNotNull(statement.forKeyword); |
| 1971 JUnitTestCase.assertNotNull(statement.leftParenthesis); | 1975 JUnitTestCase.assertNotNull(statement.leftParenthesis); |
| 1972 JUnitTestCase.assertNull(statement.variables); | 1976 JUnitTestCase.assertNull(statement.variables); |
| (...skipping 1795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3768 /** | 3772 /** |
| 3769 * Invoke the method [Parser#computeStringValue] with the given argument. | 3773 * Invoke the method [Parser#computeStringValue] with the given argument. |
| 3770 * | 3774 * |
| 3771 * @param lexeme the argument to the method | 3775 * @param lexeme the argument to the method |
| 3772 * @param first `true` if this is the first token in a string literal | 3776 * @param first `true` if this is the first token in a string literal |
| 3773 * @param last `true` if this is the last token in a string literal | 3777 * @param last `true` if this is the last token in a string literal |
| 3774 * @return the result of invoking the method | 3778 * @return the result of invoking the method |
| 3775 * @throws Exception if the method could not be invoked or throws an exception | 3779 * @throws Exception if the method could not be invoked or throws an exception |
| 3776 */ | 3780 */ |
| 3777 String computeStringValue(String lexeme, bool first, bool last) { | 3781 String computeStringValue(String lexeme, bool first, bool last) { |
| 3778 AnalysisErrorListener listener = new AnalysisErrorListener_26(); | 3782 AnalysisErrorListener listener = new AnalysisErrorListener_23(); |
| 3779 Parser parser = new Parser(null, listener); | 3783 Parser parser = new Parser(null, listener); |
| 3780 return invokeParserMethodImpl(parser, "computeStringValue", <Object> [lexeme
, first, last], null) as String; | 3784 return invokeParserMethodImpl(parser, "computeStringValue", <Object> [lexeme
, first, last], null) as String; |
| 3781 } | 3785 } |
| 3782 | 3786 |
| 3783 /** | 3787 /** |
| 3784 * Invoke the method [Parser#createSyntheticIdentifier] with the parser set to
the token | 3788 * Invoke the method [Parser#createSyntheticIdentifier] with the parser set to
the token |
| 3785 * stream produced by scanning the given source. | 3789 * stream produced by scanning the given source. |
| 3786 * | 3790 * |
| 3787 * @param source the source to be scanned to produce the token stream being te
sted | 3791 * @param source the source to be scanned to produce the token stream being te
sted |
| 3788 * @return the result of invoking the method | 3792 * @return the result of invoking the method |
| (...skipping 2207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5996 final __test = new SimpleParserTest(); | 6000 final __test = new SimpleParserTest(); |
| 5997 runJUnitTest(__test, __test.test_skipTypeName_parameterized); | 6001 runJUnitTest(__test, __test.test_skipTypeName_parameterized); |
| 5998 }); | 6002 }); |
| 5999 _ut.test('test_skipTypeName_simple', () { | 6003 _ut.test('test_skipTypeName_simple', () { |
| 6000 final __test = new SimpleParserTest(); | 6004 final __test = new SimpleParserTest(); |
| 6001 runJUnitTest(__test, __test.test_skipTypeName_simple); | 6005 runJUnitTest(__test, __test.test_skipTypeName_simple); |
| 6002 }); | 6006 }); |
| 6003 }); | 6007 }); |
| 6004 } | 6008 } |
| 6005 } | 6009 } |
| 6006 class AnalysisErrorListener_26 implements AnalysisErrorListener { | 6010 class AnalysisErrorListener_23 implements AnalysisErrorListener { |
| 6007 void onError(AnalysisError event) { | 6011 void onError(AnalysisError event) { |
| 6008 JUnitTestCase.fail("Unexpected compilation error: ${event.message} (${event.
offset}, ${event.length})"); | 6012 JUnitTestCase.fail("Unexpected compilation error: ${event.message} (${event.
offset}, ${event.length})"); |
| 6009 } | 6013 } |
| 6010 } | 6014 } |
| 6011 /** | 6015 /** |
| 6012 * The class `ComplexParserTest` defines parser tests that test the parsing of m
ore complex | 6016 * The class `ComplexParserTest` defines parser tests that test the parsing of m
ore complex |
| 6013 * code fragments or the interactions between multiple parsing methods. For exam
ple, tests to ensure | 6017 * code fragments or the interactions between multiple parsing methods. For exam
ple, tests to ensure |
| 6014 * that the precedence of operations is being handled correctly should be define
d in this class. | 6018 * that the precedence of operations is being handled correctly should be define
d in this class. |
| 6015 * | 6019 * |
| 6016 * Simpler tests should be defined in the class [SimpleParserTest]. | 6020 * Simpler tests should be defined in the class [SimpleParserTest]. |
| (...skipping 1893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7910 } | 7914 } |
| 7911 void test_functionTypedParameter_const() { | 7915 void test_functionTypedParameter_const() { |
| 7912 ParserTestCase.parseCompilationUnit("void f(const x()) {}", [ParserErrorCode
.FUNCTION_TYPED_PARAMETER_VAR]); | 7916 ParserTestCase.parseCompilationUnit("void f(const x()) {}", [ParserErrorCode
.FUNCTION_TYPED_PARAMETER_VAR]); |
| 7913 } | 7917 } |
| 7914 void test_functionTypedParameter_final() { | 7918 void test_functionTypedParameter_final() { |
| 7915 ParserTestCase.parseCompilationUnit("void f(final x()) {}", [ParserErrorCode
.FUNCTION_TYPED_PARAMETER_VAR]); | 7919 ParserTestCase.parseCompilationUnit("void f(final x()) {}", [ParserErrorCode
.FUNCTION_TYPED_PARAMETER_VAR]); |
| 7916 } | 7920 } |
| 7917 void test_functionTypedParameter_var() { | 7921 void test_functionTypedParameter_var() { |
| 7918 ParserTestCase.parseCompilationUnit("void f(var x()) {}", [ParserErrorCode.F
UNCTION_TYPED_PARAMETER_VAR]); | 7922 ParserTestCase.parseCompilationUnit("void f(var x()) {}", [ParserErrorCode.F
UNCTION_TYPED_PARAMETER_VAR]); |
| 7919 } | 7923 } |
| 7924 void test_getterInFunction_block() { |
| 7925 ParserTestCase.parseStatement("get x { return _x; }", [ParserErrorCode.GETTE
R_IN_FUNCTION]); |
| 7926 } |
| 7927 void test_getterInFunction_expression() { |
| 7928 ParserTestCase.parseStatement("get x => _x;", [ParserErrorCode.GETTER_IN_FUN
CTION]); |
| 7929 } |
| 7920 void test_getterWithParameters() { | 7930 void test_getterWithParameters() { |
| 7921 ParserTestCase.parse4("parseClassMember", <Object> ["C"], "int get x() {}",
[ParserErrorCode.GETTER_WITH_PARAMETERS]); | 7931 ParserTestCase.parse4("parseClassMember", <Object> ["C"], "int get x() {}",
[ParserErrorCode.GETTER_WITH_PARAMETERS]); |
| 7922 } | 7932 } |
| 7923 void test_illegalAssignmentToNonAssignable_superAssigned() { | 7933 void test_illegalAssignmentToNonAssignable_superAssigned() { |
| 7924 ParserTestCase.parseExpression("super = x;", [ | 7934 ParserTestCase.parseExpression("super = x;", [ |
| 7925 ParserErrorCode.MISSING_ASSIGNABLE_SELECTOR, | 7935 ParserErrorCode.MISSING_ASSIGNABLE_SELECTOR, |
| 7926 ParserErrorCode.ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE]); | 7936 ParserErrorCode.ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE]); |
| 7927 } | 7937 } |
| 7928 void test_implementsBeforeExtends() { | 7938 void test_implementsBeforeExtends() { |
| 7929 ParserTestCase.parseCompilationUnit("class A implements B extends C {}", [Pa
rserErrorCode.IMPLEMENTS_BEFORE_EXTENDS]); | 7939 ParserTestCase.parseCompilationUnit("class A implements B extends C {}", [Pa
rserErrorCode.IMPLEMENTS_BEFORE_EXTENDS]); |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8200 } | 8210 } |
| 8201 void test_positionalAfterNamedArgument() { | 8211 void test_positionalAfterNamedArgument() { |
| 8202 ParserTestCase.parse5("parseArgumentList", "(x: 1, 2)", [ParserErrorCode.POS
ITIONAL_AFTER_NAMED_ARGUMENT]); | 8212 ParserTestCase.parse5("parseArgumentList", "(x: 1, 2)", [ParserErrorCode.POS
ITIONAL_AFTER_NAMED_ARGUMENT]); |
| 8203 } | 8213 } |
| 8204 void test_positionalParameterOutsideGroup() { | 8214 void test_positionalParameterOutsideGroup() { |
| 8205 ParserTestCase.parse5("parseFormalParameterList", "(a, b = 0)", [ParserError
Code.POSITIONAL_PARAMETER_OUTSIDE_GROUP]); | 8215 ParserTestCase.parse5("parseFormalParameterList", "(a, b = 0)", [ParserError
Code.POSITIONAL_PARAMETER_OUTSIDE_GROUP]); |
| 8206 } | 8216 } |
| 8207 void test_redirectionInNonFactoryConstructor() { | 8217 void test_redirectionInNonFactoryConstructor() { |
| 8208 ParserTestCase.parse4("parseClassMember", <Object> ["C"], "C() = D;", [Parse
rErrorCode.REDIRECTION_IN_NON_FACTORY_CONSTRUCTOR]); | 8218 ParserTestCase.parse4("parseClassMember", <Object> ["C"], "C() = D;", [Parse
rErrorCode.REDIRECTION_IN_NON_FACTORY_CONSTRUCTOR]); |
| 8209 } | 8219 } |
| 8220 void test_setterInFunction_block() { |
| 8221 ParserTestCase.parseStatement("set x(v) {_x = v;}", [ParserErrorCode.SETTER_
IN_FUNCTION]); |
| 8222 } |
| 8223 void test_setterInFunction_expression() { |
| 8224 ParserTestCase.parseStatement("set x(v) => _x = v;", [ParserErrorCode.SETTER
_IN_FUNCTION]); |
| 8225 } |
| 8210 void test_staticAfterConst() { | 8226 void test_staticAfterConst() { |
| 8211 ParserTestCase.parse4("parseClassMember", <Object> ["C"], "final static int
f;", [ParserErrorCode.STATIC_AFTER_FINAL]); | 8227 ParserTestCase.parse4("parseClassMember", <Object> ["C"], "final static int
f;", [ParserErrorCode.STATIC_AFTER_FINAL]); |
| 8212 } | 8228 } |
| 8213 void test_staticAfterFinal() { | 8229 void test_staticAfterFinal() { |
| 8214 ParserTestCase.parse4("parseClassMember", <Object> ["C"], "const static int
f;", [ParserErrorCode.STATIC_AFTER_CONST]); | 8230 ParserTestCase.parse4("parseClassMember", <Object> ["C"], "const static int
f;", [ParserErrorCode.STATIC_AFTER_CONST]); |
| 8215 } | 8231 } |
| 8216 void test_staticAfterVar() { | 8232 void test_staticAfterVar() { |
| 8217 ParserTestCase.parse4("parseClassMember", <Object> ["C"], "var static f;", [
ParserErrorCode.STATIC_AFTER_VAR]); | 8233 ParserTestCase.parse4("parseClassMember", <Object> ["C"], "var static f;", [
ParserErrorCode.STATIC_AFTER_VAR]); |
| 8218 } | 8234 } |
| 8219 void test_staticConstructor() { | 8235 void test_staticConstructor() { |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8727 runJUnitTest(__test, __test.test_functionTypedParameter_const); | 8743 runJUnitTest(__test, __test.test_functionTypedParameter_const); |
| 8728 }); | 8744 }); |
| 8729 _ut.test('test_functionTypedParameter_final', () { | 8745 _ut.test('test_functionTypedParameter_final', () { |
| 8730 final __test = new ErrorParserTest(); | 8746 final __test = new ErrorParserTest(); |
| 8731 runJUnitTest(__test, __test.test_functionTypedParameter_final); | 8747 runJUnitTest(__test, __test.test_functionTypedParameter_final); |
| 8732 }); | 8748 }); |
| 8733 _ut.test('test_functionTypedParameter_var', () { | 8749 _ut.test('test_functionTypedParameter_var', () { |
| 8734 final __test = new ErrorParserTest(); | 8750 final __test = new ErrorParserTest(); |
| 8735 runJUnitTest(__test, __test.test_functionTypedParameter_var); | 8751 runJUnitTest(__test, __test.test_functionTypedParameter_var); |
| 8736 }); | 8752 }); |
| 8753 _ut.test('test_getterInFunction_block', () { |
| 8754 final __test = new ErrorParserTest(); |
| 8755 runJUnitTest(__test, __test.test_getterInFunction_block); |
| 8756 }); |
| 8757 _ut.test('test_getterInFunction_expression', () { |
| 8758 final __test = new ErrorParserTest(); |
| 8759 runJUnitTest(__test, __test.test_getterInFunction_expression); |
| 8760 }); |
| 8737 _ut.test('test_getterWithParameters', () { | 8761 _ut.test('test_getterWithParameters', () { |
| 8738 final __test = new ErrorParserTest(); | 8762 final __test = new ErrorParserTest(); |
| 8739 runJUnitTest(__test, __test.test_getterWithParameters); | 8763 runJUnitTest(__test, __test.test_getterWithParameters); |
| 8740 }); | 8764 }); |
| 8741 _ut.test('test_illegalAssignmentToNonAssignable_superAssigned', () { | 8765 _ut.test('test_illegalAssignmentToNonAssignable_superAssigned', () { |
| 8742 final __test = new ErrorParserTest(); | 8766 final __test = new ErrorParserTest(); |
| 8743 runJUnitTest(__test, __test.test_illegalAssignmentToNonAssignable_superA
ssigned); | 8767 runJUnitTest(__test, __test.test_illegalAssignmentToNonAssignable_superA
ssigned); |
| 8744 }); | 8768 }); |
| 8745 _ut.test('test_implementsBeforeExtends', () { | 8769 _ut.test('test_implementsBeforeExtends', () { |
| 8746 final __test = new ErrorParserTest(); | 8770 final __test = new ErrorParserTest(); |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9091 runJUnitTest(__test, __test.test_positionalAfterNamedArgument); | 9115 runJUnitTest(__test, __test.test_positionalAfterNamedArgument); |
| 9092 }); | 9116 }); |
| 9093 _ut.test('test_positionalParameterOutsideGroup', () { | 9117 _ut.test('test_positionalParameterOutsideGroup', () { |
| 9094 final __test = new ErrorParserTest(); | 9118 final __test = new ErrorParserTest(); |
| 9095 runJUnitTest(__test, __test.test_positionalParameterOutsideGroup); | 9119 runJUnitTest(__test, __test.test_positionalParameterOutsideGroup); |
| 9096 }); | 9120 }); |
| 9097 _ut.test('test_redirectionInNonFactoryConstructor', () { | 9121 _ut.test('test_redirectionInNonFactoryConstructor', () { |
| 9098 final __test = new ErrorParserTest(); | 9122 final __test = new ErrorParserTest(); |
| 9099 runJUnitTest(__test, __test.test_redirectionInNonFactoryConstructor); | 9123 runJUnitTest(__test, __test.test_redirectionInNonFactoryConstructor); |
| 9100 }); | 9124 }); |
| 9125 _ut.test('test_setterInFunction_block', () { |
| 9126 final __test = new ErrorParserTest(); |
| 9127 runJUnitTest(__test, __test.test_setterInFunction_block); |
| 9128 }); |
| 9129 _ut.test('test_setterInFunction_expression', () { |
| 9130 final __test = new ErrorParserTest(); |
| 9131 runJUnitTest(__test, __test.test_setterInFunction_expression); |
| 9132 }); |
| 9101 _ut.test('test_staticAfterConst', () { | 9133 _ut.test('test_staticAfterConst', () { |
| 9102 final __test = new ErrorParserTest(); | 9134 final __test = new ErrorParserTest(); |
| 9103 runJUnitTest(__test, __test.test_staticAfterConst); | 9135 runJUnitTest(__test, __test.test_staticAfterConst); |
| 9104 }); | 9136 }); |
| 9105 _ut.test('test_staticAfterFinal', () { | 9137 _ut.test('test_staticAfterFinal', () { |
| 9106 final __test = new ErrorParserTest(); | 9138 final __test = new ErrorParserTest(); |
| 9107 runJUnitTest(__test, __test.test_staticAfterFinal); | 9139 runJUnitTest(__test, __test.test_staticAfterFinal); |
| 9108 }); | 9140 }); |
| 9109 _ut.test('test_staticAfterVar', () { | 9141 _ut.test('test_staticAfterVar', () { |
| 9110 final __test = new ErrorParserTest(); | 9142 final __test = new ErrorParserTest(); |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9296 'appendScalarValue_5': new MethodTrampoline(5, (Parser target, arg0, arg1, arg
2, arg3, arg4) => target.appendScalarValue(arg0, arg1, arg2, arg3, arg4)), | 9328 'appendScalarValue_5': new MethodTrampoline(5, (Parser target, arg0, arg1, arg
2, arg3, arg4) => target.appendScalarValue(arg0, arg1, arg2, arg3, arg4)), |
| 9297 'computeStringValue_3': new MethodTrampoline(3, (Parser target, arg0, arg1, ar
g2) => target.computeStringValue(arg0, arg1, arg2)), | 9329 'computeStringValue_3': new MethodTrampoline(3, (Parser target, arg0, arg1, ar
g2) => target.computeStringValue(arg0, arg1, arg2)), |
| 9298 'convertToFunctionDeclaration_1': new MethodTrampoline(1, (Parser target, arg0
) => target.convertToFunctionDeclaration(arg0)), | 9330 'convertToFunctionDeclaration_1': new MethodTrampoline(1, (Parser target, arg0
) => target.convertToFunctionDeclaration(arg0)), |
| 9299 'couldBeStartOfCompilationUnitMember_0': new MethodTrampoline(0, (Parser targe
t) => target.couldBeStartOfCompilationUnitMember()), | 9331 'couldBeStartOfCompilationUnitMember_0': new MethodTrampoline(0, (Parser targe
t) => target.couldBeStartOfCompilationUnitMember()), |
| 9300 'createSyntheticIdentifier_0': new MethodTrampoline(0, (Parser target) => targ
et.createSyntheticIdentifier()), | 9332 'createSyntheticIdentifier_0': new MethodTrampoline(0, (Parser target) => targ
et.createSyntheticIdentifier()), |
| 9301 'createSyntheticStringLiteral_0': new MethodTrampoline(0, (Parser target) => t
arget.createSyntheticStringLiteral()), | 9333 'createSyntheticStringLiteral_0': new MethodTrampoline(0, (Parser target) => t
arget.createSyntheticStringLiteral()), |
| 9302 'createSyntheticToken_1': new MethodTrampoline(1, (Parser target, arg0) => tar
get.createSyntheticToken(arg0)), | 9334 'createSyntheticToken_1': new MethodTrampoline(1, (Parser target, arg0) => tar
get.createSyntheticToken(arg0)), |
| 9303 'ensureAssignable_1': new MethodTrampoline(1, (Parser target, arg0) => target.
ensureAssignable(arg0)), | 9335 'ensureAssignable_1': new MethodTrampoline(1, (Parser target, arg0) => target.
ensureAssignable(arg0)), |
| 9304 'expect_1': new MethodTrampoline(1, (Parser target, arg0) => target.expect(arg
0)), | 9336 'expect_1': new MethodTrampoline(1, (Parser target, arg0) => target.expect(arg
0)), |
| 9305 'findRange_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.f
indRange(arg0, arg1)), | 9337 'findRange_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.f
indRange(arg0, arg1)), |
| 9338 'gatherTodoComments_1': new MethodTrampoline(1, (Parser target, arg0) => targe
t.gatherTodoComments(arg0)), |
| 9306 'getCodeBlockRanges_1': new MethodTrampoline(1, (Parser target, arg0) => targe
t.getCodeBlockRanges(arg0)), | 9339 'getCodeBlockRanges_1': new MethodTrampoline(1, (Parser target, arg0) => targe
t.getCodeBlockRanges(arg0)), |
| 9307 'getEndToken_1': new MethodTrampoline(1, (Parser target, arg0) => target.getEn
dToken(arg0)), | 9340 'getEndToken_1': new MethodTrampoline(1, (Parser target, arg0) => target.getEn
dToken(arg0)), |
| 9308 'hasReturnTypeInTypeAlias_0': new MethodTrampoline(0, (Parser target) => targe
t.hasReturnTypeInTypeAlias()), | 9341 'hasReturnTypeInTypeAlias_0': new MethodTrampoline(0, (Parser target) => targe
t.hasReturnTypeInTypeAlias()), |
| 9309 'isFunctionDeclaration_0': new MethodTrampoline(0, (Parser target) => target.i
sFunctionDeclaration()), | 9342 'isFunctionDeclaration_0': new MethodTrampoline(0, (Parser target) => target.i
sFunctionDeclaration()), |
| 9310 'isFunctionExpression_1': new MethodTrampoline(1, (Parser target, arg0) => tar
get.isFunctionExpression(arg0)), | 9343 'isFunctionExpression_1': new MethodTrampoline(1, (Parser target, arg0) => tar
get.isFunctionExpression(arg0)), |
| 9311 'isHexDigit_1': new MethodTrampoline(1, (Parser target, arg0) => target.isHexD
igit(arg0)), | 9344 'isHexDigit_1': new MethodTrampoline(1, (Parser target, arg0) => target.isHexD
igit(arg0)), |
| 9312 'isInitializedVariableDeclaration_0': new MethodTrampoline(0, (Parser target)
=> target.isInitializedVariableDeclaration()), | 9345 'isInitializedVariableDeclaration_0': new MethodTrampoline(0, (Parser target)
=> target.isInitializedVariableDeclaration()), |
| 9313 'isLinkText_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.
isLinkText(arg0, arg1)), | 9346 'isLinkText_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.
isLinkText(arg0, arg1)), |
| 9314 'isOperator_1': new MethodTrampoline(1, (Parser target, arg0) => target.isOper
ator(arg0)), | 9347 'isOperator_1': new MethodTrampoline(1, (Parser target, arg0) => target.isOper
ator(arg0)), |
| 9315 'isSwitchMember_0': new MethodTrampoline(0, (Parser target) => target.isSwitch
Member()), | 9348 'isSwitchMember_0': new MethodTrampoline(0, (Parser target) => target.isSwitch
Member()), |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9429 'parseVariableDeclarationList_1': new MethodTrampoline(1, (Parser target, arg0
) => target.parseVariableDeclarationList(arg0)), | 9462 'parseVariableDeclarationList_1': new MethodTrampoline(1, (Parser target, arg0
) => target.parseVariableDeclarationList(arg0)), |
| 9430 'parseVariableDeclarationList_3': new MethodTrampoline(3, (Parser target, arg0
, arg1, arg2) => target.parseVariableDeclarationList2(arg0, arg1, arg2)), | 9463 'parseVariableDeclarationList_3': new MethodTrampoline(3, (Parser target, arg0
, arg1, arg2) => target.parseVariableDeclarationList2(arg0, arg1, arg2)), |
| 9431 'parseVariableDeclarationStatement_1': new MethodTrampoline(1, (Parser target,
arg0) => target.parseVariableDeclarationStatement(arg0)), | 9464 'parseVariableDeclarationStatement_1': new MethodTrampoline(1, (Parser target,
arg0) => target.parseVariableDeclarationStatement(arg0)), |
| 9432 'parseVariableDeclarationStatement_3': new MethodTrampoline(3, (Parser target,
arg0, arg1, arg2) => target.parseVariableDeclarationStatement2(arg0, arg1, arg2
)), | 9465 'parseVariableDeclarationStatement_3': new MethodTrampoline(3, (Parser target,
arg0, arg1, arg2) => target.parseVariableDeclarationStatement2(arg0, arg1, arg2
)), |
| 9433 'parseWhileStatement_0': new MethodTrampoline(0, (Parser target) => target.par
seWhileStatement()), | 9466 'parseWhileStatement_0': new MethodTrampoline(0, (Parser target) => target.par
seWhileStatement()), |
| 9434 'parseWithClause_0': new MethodTrampoline(0, (Parser target) => target.parseWi
thClause()), | 9467 'parseWithClause_0': new MethodTrampoline(0, (Parser target) => target.parseWi
thClause()), |
| 9435 'peek_0': new MethodTrampoline(0, (Parser target) => target.peek()), | 9468 'peek_0': new MethodTrampoline(0, (Parser target) => target.peek()), |
| 9436 'peek_1': new MethodTrampoline(1, (Parser target, arg0) => target.peek2(arg0))
, | 9469 'peek_1': new MethodTrampoline(1, (Parser target, arg0) => target.peek2(arg0))
, |
| 9437 'reportError_3': new MethodTrampoline(3, (Parser target, arg0, arg1, arg2) =>
target.reportError(arg0, arg1, arg2)), | 9470 'reportError_3': new MethodTrampoline(3, (Parser target, arg0, arg1, arg2) =>
target.reportError(arg0, arg1, arg2)), |
| 9438 'reportError_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target
.reportError8(arg0, arg1)), | 9471 'reportError_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target
.reportError8(arg0, arg1)), |
| 9472 'scrapeTodoComment_1': new MethodTrampoline(1, (Parser target, arg0) => target
.scrapeTodoComment(arg0)), |
| 9439 'skipFinalConstVarOrType_1': new MethodTrampoline(1, (Parser target, arg0) =>
target.skipFinalConstVarOrType(arg0)), | 9473 'skipFinalConstVarOrType_1': new MethodTrampoline(1, (Parser target, arg0) =>
target.skipFinalConstVarOrType(arg0)), |
| 9440 'skipFormalParameterList_1': new MethodTrampoline(1, (Parser target, arg0) =>
target.skipFormalParameterList(arg0)), | 9474 'skipFormalParameterList_1': new MethodTrampoline(1, (Parser target, arg0) =>
target.skipFormalParameterList(arg0)), |
| 9441 'skipPastMatchingToken_1': new MethodTrampoline(1, (Parser target, arg0) => ta
rget.skipPastMatchingToken(arg0)), | 9475 'skipPastMatchingToken_1': new MethodTrampoline(1, (Parser target, arg0) => ta
rget.skipPastMatchingToken(arg0)), |
| 9442 'skipPrefixedIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => t
arget.skipPrefixedIdentifier(arg0)), | 9476 'skipPrefixedIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => t
arget.skipPrefixedIdentifier(arg0)), |
| 9443 'skipReturnType_1': new MethodTrampoline(1, (Parser target, arg0) => target.sk
ipReturnType(arg0)), | 9477 'skipReturnType_1': new MethodTrampoline(1, (Parser target, arg0) => target.sk
ipReturnType(arg0)), |
| 9444 'skipSimpleIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => tar
get.skipSimpleIdentifier(arg0)), | 9478 'skipSimpleIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => tar
get.skipSimpleIdentifier(arg0)), |
| 9445 'skipStringInterpolation_1': new MethodTrampoline(1, (Parser target, arg0) =>
target.skipStringInterpolation(arg0)), | 9479 'skipStringInterpolation_1': new MethodTrampoline(1, (Parser target, arg0) =>
target.skipStringInterpolation(arg0)), |
| 9446 'skipStringLiteral_1': new MethodTrampoline(1, (Parser target, arg0) => target
.skipStringLiteral(arg0)), | 9480 'skipStringLiteral_1': new MethodTrampoline(1, (Parser target, arg0) => target
.skipStringLiteral(arg0)), |
| 9447 'skipTypeArgumentList_1': new MethodTrampoline(1, (Parser target, arg0) => tar
get.skipTypeArgumentList(arg0)), | 9481 'skipTypeArgumentList_1': new MethodTrampoline(1, (Parser target, arg0) => tar
get.skipTypeArgumentList(arg0)), |
| 9448 'skipTypeName_1': new MethodTrampoline(1, (Parser target, arg0) => target.skip
TypeName(arg0)), | 9482 'skipTypeName_1': new MethodTrampoline(1, (Parser target, arg0) => target.skip
TypeName(arg0)), |
| (...skipping 10 matching lines...) Expand all Loading... |
| 9459 'validateModifiersForTopLevelFunction_1': new MethodTrampoline(1, (Parser targ
et, arg0) => target.validateModifiersForTopLevelFunction(arg0)), | 9493 'validateModifiersForTopLevelFunction_1': new MethodTrampoline(1, (Parser targ
et, arg0) => target.validateModifiersForTopLevelFunction(arg0)), |
| 9460 'validateModifiersForTopLevelVariable_1': new MethodTrampoline(1, (Parser targ
et, arg0) => target.validateModifiersForTopLevelVariable(arg0)), | 9494 'validateModifiersForTopLevelVariable_1': new MethodTrampoline(1, (Parser targ
et, arg0) => target.validateModifiersForTopLevelVariable(arg0)), |
| 9461 'validateModifiersForTypedef_1': new MethodTrampoline(1, (Parser target, arg0)
=> target.validateModifiersForTypedef(arg0)),}; | 9495 'validateModifiersForTypedef_1': new MethodTrampoline(1, (Parser target, arg0)
=> target.validateModifiersForTypedef(arg0)),}; |
| 9462 | 9496 |
| 9463 | 9497 |
| 9464 Object invokeParserMethodImpl(Parser parser, String methodName, List<Object> obj
ects, Token tokenStream) { | 9498 Object invokeParserMethodImpl(Parser parser, String methodName, List<Object> obj
ects, Token tokenStream) { |
| 9465 parser.currentToken = tokenStream; | 9499 parser.currentToken = tokenStream; |
| 9466 MethodTrampoline method = _methodTable_Parser['${methodName}_${objects.length}
']; | 9500 MethodTrampoline method = _methodTable_Parser['${methodName}_${objects.length}
']; |
| 9467 return method.invoke(parser, objects); | 9501 return method.invoke(parser, objects); |
| 9468 } | 9502 } |
| OLD | NEW |