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 | 3 |
4 library engine.parser_test; | 4 library engine.parser_test; |
5 | 5 |
6 import 'package:analyzer/src/generated/java_core.dart'; | 6 import 'package:analyzer/src/generated/java_core.dart'; |
7 import 'package:analyzer/src/generated/java_junit.dart'; | 7 import 'package:analyzer/src/generated/java_junit.dart'; |
8 import 'package:analyzer/src/generated/error.dart'; | 8 import 'package:analyzer/src/generated/error.dart'; |
9 import 'package:analyzer/src/generated/source.dart' show Source; | 9 import 'package:analyzer/src/generated/source.dart' show Source; |
10 import 'package:analyzer/src/generated/scanner.dart'; | 10 import 'package:analyzer/src/generated/scanner.dart'; |
(...skipping 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1487 EngineTestCase.assertSize(1, unit.declarations); | 1487 EngineTestCase.assertSize(1, unit.declarations); |
1488 } | 1488 } |
1489 | 1489 |
1490 void test_parseCompilationUnit_script() { | 1490 void test_parseCompilationUnit_script() { |
1491 CompilationUnit unit = ParserTestCase.parse5("parseCompilationUnit", "#! /bi
n/dart", []); | 1491 CompilationUnit unit = ParserTestCase.parse5("parseCompilationUnit", "#! /bi
n/dart", []); |
1492 JUnitTestCase.assertNotNull(unit.scriptTag); | 1492 JUnitTestCase.assertNotNull(unit.scriptTag); |
1493 EngineTestCase.assertSize(0, unit.directives); | 1493 EngineTestCase.assertSize(0, unit.directives); |
1494 EngineTestCase.assertSize(0, unit.declarations); | 1494 EngineTestCase.assertSize(0, unit.declarations); |
1495 } | 1495 } |
1496 | 1496 |
| 1497 void test_parseCompilationUnit_skipFunctionBody_withInterpolation() { |
| 1498 ParserTestCase._parseFunctionBodies = false; |
| 1499 CompilationUnit unit = ParserTestCase.parse5("parseCompilationUnit", "f() {
'\${n}'; }", []); |
| 1500 JUnitTestCase.assertNull(unit.scriptTag); |
| 1501 EngineTestCase.assertSize(1, unit.declarations); |
| 1502 } |
| 1503 |
1497 void test_parseCompilationUnit_topLevelDeclaration() { | 1504 void test_parseCompilationUnit_topLevelDeclaration() { |
1498 CompilationUnit unit = ParserTestCase.parse5("parseCompilationUnit", "class
A {}", []); | 1505 CompilationUnit unit = ParserTestCase.parse5("parseCompilationUnit", "class
A {}", []); |
1499 JUnitTestCase.assertNull(unit.scriptTag); | 1506 JUnitTestCase.assertNull(unit.scriptTag); |
1500 EngineTestCase.assertSize(0, unit.directives); | 1507 EngineTestCase.assertSize(0, unit.directives); |
1501 EngineTestCase.assertSize(1, unit.declarations); | 1508 EngineTestCase.assertSize(1, unit.declarations); |
1502 } | 1509 } |
1503 | 1510 |
1504 void test_parseCompilationUnit_typedefAsPrefix() { | 1511 void test_parseCompilationUnit_typedefAsPrefix() { |
1505 CompilationUnit unit = ParserTestCase.parse5("parseCompilationUnit", "typede
f.A _typedef = new typedef.A();", []); | 1512 CompilationUnit unit = ParserTestCase.parse5("parseCompilationUnit", "typede
f.A _typedef = new typedef.A();", []); |
1506 JUnitTestCase.assertNull(unit.scriptTag); | 1513 JUnitTestCase.assertNull(unit.scriptTag); |
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2504 JUnitTestCase.assertNotNull(functionBody.semicolon); | 2511 JUnitTestCase.assertNotNull(functionBody.semicolon); |
2505 } | 2512 } |
2506 | 2513 |
2507 void test_parseFunctionBody_nativeFunctionBody() { | 2514 void test_parseFunctionBody_nativeFunctionBody() { |
2508 NativeFunctionBody functionBody = ParserTestCase.parse("parseFunctionBody",
<Object> [false, null, false], "native 'str';"); | 2515 NativeFunctionBody functionBody = ParserTestCase.parse("parseFunctionBody",
<Object> [false, null, false], "native 'str';"); |
2509 JUnitTestCase.assertNotNull(functionBody.nativeToken); | 2516 JUnitTestCase.assertNotNull(functionBody.nativeToken); |
2510 JUnitTestCase.assertNotNull(functionBody.stringLiteral); | 2517 JUnitTestCase.assertNotNull(functionBody.stringLiteral); |
2511 JUnitTestCase.assertNotNull(functionBody.semicolon); | 2518 JUnitTestCase.assertNotNull(functionBody.semicolon); |
2512 } | 2519 } |
2513 | 2520 |
| 2521 void test_parseFunctionBody_skip_block() { |
| 2522 ParserTestCase._parseFunctionBodies = false; |
| 2523 FunctionBody functionBody = ParserTestCase.parse("parseFunctionBody", <Objec
t> [false, null, false], "{}"); |
| 2524 EngineTestCase.assertInstanceOf(EmptyFunctionBody, functionBody); |
| 2525 } |
| 2526 |
| 2527 void test_parseFunctionBody_skip_blocks() { |
| 2528 ParserTestCase._parseFunctionBodies = false; |
| 2529 FunctionBody functionBody = ParserTestCase.parse("parseFunctionBody", <Objec
t> [false, null, false], "{ {} }"); |
| 2530 EngineTestCase.assertInstanceOf(EmptyFunctionBody, functionBody); |
| 2531 } |
| 2532 |
| 2533 void test_parseFunctionBody_skip_expression() { |
| 2534 ParserTestCase._parseFunctionBodies = false; |
| 2535 FunctionBody functionBody = ParserTestCase.parse("parseFunctionBody", <Objec
t> [false, null, false], "=> y;"); |
| 2536 EngineTestCase.assertInstanceOf(EmptyFunctionBody, functionBody); |
| 2537 } |
| 2538 |
2514 void test_parseFunctionDeclaration_function() { | 2539 void test_parseFunctionDeclaration_function() { |
2515 Comment comment = Comment.createDocumentationComment(new List<Token>(0)); | 2540 Comment comment = Comment.createDocumentationComment(new List<Token>(0)); |
2516 TypeName returnType = new TypeName.full(new SimpleIdentifier.full(null), nul
l); | 2541 TypeName returnType = new TypeName.full(new SimpleIdentifier.full(null), nul
l); |
2517 FunctionDeclaration declaration = ParserTestCase.parse("parseFunctionDeclara
tion", <Object> [commentAndMetadata(comment, []), null, returnType], "f() {}"); | 2542 FunctionDeclaration declaration = ParserTestCase.parse("parseFunctionDeclara
tion", <Object> [commentAndMetadata(comment, []), null, returnType], "f() {}"); |
2518 JUnitTestCase.assertEquals(comment, declaration.documentationComment); | 2543 JUnitTestCase.assertEquals(comment, declaration.documentationComment); |
2519 JUnitTestCase.assertEquals(returnType, declaration.returnType); | 2544 JUnitTestCase.assertEquals(returnType, declaration.returnType); |
2520 JUnitTestCase.assertNotNull(declaration.name); | 2545 JUnitTestCase.assertNotNull(declaration.name); |
2521 FunctionExpression expression = declaration.functionExpression; | 2546 FunctionExpression expression = declaration.functionExpression; |
2522 JUnitTestCase.assertNotNull(expression); | 2547 JUnitTestCase.assertNotNull(expression); |
2523 JUnitTestCase.assertNotNull(expression.body); | 2548 JUnitTestCase.assertNotNull(expression.body); |
(...skipping 2798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5322 runJUnitTest(__test, __test.test_parseCompilationUnit_exportAsPrefix_par
ameterized); | 5347 runJUnitTest(__test, __test.test_parseCompilationUnit_exportAsPrefix_par
ameterized); |
5323 }); | 5348 }); |
5324 _ut.test('test_parseCompilationUnit_operatorAsPrefix_parameterized', () { | 5349 _ut.test('test_parseCompilationUnit_operatorAsPrefix_parameterized', () { |
5325 final __test = new SimpleParserTest(); | 5350 final __test = new SimpleParserTest(); |
5326 runJUnitTest(__test, __test.test_parseCompilationUnit_operatorAsPrefix_p
arameterized); | 5351 runJUnitTest(__test, __test.test_parseCompilationUnit_operatorAsPrefix_p
arameterized); |
5327 }); | 5352 }); |
5328 _ut.test('test_parseCompilationUnit_script', () { | 5353 _ut.test('test_parseCompilationUnit_script', () { |
5329 final __test = new SimpleParserTest(); | 5354 final __test = new SimpleParserTest(); |
5330 runJUnitTest(__test, __test.test_parseCompilationUnit_script); | 5355 runJUnitTest(__test, __test.test_parseCompilationUnit_script); |
5331 }); | 5356 }); |
| 5357 _ut.test('test_parseCompilationUnit_skipFunctionBody_withInterpolation', (
) { |
| 5358 final __test = new SimpleParserTest(); |
| 5359 runJUnitTest(__test, __test.test_parseCompilationUnit_skipFunctionBody_w
ithInterpolation); |
| 5360 }); |
5332 _ut.test('test_parseCompilationUnit_topLevelDeclaration', () { | 5361 _ut.test('test_parseCompilationUnit_topLevelDeclaration', () { |
5333 final __test = new SimpleParserTest(); | 5362 final __test = new SimpleParserTest(); |
5334 runJUnitTest(__test, __test.test_parseCompilationUnit_topLevelDeclaratio
n); | 5363 runJUnitTest(__test, __test.test_parseCompilationUnit_topLevelDeclaratio
n); |
5335 }); | 5364 }); |
5336 _ut.test('test_parseCompilationUnit_typedefAsPrefix', () { | 5365 _ut.test('test_parseCompilationUnit_typedefAsPrefix', () { |
5337 final __test = new SimpleParserTest(); | 5366 final __test = new SimpleParserTest(); |
5338 runJUnitTest(__test, __test.test_parseCompilationUnit_typedefAsPrefix); | 5367 runJUnitTest(__test, __test.test_parseCompilationUnit_typedefAsPrefix); |
5339 }); | 5368 }); |
5340 _ut.test('test_parseConditionalExpression', () { | 5369 _ut.test('test_parseConditionalExpression', () { |
5341 final __test = new SimpleParserTest(); | 5370 final __test = new SimpleParserTest(); |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5682 runJUnitTest(__test, __test.test_parseFunctionBody_empty); | 5711 runJUnitTest(__test, __test.test_parseFunctionBody_empty); |
5683 }); | 5712 }); |
5684 _ut.test('test_parseFunctionBody_expression', () { | 5713 _ut.test('test_parseFunctionBody_expression', () { |
5685 final __test = new SimpleParserTest(); | 5714 final __test = new SimpleParserTest(); |
5686 runJUnitTest(__test, __test.test_parseFunctionBody_expression); | 5715 runJUnitTest(__test, __test.test_parseFunctionBody_expression); |
5687 }); | 5716 }); |
5688 _ut.test('test_parseFunctionBody_nativeFunctionBody', () { | 5717 _ut.test('test_parseFunctionBody_nativeFunctionBody', () { |
5689 final __test = new SimpleParserTest(); | 5718 final __test = new SimpleParserTest(); |
5690 runJUnitTest(__test, __test.test_parseFunctionBody_nativeFunctionBody); | 5719 runJUnitTest(__test, __test.test_parseFunctionBody_nativeFunctionBody); |
5691 }); | 5720 }); |
| 5721 _ut.test('test_parseFunctionBody_skip_block', () { |
| 5722 final __test = new SimpleParserTest(); |
| 5723 runJUnitTest(__test, __test.test_parseFunctionBody_skip_block); |
| 5724 }); |
| 5725 _ut.test('test_parseFunctionBody_skip_blocks', () { |
| 5726 final __test = new SimpleParserTest(); |
| 5727 runJUnitTest(__test, __test.test_parseFunctionBody_skip_blocks); |
| 5728 }); |
| 5729 _ut.test('test_parseFunctionBody_skip_expression', () { |
| 5730 final __test = new SimpleParserTest(); |
| 5731 runJUnitTest(__test, __test.test_parseFunctionBody_skip_expression); |
| 5732 }); |
5692 _ut.test('test_parseFunctionDeclarationStatement', () { | 5733 _ut.test('test_parseFunctionDeclarationStatement', () { |
5693 final __test = new SimpleParserTest(); | 5734 final __test = new SimpleParserTest(); |
5694 runJUnitTest(__test, __test.test_parseFunctionDeclarationStatement); | 5735 runJUnitTest(__test, __test.test_parseFunctionDeclarationStatement); |
5695 }); | 5736 }); |
5696 _ut.test('test_parseFunctionDeclaration_function', () { | 5737 _ut.test('test_parseFunctionDeclaration_function', () { |
5697 final __test = new SimpleParserTest(); | 5738 final __test = new SimpleParserTest(); |
5698 runJUnitTest(__test, __test.test_parseFunctionDeclaration_function); | 5739 runJUnitTest(__test, __test.test_parseFunctionDeclaration_function); |
5699 }); | 5740 }); |
5700 _ut.test('test_parseFunctionDeclaration_getter', () { | 5741 _ut.test('test_parseFunctionDeclaration_getter', () { |
5701 final __test = new SimpleParserTest(); | 5742 final __test = new SimpleParserTest(); |
(...skipping 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7196 } | 7237 } |
7197 } | 7238 } |
7198 | 7239 |
7199 class ParserTestCase extends EngineTestCase { | 7240 class ParserTestCase extends EngineTestCase { |
7200 /** | 7241 /** |
7201 * An empty array of objects used as arguments to zero-argument methods. | 7242 * An empty array of objects used as arguments to zero-argument methods. |
7202 */ | 7243 */ |
7203 static List<Object> _EMPTY_ARGUMENTS = new List<Object>(0); | 7244 static List<Object> _EMPTY_ARGUMENTS = new List<Object>(0); |
7204 | 7245 |
7205 /** | 7246 /** |
| 7247 * A flag indicating whether parser is to parse function bodies. |
| 7248 */ |
| 7249 static bool _parseFunctionBodies = true; |
| 7250 |
| 7251 /** |
7206 * Invoke a parse method in [Parser]. The method is assumed to have the given
number and | 7252 * Invoke a parse method in [Parser]. The method is assumed to have the given
number and |
7207 * type of parameters and will be invoked with the given arguments. | 7253 * type of parameters and will be invoked with the given arguments. |
7208 * | 7254 * |
7209 * The given source is scanned and the parser is initialized to start with the
first token in the | 7255 * The given source is scanned and the parser is initialized to start with the
first token in the |
7210 * source before the parse method is invoked. | 7256 * source before the parse method is invoked. |
7211 * | 7257 * |
7212 * @param methodName the name of the parse method that should be invoked to pa
rse the source | 7258 * @param methodName the name of the parse method that should be invoked to pa
rse the source |
7213 * @param objects the values of the arguments to the method | 7259 * @param objects the values of the arguments to the method |
7214 * @param source the source to be parsed by the parse method | 7260 * @param source the source to be parsed by the parse method |
7215 * @return the result of invoking the method | 7261 * @return the result of invoking the method |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7380 * @return the result of invoking the method | 7426 * @return the result of invoking the method |
7381 * @throws Exception if the method could not be invoked or throws an exception | 7427 * @throws Exception if the method could not be invoked or throws an exception |
7382 * @throws AssertionFailedError if the result is `null` or the errors produced
while | 7428 * @throws AssertionFailedError if the result is `null` or the errors produced
while |
7383 * scanning and parsing the source do not match the expected errors | 7429 * scanning and parsing the source do not match the expected errors |
7384 */ | 7430 */ |
7385 static Object invokeParserMethod(String methodName, List<Object> objects, Stri
ng source, GatheringErrorListener listener) { | 7431 static Object invokeParserMethod(String methodName, List<Object> objects, Stri
ng source, GatheringErrorListener listener) { |
7386 Scanner scanner = new Scanner(null, new CharSequenceReader(new CharSequence(
source)), listener); | 7432 Scanner scanner = new Scanner(null, new CharSequenceReader(new CharSequence(
source)), listener); |
7387 Token tokenStream = scanner.tokenize(); | 7433 Token tokenStream = scanner.tokenize(); |
7388 listener.setLineInfo(new TestSource(), scanner.lineStarts); | 7434 listener.setLineInfo(new TestSource(), scanner.lineStarts); |
7389 Parser parser = new Parser(null, listener); | 7435 Parser parser = new Parser(null, listener); |
| 7436 parser.parseFunctionBodies = _parseFunctionBodies; |
7390 Object result = invokeParserMethodImpl(parser, methodName, objects, tokenStr
eam); | 7437 Object result = invokeParserMethodImpl(parser, methodName, objects, tokenStr
eam); |
7391 if (!listener.hasErrors()) { | 7438 if (!listener.hasErrors()) { |
7392 JUnitTestCase.assertNotNull(result); | 7439 JUnitTestCase.assertNotNull(result); |
7393 } | 7440 } |
7394 return result as Object; | 7441 return result as Object; |
7395 } | 7442 } |
7396 | 7443 |
7397 /** | 7444 /** |
7398 * Invoke a method in [Parser]. The method is assumed to have no arguments. | 7445 * Invoke a method in [Parser]. The method is assumed to have no arguments. |
7399 * | 7446 * |
(...skipping 25 matching lines...) Expand all Loading... |
7425 return new CommentAndMetadata(comment, metadata); | 7472 return new CommentAndMetadata(comment, metadata); |
7426 } | 7473 } |
7427 | 7474 |
7428 /** | 7475 /** |
7429 * Return an empty CommentAndMetadata object that can be used for testing. | 7476 * Return an empty CommentAndMetadata object that can be used for testing. |
7430 * | 7477 * |
7431 * @return an empty CommentAndMetadata object that can be used for testing | 7478 * @return an empty CommentAndMetadata object that can be used for testing |
7432 */ | 7479 */ |
7433 CommentAndMetadata emptyCommentAndMetadata() => new CommentAndMetadata(null, n
ew List<Annotation>()); | 7480 CommentAndMetadata emptyCommentAndMetadata() => new CommentAndMetadata(null, n
ew List<Annotation>()); |
7434 | 7481 |
| 7482 void setUp() { |
| 7483 super.setUp(); |
| 7484 _parseFunctionBodies = true; |
| 7485 } |
| 7486 |
7435 static dartSuite() { | 7487 static dartSuite() { |
7436 _ut.group('ParserTestCase', () { | 7488 _ut.group('ParserTestCase', () { |
7437 }); | 7489 }); |
7438 } | 7490 } |
7439 } | 7491 } |
7440 | 7492 |
7441 class ResolutionCopierTest extends EngineTestCase { | 7493 class ResolutionCopierTest extends EngineTestCase { |
7442 void test_visitAnnotation() { | 7494 void test_visitAnnotation() { |
7443 String annotationName = "proxy"; | 7495 String annotationName = "proxy"; |
7444 Annotation fromNode = ASTFactory.annotation(ASTFactory.identifier3(annotatio
nName)); | 7496 Annotation fromNode = ASTFactory.annotation(ASTFactory.identifier3(annotatio
nName)); |
(...skipping 3981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11426 'injectToken_1': new MethodTrampoline(1, (Parser target, arg0) => target.injec
tToken(arg0)), | 11478 'injectToken_1': new MethodTrampoline(1, (Parser target, arg0) => target.injec
tToken(arg0)), |
11427 'isFunctionDeclaration_0': new MethodTrampoline(0, (Parser target) => target.i
sFunctionDeclaration()), | 11479 'isFunctionDeclaration_0': new MethodTrampoline(0, (Parser target) => target.i
sFunctionDeclaration()), |
11428 'isFunctionExpression_1': new MethodTrampoline(1, (Parser target, arg0) => tar
get.isFunctionExpression(arg0)), | 11480 'isFunctionExpression_1': new MethodTrampoline(1, (Parser target, arg0) => tar
get.isFunctionExpression(arg0)), |
11429 'isHexDigit_1': new MethodTrampoline(1, (Parser target, arg0) => target.isHexD
igit(arg0)), | 11481 'isHexDigit_1': new MethodTrampoline(1, (Parser target, arg0) => target.isHexD
igit(arg0)), |
11430 'isInitializedVariableDeclaration_0': new MethodTrampoline(0, (Parser target)
=> target.isInitializedVariableDeclaration()), | 11482 'isInitializedVariableDeclaration_0': new MethodTrampoline(0, (Parser target)
=> target.isInitializedVariableDeclaration()), |
11431 'isLinkText_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.
isLinkText(arg0, arg1)), | 11483 'isLinkText_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.
isLinkText(arg0, arg1)), |
11432 'isOperator_1': new MethodTrampoline(1, (Parser target, arg0) => target.isOper
ator(arg0)), | 11484 'isOperator_1': new MethodTrampoline(1, (Parser target, arg0) => target.isOper
ator(arg0)), |
11433 'isSwitchMember_0': new MethodTrampoline(0, (Parser target) => target.isSwitch
Member()), | 11485 'isSwitchMember_0': new MethodTrampoline(0, (Parser target) => target.isSwitch
Member()), |
11434 'isTypedIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => target
.isTypedIdentifier(arg0)), | 11486 'isTypedIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => target
.isTypedIdentifier(arg0)), |
11435 'lexicallyFirst_1': new MethodTrampoline(1, (Parser target, arg0) => target.le
xicallyFirst(arg0)), | 11487 'lexicallyFirst_1': new MethodTrampoline(1, (Parser target, arg0) => target.le
xicallyFirst(arg0)), |
| 11488 'lockErrorListener_0': new MethodTrampoline(0, (Parser target) => target.lockE
rrorListener()), |
11436 'matches_1': new MethodTrampoline(1, (Parser target, arg0) => target.matches(a
rg0)), | 11489 'matches_1': new MethodTrampoline(1, (Parser target, arg0) => target.matches(a
rg0)), |
11437 'matches_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.mat
ches3(arg0, arg1)), | 11490 'matches_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.mat
ches3(arg0, arg1)), |
11438 'matchesAny_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.
matchesAny(arg0, arg1)), | 11491 'matchesAny_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.
matchesAny(arg0, arg1)), |
11439 'matchesIdentifier_0': new MethodTrampoline(0, (Parser target) => target.match
esIdentifier()), | 11492 'matchesIdentifier_0': new MethodTrampoline(0, (Parser target) => target.match
esIdentifier()), |
11440 'matchesIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => target
.matchesIdentifier2(arg0)), | 11493 'matchesIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => target
.matchesIdentifier2(arg0)), |
11441 'optional_1': new MethodTrampoline(1, (Parser target, arg0) => target.optional
(arg0)), | 11494 'optional_1': new MethodTrampoline(1, (Parser target, arg0) => target.optional
(arg0)), |
11442 'parseAdditiveExpression_0': new MethodTrampoline(0, (Parser target) => target
.parseAdditiveExpression()), | 11495 'parseAdditiveExpression_0': new MethodTrampoline(0, (Parser target) => target
.parseAdditiveExpression()), |
11443 'parseArgumentDefinitionTest_0': new MethodTrampoline(0, (Parser target) => ta
rget.parseArgumentDefinitionTest()), | 11496 'parseArgumentDefinitionTest_0': new MethodTrampoline(0, (Parser target) => ta
rget.parseArgumentDefinitionTest()), |
11444 'parseAssertStatement_0': new MethodTrampoline(0, (Parser target) => target.pa
rseAssertStatement()), | 11497 'parseAssertStatement_0': new MethodTrampoline(0, (Parser target) => target.pa
rseAssertStatement()), |
11445 'parseAssignableExpression_1': new MethodTrampoline(1, (Parser target, arg0) =
> target.parseAssignableExpression(arg0)), | 11498 'parseAssignableExpression_1': new MethodTrampoline(1, (Parser target, arg0) =
> target.parseAssignableExpression(arg0)), |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11516 'parseTypeAlias_1': new MethodTrampoline(1, (Parser target, arg0) => target.pa
rseTypeAlias(arg0)), | 11569 'parseTypeAlias_1': new MethodTrampoline(1, (Parser target, arg0) => target.pa
rseTypeAlias(arg0)), |
11517 'parseUnaryExpression_0': new MethodTrampoline(0, (Parser target) => target.pa
rseUnaryExpression()), | 11570 'parseUnaryExpression_0': new MethodTrampoline(0, (Parser target) => target.pa
rseUnaryExpression()), |
11518 'parseVariableDeclaration_0': new MethodTrampoline(0, (Parser target) => targe
t.parseVariableDeclaration()), | 11571 'parseVariableDeclaration_0': new MethodTrampoline(0, (Parser target) => targe
t.parseVariableDeclaration()), |
11519 'parseVariableDeclarationList_1': new MethodTrampoline(1, (Parser target, arg0
) => target.parseVariableDeclarationList(arg0)), | 11572 'parseVariableDeclarationList_1': new MethodTrampoline(1, (Parser target, arg0
) => target.parseVariableDeclarationList(arg0)), |
11520 'parseVariableDeclarationList_3': new MethodTrampoline(3, (Parser target, arg0
, arg1, arg2) => target.parseVariableDeclarationList2(arg0, arg1, arg2)), | 11573 'parseVariableDeclarationList_3': new MethodTrampoline(3, (Parser target, arg0
, arg1, arg2) => target.parseVariableDeclarationList2(arg0, arg1, arg2)), |
11521 'parseVariableDeclarationStatement_1': new MethodTrampoline(1, (Parser target,
arg0) => target.parseVariableDeclarationStatement(arg0)), | 11574 'parseVariableDeclarationStatement_1': new MethodTrampoline(1, (Parser target,
arg0) => target.parseVariableDeclarationStatement(arg0)), |
11522 'parseVariableDeclarationStatement_3': new MethodTrampoline(3, (Parser target,
arg0, arg1, arg2) => target.parseVariableDeclarationStatement2(arg0, arg1, arg2
)), | 11575 'parseVariableDeclarationStatement_3': new MethodTrampoline(3, (Parser target,
arg0, arg1, arg2) => target.parseVariableDeclarationStatement2(arg0, arg1, arg2
)), |
11523 'parseWhileStatement_0': new MethodTrampoline(0, (Parser target) => target.par
seWhileStatement()), | 11576 'parseWhileStatement_0': new MethodTrampoline(0, (Parser target) => target.par
seWhileStatement()), |
11524 'peek_0': new MethodTrampoline(0, (Parser target) => target.peek()), | 11577 'peek_0': new MethodTrampoline(0, (Parser target) => target.peek()), |
11525 'peek_1': new MethodTrampoline(1, (Parser target, arg0) => target.peek2(arg0))
, | 11578 'peek_1': new MethodTrampoline(1, (Parser target, arg0) => target.peek2(arg0))
, |
11526 'reportError_3': new MethodTrampoline(3, (Parser target, arg0, arg1, arg2) =>
target.reportError(arg0, arg1, arg2)), | 11579 'reportError_1': new MethodTrampoline(1, (Parser target, arg0) => target.repor
tError(arg0)), |
11527 'reportError_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target
.reportError9(arg0, arg1)), | 11580 'reportError_3': new MethodTrampoline(3, (Parser target, arg0, arg1, arg2) =>
target.reportError9(arg0, arg1, arg2)), |
| 11581 'reportError_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target
.reportError10(arg0, arg1)), |
| 11582 'skipBlock_0': new MethodTrampoline(0, (Parser target) => target.skipBlock()), |
11528 'skipFinalConstVarOrType_1': new MethodTrampoline(1, (Parser target, arg0) =>
target.skipFinalConstVarOrType(arg0)), | 11583 'skipFinalConstVarOrType_1': new MethodTrampoline(1, (Parser target, arg0) =>
target.skipFinalConstVarOrType(arg0)), |
11529 'skipFormalParameterList_1': new MethodTrampoline(1, (Parser target, arg0) =>
target.skipFormalParameterList(arg0)), | 11584 'skipFormalParameterList_1': new MethodTrampoline(1, (Parser target, arg0) =>
target.skipFormalParameterList(arg0)), |
11530 'skipPastMatchingToken_1': new MethodTrampoline(1, (Parser target, arg0) => ta
rget.skipPastMatchingToken(arg0)), | 11585 'skipPastMatchingToken_1': new MethodTrampoline(1, (Parser target, arg0) => ta
rget.skipPastMatchingToken(arg0)), |
11531 'skipPrefixedIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => t
arget.skipPrefixedIdentifier(arg0)), | 11586 'skipPrefixedIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => t
arget.skipPrefixedIdentifier(arg0)), |
11532 'skipReturnType_1': new MethodTrampoline(1, (Parser target, arg0) => target.sk
ipReturnType(arg0)), | 11587 'skipReturnType_1': new MethodTrampoline(1, (Parser target, arg0) => target.sk
ipReturnType(arg0)), |
11533 'skipSimpleIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => tar
get.skipSimpleIdentifier(arg0)), | 11588 'skipSimpleIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => tar
get.skipSimpleIdentifier(arg0)), |
11534 'skipStringInterpolation_1': new MethodTrampoline(1, (Parser target, arg0) =>
target.skipStringInterpolation(arg0)), | 11589 'skipStringInterpolation_1': new MethodTrampoline(1, (Parser target, arg0) =>
target.skipStringInterpolation(arg0)), |
11535 'skipStringLiteral_1': new MethodTrampoline(1, (Parser target, arg0) => target
.skipStringLiteral(arg0)), | 11590 'skipStringLiteral_1': new MethodTrampoline(1, (Parser target, arg0) => target
.skipStringLiteral(arg0)), |
11536 'skipTypeArgumentList_1': new MethodTrampoline(1, (Parser target, arg0) => tar
get.skipTypeArgumentList(arg0)), | 11591 'skipTypeArgumentList_1': new MethodTrampoline(1, (Parser target, arg0) => tar
get.skipTypeArgumentList(arg0)), |
11537 'skipTypeName_1': new MethodTrampoline(1, (Parser target, arg0) => target.skip
TypeName(arg0)), | 11592 'skipTypeName_1': new MethodTrampoline(1, (Parser target, arg0) => target.skip
TypeName(arg0)), |
11538 'skipTypeParameterList_1': new MethodTrampoline(1, (Parser target, arg0) => ta
rget.skipTypeParameterList(arg0)), | 11593 'skipTypeParameterList_1': new MethodTrampoline(1, (Parser target, arg0) => ta
rget.skipTypeParameterList(arg0)), |
11539 'translateCharacter_3': new MethodTrampoline(3, (Parser target, arg0, arg1, ar
g2) => target.translateCharacter(arg0, arg1, arg2)), | 11594 'translateCharacter_3': new MethodTrampoline(3, (Parser target, arg0, arg1, ar
g2) => target.translateCharacter(arg0, arg1, arg2)), |
| 11595 'unlockErrorListener_0': new MethodTrampoline(0, (Parser target) => target.unl
ockErrorListener()), |
11540 'validateFormalParameterList_1': new MethodTrampoline(1, (Parser target, arg0)
=> target.validateFormalParameterList(arg0)), | 11596 'validateFormalParameterList_1': new MethodTrampoline(1, (Parser target, arg0)
=> target.validateFormalParameterList(arg0)), |
11541 'validateModifiersForClass_1': new MethodTrampoline(1, (Parser target, arg0) =
> target.validateModifiersForClass(arg0)), | 11597 'validateModifiersForClass_1': new MethodTrampoline(1, (Parser target, arg0) =
> target.validateModifiersForClass(arg0)), |
11542 'validateModifiersForConstructor_1': new MethodTrampoline(1, (Parser target, a
rg0) => target.validateModifiersForConstructor(arg0)), | 11598 'validateModifiersForConstructor_1': new MethodTrampoline(1, (Parser target, a
rg0) => target.validateModifiersForConstructor(arg0)), |
11543 'validateModifiersForField_1': new MethodTrampoline(1, (Parser target, arg0) =
> target.validateModifiersForField(arg0)), | 11599 'validateModifiersForField_1': new MethodTrampoline(1, (Parser target, arg0) =
> target.validateModifiersForField(arg0)), |
11544 'validateModifiersForFunctionDeclarationStatement_1': new MethodTrampoline(1,
(Parser target, arg0) => target.validateModifiersForFunctionDeclarationStatement
(arg0)), | 11600 'validateModifiersForFunctionDeclarationStatement_1': new MethodTrampoline(1,
(Parser target, arg0) => target.validateModifiersForFunctionDeclarationStatement
(arg0)), |
11545 'validateModifiersForGetterOrSetterOrMethod_1': new MethodTrampoline(1, (Parse
r target, arg0) => target.validateModifiersForGetterOrSetterOrMethod(arg0)), | 11601 'validateModifiersForGetterOrSetterOrMethod_1': new MethodTrampoline(1, (Parse
r target, arg0) => target.validateModifiersForGetterOrSetterOrMethod(arg0)), |
11546 'validateModifiersForOperator_1': new MethodTrampoline(1, (Parser target, arg0
) => target.validateModifiersForOperator(arg0)), | 11602 'validateModifiersForOperator_1': new MethodTrampoline(1, (Parser target, arg0
) => target.validateModifiersForOperator(arg0)), |
11547 'validateModifiersForTopLevelDeclaration_1': new MethodTrampoline(1, (Parser t
arget, arg0) => target.validateModifiersForTopLevelDeclaration(arg0)), | 11603 'validateModifiersForTopLevelDeclaration_1': new MethodTrampoline(1, (Parser t
arget, arg0) => target.validateModifiersForTopLevelDeclaration(arg0)), |
11548 'validateModifiersForTopLevelFunction_1': new MethodTrampoline(1, (Parser targ
et, arg0) => target.validateModifiersForTopLevelFunction(arg0)), | 11604 'validateModifiersForTopLevelFunction_1': new MethodTrampoline(1, (Parser targ
et, arg0) => target.validateModifiersForTopLevelFunction(arg0)), |
11549 'validateModifiersForTopLevelVariable_1': new MethodTrampoline(1, (Parser targ
et, arg0) => target.validateModifiersForTopLevelVariable(arg0)), | 11605 'validateModifiersForTopLevelVariable_1': new MethodTrampoline(1, (Parser targ
et, arg0) => target.validateModifiersForTopLevelVariable(arg0)), |
11550 'validateModifiersForTypedef_1': new MethodTrampoline(1, (Parser target, arg0)
=> target.validateModifiersForTypedef(arg0)),}; | 11606 'validateModifiersForTypedef_1': new MethodTrampoline(1, (Parser target, arg0)
=> target.validateModifiersForTypedef(arg0)),}; |
11551 | 11607 |
11552 | 11608 |
11553 Object invokeParserMethodImpl(Parser parser, String methodName, List<Object> obj
ects, Token tokenStream) { | 11609 Object invokeParserMethodImpl(Parser parser, String methodName, List<Object> obj
ects, Token tokenStream) { |
11554 parser.currentToken = tokenStream; | 11610 parser.currentToken = tokenStream; |
11555 MethodTrampoline method = _methodTable_Parser['${methodName}_${objects.length}
']; | 11611 MethodTrampoline method = _methodTable_Parser['${methodName}_${objects.length}
']; |
11556 return method.invoke(parser, objects); | 11612 return method.invoke(parser, objects); |
11557 } | 11613 } |
OLD | NEW |