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

Side by Side Diff: dart/pkg/analyzer/test/generated/parser_test.dart

Issue 56933002: Version 0.8.10.1 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « dart/pkg/analyzer/pubspec.yaml ('k') | dart/pkg/analyzer/test/generated/resolver_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/src/generated/java_core.dart'; 4 import 'package:analyzer/src/generated/java_core.dart';
5 import 'package:analyzer/src/generated/java_junit.dart'; 5 import 'package:analyzer/src/generated/java_junit.dart';
6 import 'package:analyzer/src/generated/error.dart'; 6 import 'package:analyzer/src/generated/error.dart';
7 import 'package:analyzer/src/generated/source.dart' show Source;
7 import 'package:analyzer/src/generated/scanner.dart'; 8 import 'package:analyzer/src/generated/scanner.dart';
8 import 'package:analyzer/src/generated/ast.dart'; 9 import 'package:analyzer/src/generated/ast.dart';
9 import 'package:analyzer/src/generated/parser.dart'; 10 import 'package:analyzer/src/generated/parser.dart';
11 import 'package:analyzer/src/generated/element.dart';
10 import 'package:analyzer/src/generated/utilities_dart.dart'; 12 import 'package:analyzer/src/generated/utilities_dart.dart';
11 import 'package:unittest/unittest.dart' as _ut; 13 import 'package:unittest/unittest.dart' as _ut;
12 import 'test_support.dart'; 14 import 'test_support.dart';
13 import 'scanner_test.dart' show TokenFactory; 15 import 'scanner_test.dart' show TokenFactory;
14 import 'ast_test.dart' show ASTFactory; 16 import 'ast_test.dart' show ASTFactory;
17 import 'element_test.dart' show ElementFactory;
15 /** 18 /**
16 * The class `SimpleParserTest` defines parser tests that test individual parsin g method. The 19 * The class `SimpleParserTest` defines parser tests that test individual parsin g method. The
17 * code fragments should be as minimal as possible in order to test the method, but should not test 20 * code fragments should be as minimal as possible in order to test the method, but should not test
18 * the interactions between the method under test and other methods. 21 * the interactions between the method under test and other methods.
19 * 22 *
20 * More complex tests should be defined in the class [ComplexParserTest]. 23 * More complex tests should be defined in the class [ComplexParserTest].
21 */ 24 */
22 class SimpleParserTest extends ParserTestCase { 25 class SimpleParserTest extends ParserTestCase {
23 void fail_parseCommentReference_this() { 26 void fail_parseCommentReference_this() {
24 CommentReference reference = ParserTestCase.parse("parseCommentReference", < Object> ["this", 5], ""); 27 CommentReference reference = ParserTestCase.parse("parseCommentReference", < Object> ["this", 5], "");
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 JUnitTestCase.assertNull(section.target); 469 JUnitTestCase.assertNull(section.target);
467 JUnitTestCase.assertNotNull(section.leftBracket); 470 JUnitTestCase.assertNotNull(section.leftBracket);
468 JUnitTestCase.assertNotNull(section.index); 471 JUnitTestCase.assertNotNull(section.index);
469 JUnitTestCase.assertNotNull(section.rightBracket); 472 JUnitTestCase.assertNotNull(section.rightBracket);
470 } 473 }
471 void test_parseCascadeSection_ia() { 474 void test_parseCascadeSection_ia() {
472 FunctionExpressionInvocation section = ParserTestCase.parse5("parseCascadeSe ction", "..[i](b)", []); 475 FunctionExpressionInvocation section = ParserTestCase.parse5("parseCascadeSe ction", "..[i](b)", []);
473 EngineTestCase.assertInstanceOf(IndexExpression, section.function); 476 EngineTestCase.assertInstanceOf(IndexExpression, section.function);
474 JUnitTestCase.assertNotNull(section.argumentList); 477 JUnitTestCase.assertNotNull(section.argumentList);
475 } 478 }
479 void test_parseCascadeSection_ii() {
480 MethodInvocation section = ParserTestCase.parse5("parseCascadeSection", "..a (b).c(d)", []);
481 EngineTestCase.assertInstanceOf(MethodInvocation, section.target);
482 JUnitTestCase.assertNotNull(section.period);
483 JUnitTestCase.assertNotNull(section.methodName);
484 JUnitTestCase.assertNotNull(section.argumentList);
485 EngineTestCase.assertSize(1, section.argumentList.arguments);
486 }
476 void test_parseCascadeSection_p() { 487 void test_parseCascadeSection_p() {
477 PropertyAccess section = ParserTestCase.parse5("parseCascadeSection", "..a", []); 488 PropertyAccess section = ParserTestCase.parse5("parseCascadeSection", "..a", []);
478 JUnitTestCase.assertNull(section.target); 489 JUnitTestCase.assertNull(section.target);
479 JUnitTestCase.assertNotNull(section.operator); 490 JUnitTestCase.assertNotNull(section.operator);
480 JUnitTestCase.assertNotNull(section.propertyName); 491 JUnitTestCase.assertNotNull(section.propertyName);
481 } 492 }
482 void test_parseCascadeSection_p_assign() { 493 void test_parseCascadeSection_p_assign() {
483 AssignmentExpression section = ParserTestCase.parse5("parseCascadeSection", "..a = 3", []); 494 AssignmentExpression section = ParserTestCase.parse5("parseCascadeSection", "..a = 3", []);
484 JUnitTestCase.assertNotNull(section.leftHandSide); 495 JUnitTestCase.assertNotNull(section.leftHandSide);
485 JUnitTestCase.assertNotNull(section.operator); 496 JUnitTestCase.assertNotNull(section.operator);
(...skipping 22 matching lines...) Expand all
508 EngineTestCase.assertSize(1, section.argumentList.arguments); 519 EngineTestCase.assertSize(1, section.argumentList.arguments);
509 } 520 }
510 void test_parseCascadeSection_paa() { 521 void test_parseCascadeSection_paa() {
511 FunctionExpressionInvocation section = ParserTestCase.parse5("parseCascadeSe ction", "..a(b)(c)", []); 522 FunctionExpressionInvocation section = ParserTestCase.parse5("parseCascadeSe ction", "..a(b)(c)", []);
512 EngineTestCase.assertInstanceOf(MethodInvocation, section.function); 523 EngineTestCase.assertInstanceOf(MethodInvocation, section.function);
513 JUnitTestCase.assertNotNull(section.argumentList); 524 JUnitTestCase.assertNotNull(section.argumentList);
514 EngineTestCase.assertSize(1, section.argumentList.arguments); 525 EngineTestCase.assertSize(1, section.argumentList.arguments);
515 } 526 }
516 void test_parseCascadeSection_paapaa() { 527 void test_parseCascadeSection_paapaa() {
517 FunctionExpressionInvocation section = ParserTestCase.parse5("parseCascadeSe ction", "..a(b)(c).d(e)(f)", []); 528 FunctionExpressionInvocation section = ParserTestCase.parse5("parseCascadeSe ction", "..a(b)(c).d(e)(f)", []);
518 EngineTestCase.assertInstanceOf(FunctionExpressionInvocation, section.functi on); 529 EngineTestCase.assertInstanceOf(MethodInvocation, section.function);
519 JUnitTestCase.assertNotNull(section.argumentList); 530 JUnitTestCase.assertNotNull(section.argumentList);
520 EngineTestCase.assertSize(1, section.argumentList.arguments); 531 EngineTestCase.assertSize(1, section.argumentList.arguments);
521 } 532 }
522 void test_parseCascadeSection_pap() { 533 void test_parseCascadeSection_pap() {
523 PropertyAccess section = ParserTestCase.parse5("parseCascadeSection", "..a(b ).c", []); 534 PropertyAccess section = ParserTestCase.parse5("parseCascadeSection", "..a(b ).c", []);
524 JUnitTestCase.assertNotNull(section.target); 535 JUnitTestCase.assertNotNull(section.target);
525 JUnitTestCase.assertNotNull(section.operator); 536 JUnitTestCase.assertNotNull(section.operator);
526 JUnitTestCase.assertNotNull(section.propertyName); 537 JUnitTestCase.assertNotNull(section.propertyName);
527 } 538 }
528 void test_parseClassDeclaration_abstract() { 539 void test_parseClassDeclaration_abstract() {
(...skipping 3761 matching lines...) Expand 10 before | Expand all | Expand 10 after
4290 runJUnitTest(__test, __test.test_parseBreakStatement_noLabel); 4301 runJUnitTest(__test, __test.test_parseBreakStatement_noLabel);
4291 }); 4302 });
4292 _ut.test('test_parseCascadeSection_i', () { 4303 _ut.test('test_parseCascadeSection_i', () {
4293 final __test = new SimpleParserTest(); 4304 final __test = new SimpleParserTest();
4294 runJUnitTest(__test, __test.test_parseCascadeSection_i); 4305 runJUnitTest(__test, __test.test_parseCascadeSection_i);
4295 }); 4306 });
4296 _ut.test('test_parseCascadeSection_ia', () { 4307 _ut.test('test_parseCascadeSection_ia', () {
4297 final __test = new SimpleParserTest(); 4308 final __test = new SimpleParserTest();
4298 runJUnitTest(__test, __test.test_parseCascadeSection_ia); 4309 runJUnitTest(__test, __test.test_parseCascadeSection_ia);
4299 }); 4310 });
4311 _ut.test('test_parseCascadeSection_ii', () {
4312 final __test = new SimpleParserTest();
4313 runJUnitTest(__test, __test.test_parseCascadeSection_ii);
4314 });
4300 _ut.test('test_parseCascadeSection_p', () { 4315 _ut.test('test_parseCascadeSection_p', () {
4301 final __test = new SimpleParserTest(); 4316 final __test = new SimpleParserTest();
4302 runJUnitTest(__test, __test.test_parseCascadeSection_p); 4317 runJUnitTest(__test, __test.test_parseCascadeSection_p);
4303 }); 4318 });
4304 _ut.test('test_parseCascadeSection_p_assign', () { 4319 _ut.test('test_parseCascadeSection_p_assign', () {
4305 final __test = new SimpleParserTest(); 4320 final __test = new SimpleParserTest();
4306 runJUnitTest(__test, __test.test_parseCascadeSection_p_assign); 4321 runJUnitTest(__test, __test.test_parseCascadeSection_p_assign);
4307 }); 4322 });
4308 _ut.test('test_parseCascadeSection_p_assign_withCascade', () { 4323 _ut.test('test_parseCascadeSection_p_assign_withCascade', () {
4309 final __test = new SimpleParserTest(); 4324 final __test = new SimpleParserTest();
(...skipping 2442 matching lines...) Expand 10 before | Expand all | Expand 10 after
6752 * Return an empty CommentAndMetadata object that can be used for testing. 6767 * Return an empty CommentAndMetadata object that can be used for testing.
6753 * 6768 *
6754 * @return an empty CommentAndMetadata object that can be used for testing 6769 * @return an empty CommentAndMetadata object that can be used for testing
6755 */ 6770 */
6756 CommentAndMetadata emptyCommentAndMetadata() => new CommentAndMetadata(null, n ew List<Annotation>()); 6771 CommentAndMetadata emptyCommentAndMetadata() => new CommentAndMetadata(null, n ew List<Annotation>());
6757 static dartSuite() { 6772 static dartSuite() {
6758 _ut.group('ParserTestCase', () { 6773 _ut.group('ParserTestCase', () {
6759 }); 6774 });
6760 } 6775 }
6761 } 6776 }
6777 class ResolutionCopierTest extends EngineTestCase {
6778 void test_visitAnnotation() {
6779 String annotationName = "proxy";
6780 Annotation fromNode = ASTFactory.annotation(ASTFactory.identifier3(annotatio nName));
6781 Element element = ElementFactory.topLevelVariableElement2(annotationName);
6782 fromNode.element = element;
6783 Annotation toNode = ASTFactory.annotation(ASTFactory.identifier3(annotationN ame));
6784 ResolutionCopier.copyResolutionData(fromNode, toNode);
6785 JUnitTestCase.assertSame(element, toNode.element);
6786 }
6787 void test_visitArgumentDefinitionTest() {
6788 String identifier = "p";
6789 ArgumentDefinitionTest fromNode = ASTFactory.argumentDefinitionTest(identifi er);
6790 Type2 propagatedType = ElementFactory.classElement2("A", []).type;
6791 fromNode.propagatedType = propagatedType;
6792 Type2 staticType = ElementFactory.classElement2("B", []).type;
6793 fromNode.staticType = staticType;
6794 ArgumentDefinitionTest toNode = ASTFactory.argumentDefinitionTest(identifier );
6795 ResolutionCopier.copyResolutionData(fromNode, toNode);
6796 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
6797 JUnitTestCase.assertSame(staticType, toNode.staticType);
6798 }
6799 void test_visitAsExpression() {
6800 AsExpression fromNode = ASTFactory.asExpression(ASTFactory.identifier3("x"), ASTFactory.typeName4("A", []));
6801 Type2 propagatedType = ElementFactory.classElement2("A", []).type;
6802 fromNode.propagatedType = propagatedType;
6803 Type2 staticType = ElementFactory.classElement2("B", []).type;
6804 fromNode.staticType = staticType;
6805 AsExpression toNode = ASTFactory.asExpression(ASTFactory.identifier3("x"), A STFactory.typeName4("A", []));
6806 ResolutionCopier.copyResolutionData(fromNode, toNode);
6807 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
6808 JUnitTestCase.assertSame(staticType, toNode.staticType);
6809 }
6810 void test_visitAssignmentExpression() {
6811 AssignmentExpression fromNode = ASTFactory.assignmentExpression(ASTFactory.i dentifier3("a"), TokenType.PLUS_EQ, ASTFactory.identifier3("b"));
6812 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
6813 MethodElement propagatedElement = ElementFactory.methodElement("+", propagat edType, []);
6814 fromNode.propagatedElement = propagatedElement;
6815 fromNode.propagatedType = propagatedType;
6816 Type2 staticType = ElementFactory.classElement2("C", []).type;
6817 MethodElement staticElement = ElementFactory.methodElement("+", staticType, []);
6818 fromNode.staticElement = staticElement;
6819 fromNode.staticType = staticType;
6820 AssignmentExpression toNode = ASTFactory.assignmentExpression(ASTFactory.ide ntifier3("a"), TokenType.PLUS_EQ, ASTFactory.identifier3("b"));
6821 ResolutionCopier.copyResolutionData(fromNode, toNode);
6822 JUnitTestCase.assertSame(propagatedElement, toNode.propagatedElement);
6823 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
6824 JUnitTestCase.assertSame(staticElement, toNode.staticElement);
6825 JUnitTestCase.assertSame(staticType, toNode.staticType);
6826 }
6827 void test_visitBinaryExpression() {
6828 BinaryExpression fromNode = ASTFactory.binaryExpression(ASTFactory.identifie r3("a"), TokenType.PLUS, ASTFactory.identifier3("b"));
6829 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
6830 MethodElement propagatedElement = ElementFactory.methodElement("+", propagat edType, []);
6831 fromNode.propagatedElement = propagatedElement;
6832 fromNode.propagatedType = propagatedType;
6833 Type2 staticType = ElementFactory.classElement2("C", []).type;
6834 MethodElement staticElement = ElementFactory.methodElement("+", staticType, []);
6835 fromNode.staticElement = staticElement;
6836 fromNode.staticType = staticType;
6837 BinaryExpression toNode = ASTFactory.binaryExpression(ASTFactory.identifier3 ("a"), TokenType.PLUS, ASTFactory.identifier3("b"));
6838 ResolutionCopier.copyResolutionData(fromNode, toNode);
6839 JUnitTestCase.assertSame(propagatedElement, toNode.propagatedElement);
6840 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
6841 JUnitTestCase.assertSame(staticElement, toNode.staticElement);
6842 JUnitTestCase.assertSame(staticType, toNode.staticType);
6843 }
6844 void test_visitBooleanLiteral() {
6845 BooleanLiteral fromNode = ASTFactory.booleanLiteral(true);
6846 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
6847 fromNode.propagatedType = propagatedType;
6848 Type2 staticType = ElementFactory.classElement2("C", []).type;
6849 fromNode.staticType = staticType;
6850 BooleanLiteral toNode = ASTFactory.booleanLiteral(true);
6851 ResolutionCopier.copyResolutionData(fromNode, toNode);
6852 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
6853 JUnitTestCase.assertSame(staticType, toNode.staticType);
6854 }
6855 void test_visitCascadeExpression() {
6856 CascadeExpression fromNode = ASTFactory.cascadeExpression(ASTFactory.identif ier3("a"), [ASTFactory.identifier3("b")]);
6857 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
6858 fromNode.propagatedType = propagatedType;
6859 Type2 staticType = ElementFactory.classElement2("C", []).type;
6860 fromNode.staticType = staticType;
6861 CascadeExpression toNode = ASTFactory.cascadeExpression(ASTFactory.identifie r3("a"), [ASTFactory.identifier3("b")]);
6862 ResolutionCopier.copyResolutionData(fromNode, toNode);
6863 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
6864 JUnitTestCase.assertSame(staticType, toNode.staticType);
6865 }
6866 void test_visitCompilationUnit() {
6867 CompilationUnit fromNode = ASTFactory.compilationUnit();
6868 CompilationUnitElement element = new CompilationUnitElementImpl("test.dart") ;
6869 fromNode.element = element;
6870 CompilationUnit toNode = ASTFactory.compilationUnit();
6871 ResolutionCopier.copyResolutionData(fromNode, toNode);
6872 JUnitTestCase.assertSame(element, toNode.element);
6873 }
6874 void test_visitConditionalExpression() {
6875 ConditionalExpression fromNode = ASTFactory.conditionalExpression(ASTFactory .identifier3("c"), ASTFactory.identifier3("a"), ASTFactory.identifier3("b"));
6876 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
6877 fromNode.propagatedType = propagatedType;
6878 Type2 staticType = ElementFactory.classElement2("C", []).type;
6879 fromNode.staticType = staticType;
6880 ConditionalExpression toNode = ASTFactory.conditionalExpression(ASTFactory.i dentifier3("c"), ASTFactory.identifier3("a"), ASTFactory.identifier3("b"));
6881 ResolutionCopier.copyResolutionData(fromNode, toNode);
6882 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
6883 JUnitTestCase.assertSame(staticType, toNode.staticType);
6884 }
6885 void test_visitConstructorDeclaration() {
6886 String className = "A";
6887 String constructorName = "c";
6888 ConstructorDeclaration fromNode = ASTFactory.constructorDeclaration(ASTFacto ry.identifier3(className), constructorName, ASTFactory.formalParameterList([]), null);
6889 ConstructorElement element = ElementFactory.constructorElement(ElementFactor y.classElement2(className, []), constructorName);
6890 fromNode.element = element;
6891 ConstructorDeclaration toNode = ASTFactory.constructorDeclaration(ASTFactory .identifier3(className), constructorName, ASTFactory.formalParameterList([]), nu ll);
6892 ResolutionCopier.copyResolutionData(fromNode, toNode);
6893 JUnitTestCase.assertSame(element, toNode.element);
6894 }
6895 void test_visitConstructorName() {
6896 ConstructorName fromNode = ASTFactory.constructorName(ASTFactory.typeName4(" A", []), "c");
6897 ConstructorElement staticElement = ElementFactory.constructorElement(Element Factory.classElement2("A", []), "c");
6898 fromNode.staticElement = staticElement;
6899 ConstructorName toNode = ASTFactory.constructorName(ASTFactory.typeName4("A" , []), "c");
6900 ResolutionCopier.copyResolutionData(fromNode, toNode);
6901 JUnitTestCase.assertSame(staticElement, toNode.staticElement);
6902 }
6903 void test_visitDoubleLiteral() {
6904 DoubleLiteral fromNode = ASTFactory.doubleLiteral(1.0);
6905 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
6906 fromNode.propagatedType = propagatedType;
6907 Type2 staticType = ElementFactory.classElement2("C", []).type;
6908 fromNode.staticType = staticType;
6909 DoubleLiteral toNode = ASTFactory.doubleLiteral(1.0);
6910 ResolutionCopier.copyResolutionData(fromNode, toNode);
6911 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
6912 JUnitTestCase.assertSame(staticType, toNode.staticType);
6913 }
6914 void test_visitExportDirective() {
6915 ExportDirective fromNode = ASTFactory.exportDirective2("dart:uri", []);
6916 ExportElement element = new ExportElementImpl();
6917 fromNode.element = element;
6918 ExportDirective toNode = ASTFactory.exportDirective2("dart:uri", []);
6919 ResolutionCopier.copyResolutionData(fromNode, toNode);
6920 JUnitTestCase.assertSame(element, toNode.element);
6921 }
6922 void test_visitFunctionExpression() {
6923 FunctionExpression fromNode = ASTFactory.functionExpression2(ASTFactory.form alParameterList([]), ASTFactory.emptyFunctionBody());
6924 MethodElement element = ElementFactory.methodElement("m", ElementFactory.cla ssElement2("C", []).type, []);
6925 fromNode.element = element;
6926 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
6927 fromNode.propagatedType = propagatedType;
6928 Type2 staticType = ElementFactory.classElement2("C", []).type;
6929 fromNode.staticType = staticType;
6930 FunctionExpression toNode = ASTFactory.functionExpression2(ASTFactory.formal ParameterList([]), ASTFactory.emptyFunctionBody());
6931 ResolutionCopier.copyResolutionData(fromNode, toNode);
6932 JUnitTestCase.assertSame(element, toNode.element);
6933 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
6934 JUnitTestCase.assertSame(staticType, toNode.staticType);
6935 }
6936 void test_visitFunctionExpressionInvocation() {
6937 FunctionExpressionInvocation fromNode = ASTFactory.functionExpressionInvocat ion(ASTFactory.identifier3("f"), []);
6938 MethodElement propagatedElement = ElementFactory.methodElement("m", ElementF actory.classElement2("C", []).type, []);
6939 fromNode.propagatedElement = propagatedElement;
6940 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
6941 fromNode.propagatedType = propagatedType;
6942 MethodElement staticElement = ElementFactory.methodElement("m", ElementFacto ry.classElement2("C", []).type, []);
6943 fromNode.staticElement = staticElement;
6944 Type2 staticType = ElementFactory.classElement2("C", []).type;
6945 fromNode.staticType = staticType;
6946 FunctionExpressionInvocation toNode = ASTFactory.functionExpressionInvocatio n(ASTFactory.identifier3("f"), []);
6947 ResolutionCopier.copyResolutionData(fromNode, toNode);
6948 JUnitTestCase.assertSame(propagatedElement, toNode.propagatedElement);
6949 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
6950 JUnitTestCase.assertSame(staticElement, toNode.staticElement);
6951 JUnitTestCase.assertSame(staticType, toNode.staticType);
6952 }
6953 void test_visitImportDirective() {
6954 ImportDirective fromNode = ASTFactory.importDirective2("dart:uri", null, []) ;
6955 ImportElement element = new ImportElementImpl();
6956 fromNode.element = element;
6957 ImportDirective toNode = ASTFactory.importDirective2("dart:uri", null, []);
6958 ResolutionCopier.copyResolutionData(fromNode, toNode);
6959 JUnitTestCase.assertSame(element, toNode.element);
6960 }
6961 void test_visitIndexExpression() {
6962 IndexExpression fromNode = ASTFactory.indexExpression(ASTFactory.identifier3 ("a"), ASTFactory.integer(0));
6963 MethodElement propagatedElement = ElementFactory.methodElement("m", ElementF actory.classElement2("C", []).type, []);
6964 MethodElement staticElement = ElementFactory.methodElement("m", ElementFacto ry.classElement2("C", []).type, []);
6965 AuxiliaryElements auxiliaryElements = new AuxiliaryElements(staticElement, p ropagatedElement);
6966 fromNode.auxiliaryElements = auxiliaryElements;
6967 fromNode.propagatedElement = propagatedElement;
6968 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
6969 fromNode.propagatedType = propagatedType;
6970 fromNode.staticElement = staticElement;
6971 Type2 staticType = ElementFactory.classElement2("C", []).type;
6972 fromNode.staticType = staticType;
6973 IndexExpression toNode = ASTFactory.indexExpression(ASTFactory.identifier3(" a"), ASTFactory.integer(0));
6974 ResolutionCopier.copyResolutionData(fromNode, toNode);
6975 JUnitTestCase.assertSame(auxiliaryElements, toNode.auxiliaryElements);
6976 JUnitTestCase.assertSame(propagatedElement, toNode.propagatedElement);
6977 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
6978 JUnitTestCase.assertSame(staticElement, toNode.staticElement);
6979 JUnitTestCase.assertSame(staticType, toNode.staticType);
6980 }
6981 void test_visitInstanceCreationExpression() {
6982 InstanceCreationExpression fromNode = ASTFactory.instanceCreationExpression2 (Keyword.NEW, ASTFactory.typeName4("C", []), []);
6983 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
6984 fromNode.propagatedType = propagatedType;
6985 ConstructorElement staticElement = ElementFactory.constructorElement(Element Factory.classElement2("C", []), null);
6986 fromNode.staticElement = staticElement;
6987 Type2 staticType = ElementFactory.classElement2("C", []).type;
6988 fromNode.staticType = staticType;
6989 InstanceCreationExpression toNode = ASTFactory.instanceCreationExpression2(K eyword.NEW, ASTFactory.typeName4("C", []), []);
6990 ResolutionCopier.copyResolutionData(fromNode, toNode);
6991 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
6992 JUnitTestCase.assertSame(staticElement, toNode.staticElement);
6993 JUnitTestCase.assertSame(staticType, toNode.staticType);
6994 }
6995 void test_visitIntegerLiteral() {
6996 IntegerLiteral fromNode = ASTFactory.integer(2);
6997 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
6998 fromNode.propagatedType = propagatedType;
6999 Type2 staticType = ElementFactory.classElement2("C", []).type;
7000 fromNode.staticType = staticType;
7001 IntegerLiteral toNode = ASTFactory.integer(2);
7002 ResolutionCopier.copyResolutionData(fromNode, toNode);
7003 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
7004 JUnitTestCase.assertSame(staticType, toNode.staticType);
7005 }
7006 void test_visitIsExpression() {
7007 IsExpression fromNode = ASTFactory.isExpression(ASTFactory.identifier3("x"), false, ASTFactory.typeName4("A", []));
7008 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
7009 fromNode.propagatedType = propagatedType;
7010 Type2 staticType = ElementFactory.classElement2("C", []).type;
7011 fromNode.staticType = staticType;
7012 IsExpression toNode = ASTFactory.isExpression(ASTFactory.identifier3("x"), f alse, ASTFactory.typeName4("A", []));
7013 ResolutionCopier.copyResolutionData(fromNode, toNode);
7014 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
7015 JUnitTestCase.assertSame(staticType, toNode.staticType);
7016 }
7017 void test_visitLibraryIdentifier() {
7018 LibraryIdentifier fromNode = ASTFactory.libraryIdentifier([ASTFactory.identi fier3("lib")]);
7019 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
7020 fromNode.propagatedType = propagatedType;
7021 Type2 staticType = ElementFactory.classElement2("C", []).type;
7022 fromNode.staticType = staticType;
7023 LibraryIdentifier toNode = ASTFactory.libraryIdentifier([ASTFactory.identifi er3("lib")]);
7024 ResolutionCopier.copyResolutionData(fromNode, toNode);
7025 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
7026 JUnitTestCase.assertSame(staticType, toNode.staticType);
7027 }
7028 void test_visitListLiteral() {
7029 ListLiteral fromNode = ASTFactory.listLiteral([]);
7030 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
7031 fromNode.propagatedType = propagatedType;
7032 Type2 staticType = ElementFactory.classElement2("C", []).type;
7033 fromNode.staticType = staticType;
7034 ListLiteral toNode = ASTFactory.listLiteral([]);
7035 ResolutionCopier.copyResolutionData(fromNode, toNode);
7036 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
7037 JUnitTestCase.assertSame(staticType, toNode.staticType);
7038 }
7039 void test_visitMapLiteral() {
7040 MapLiteral fromNode = ASTFactory.mapLiteral2([]);
7041 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
7042 fromNode.propagatedType = propagatedType;
7043 Type2 staticType = ElementFactory.classElement2("C", []).type;
7044 fromNode.staticType = staticType;
7045 MapLiteral toNode = ASTFactory.mapLiteral2([]);
7046 ResolutionCopier.copyResolutionData(fromNode, toNode);
7047 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
7048 JUnitTestCase.assertSame(staticType, toNode.staticType);
7049 }
7050 void test_visitMethodInvocation() {
7051 MethodInvocation fromNode = ASTFactory.methodInvocation2("m", []);
7052 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
7053 fromNode.propagatedType = propagatedType;
7054 Type2 staticType = ElementFactory.classElement2("C", []).type;
7055 fromNode.staticType = staticType;
7056 MethodInvocation toNode = ASTFactory.methodInvocation2("m", []);
7057 ResolutionCopier.copyResolutionData(fromNode, toNode);
7058 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
7059 JUnitTestCase.assertSame(staticType, toNode.staticType);
7060 }
7061 void test_visitNamedExpression() {
7062 NamedExpression fromNode = ASTFactory.namedExpression2("n", ASTFactory.integ er(0));
7063 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
7064 fromNode.propagatedType = propagatedType;
7065 Type2 staticType = ElementFactory.classElement2("C", []).type;
7066 fromNode.staticType = staticType;
7067 NamedExpression toNode = ASTFactory.namedExpression2("n", ASTFactory.integer (0));
7068 ResolutionCopier.copyResolutionData(fromNode, toNode);
7069 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
7070 JUnitTestCase.assertSame(staticType, toNode.staticType);
7071 }
7072 void test_visitNullLiteral() {
7073 NullLiteral fromNode = ASTFactory.nullLiteral();
7074 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
7075 fromNode.propagatedType = propagatedType;
7076 Type2 staticType = ElementFactory.classElement2("C", []).type;
7077 fromNode.staticType = staticType;
7078 NullLiteral toNode = ASTFactory.nullLiteral();
7079 ResolutionCopier.copyResolutionData(fromNode, toNode);
7080 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
7081 JUnitTestCase.assertSame(staticType, toNode.staticType);
7082 }
7083 void test_visitParenthesizedExpression() {
7084 ParenthesizedExpression fromNode = ASTFactory.parenthesizedExpression(ASTFac tory.integer(0));
7085 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
7086 fromNode.propagatedType = propagatedType;
7087 Type2 staticType = ElementFactory.classElement2("C", []).type;
7088 fromNode.staticType = staticType;
7089 ParenthesizedExpression toNode = ASTFactory.parenthesizedExpression(ASTFacto ry.integer(0));
7090 ResolutionCopier.copyResolutionData(fromNode, toNode);
7091 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
7092 JUnitTestCase.assertSame(staticType, toNode.staticType);
7093 }
7094 void test_visitPartDirective() {
7095 PartDirective fromNode = ASTFactory.partDirective2("part.dart");
7096 LibraryElement element = new LibraryElementImpl(null, ASTFactory.libraryIden tifier2(["lib"]));
7097 fromNode.element = element;
7098 PartDirective toNode = ASTFactory.partDirective2("part.dart");
7099 ResolutionCopier.copyResolutionData(fromNode, toNode);
7100 JUnitTestCase.assertSame(element, toNode.element);
7101 }
7102 void test_visitPartOfDirective() {
7103 PartOfDirective fromNode = ASTFactory.partOfDirective(ASTFactory.libraryIden tifier2(["lib"]));
7104 LibraryElement element = new LibraryElementImpl(null, ASTFactory.libraryIden tifier2(["lib"]));
7105 fromNode.element = element;
7106 PartOfDirective toNode = ASTFactory.partOfDirective(ASTFactory.libraryIdenti fier2(["lib"]));
7107 ResolutionCopier.copyResolutionData(fromNode, toNode);
7108 JUnitTestCase.assertSame(element, toNode.element);
7109 }
7110 void test_visitPostfixExpression() {
7111 String variableName = "x";
7112 PostfixExpression fromNode = ASTFactory.postfixExpression(ASTFactory.identif ier3(variableName), TokenType.PLUS_PLUS);
7113 MethodElement propagatedElement = ElementFactory.methodElement("+", ElementF actory.classElement2("C", []).type, []);
7114 fromNode.propagatedElement = propagatedElement;
7115 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
7116 fromNode.propagatedType = propagatedType;
7117 MethodElement staticElement = ElementFactory.methodElement("+", ElementFacto ry.classElement2("C", []).type, []);
7118 fromNode.staticElement = staticElement;
7119 Type2 staticType = ElementFactory.classElement2("C", []).type;
7120 fromNode.staticType = staticType;
7121 PostfixExpression toNode = ASTFactory.postfixExpression(ASTFactory.identifie r3(variableName), TokenType.PLUS_PLUS);
7122 ResolutionCopier.copyResolutionData(fromNode, toNode);
7123 JUnitTestCase.assertSame(propagatedElement, toNode.propagatedElement);
7124 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
7125 JUnitTestCase.assertSame(staticElement, toNode.staticElement);
7126 JUnitTestCase.assertSame(staticType, toNode.staticType);
7127 }
7128 void test_visitPrefixedIdentifier() {
7129 PrefixedIdentifier fromNode = ASTFactory.identifier5("p", "f");
7130 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
7131 fromNode.propagatedType = propagatedType;
7132 Type2 staticType = ElementFactory.classElement2("C", []).type;
7133 fromNode.staticType = staticType;
7134 PrefixedIdentifier toNode = ASTFactory.identifier5("p", "f");
7135 ResolutionCopier.copyResolutionData(fromNode, toNode);
7136 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
7137 JUnitTestCase.assertSame(staticType, toNode.staticType);
7138 }
7139 void test_visitPrefixExpression() {
7140 PrefixExpression fromNode = ASTFactory.prefixExpression(TokenType.PLUS_PLUS, ASTFactory.identifier3("x"));
7141 MethodElement propagatedElement = ElementFactory.methodElement("+", ElementF actory.classElement2("C", []).type, []);
7142 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
7143 fromNode.propagatedElement = propagatedElement;
7144 fromNode.propagatedType = propagatedType;
7145 Type2 staticType = ElementFactory.classElement2("C", []).type;
7146 MethodElement staticElement = ElementFactory.methodElement("+", ElementFacto ry.classElement2("C", []).type, []);
7147 fromNode.staticElement = staticElement;
7148 fromNode.staticType = staticType;
7149 PrefixExpression toNode = ASTFactory.prefixExpression(TokenType.PLUS_PLUS, A STFactory.identifier3("x"));
7150 ResolutionCopier.copyResolutionData(fromNode, toNode);
7151 JUnitTestCase.assertSame(propagatedElement, toNode.propagatedElement);
7152 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
7153 JUnitTestCase.assertSame(staticElement, toNode.staticElement);
7154 JUnitTestCase.assertSame(staticType, toNode.staticType);
7155 }
7156 void test_visitPropertyAccess() {
7157 PropertyAccess fromNode = ASTFactory.propertyAccess2(ASTFactory.identifier3( "x"), "y");
7158 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
7159 fromNode.propagatedType = propagatedType;
7160 Type2 staticType = ElementFactory.classElement2("C", []).type;
7161 fromNode.staticType = staticType;
7162 PropertyAccess toNode = ASTFactory.propertyAccess2(ASTFactory.identifier3("x "), "y");
7163 ResolutionCopier.copyResolutionData(fromNode, toNode);
7164 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
7165 JUnitTestCase.assertSame(staticType, toNode.staticType);
7166 }
7167 void test_visitRedirectingConstructorInvocation() {
7168 RedirectingConstructorInvocation fromNode = ASTFactory.redirectingConstructo rInvocation([]);
7169 ConstructorElement staticElement = ElementFactory.constructorElement(Element Factory.classElement2("C", []), null);
7170 fromNode.staticElement = staticElement;
7171 RedirectingConstructorInvocation toNode = ASTFactory.redirectingConstructorI nvocation([]);
7172 ResolutionCopier.copyResolutionData(fromNode, toNode);
7173 JUnitTestCase.assertSame(staticElement, toNode.staticElement);
7174 }
7175 void test_visitRethrowExpression() {
7176 RethrowExpression fromNode = ASTFactory.rethrowExpression();
7177 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
7178 fromNode.propagatedType = propagatedType;
7179 Type2 staticType = ElementFactory.classElement2("C", []).type;
7180 fromNode.staticType = staticType;
7181 RethrowExpression toNode = ASTFactory.rethrowExpression();
7182 ResolutionCopier.copyResolutionData(fromNode, toNode);
7183 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
7184 JUnitTestCase.assertSame(staticType, toNode.staticType);
7185 }
7186 void test_visitSimpleIdentifier() {
7187 SimpleIdentifier fromNode = ASTFactory.identifier3("x");
7188 MethodElement propagatedElement = ElementFactory.methodElement("m", ElementF actory.classElement2("C", []).type, []);
7189 MethodElement staticElement = ElementFactory.methodElement("m", ElementFacto ry.classElement2("C", []).type, []);
7190 AuxiliaryElements auxiliaryElements = new AuxiliaryElements(staticElement, p ropagatedElement);
7191 fromNode.auxiliaryElements = auxiliaryElements;
7192 fromNode.propagatedElement = propagatedElement;
7193 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
7194 fromNode.propagatedType = propagatedType;
7195 fromNode.staticElement = staticElement;
7196 Type2 staticType = ElementFactory.classElement2("C", []).type;
7197 fromNode.staticType = staticType;
7198 SimpleIdentifier toNode = ASTFactory.identifier3("x");
7199 ResolutionCopier.copyResolutionData(fromNode, toNode);
7200 JUnitTestCase.assertSame(auxiliaryElements, toNode.auxiliaryElements);
7201 JUnitTestCase.assertSame(propagatedElement, toNode.propagatedElement);
7202 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
7203 JUnitTestCase.assertSame(staticElement, toNode.staticElement);
7204 JUnitTestCase.assertSame(staticType, toNode.staticType);
7205 }
7206 void test_visitSimpleStringLiteral() {
7207 SimpleStringLiteral fromNode = ASTFactory.string2("abc");
7208 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
7209 fromNode.propagatedType = propagatedType;
7210 Type2 staticType = ElementFactory.classElement2("C", []).type;
7211 fromNode.staticType = staticType;
7212 SimpleStringLiteral toNode = ASTFactory.string2("abc");
7213 ResolutionCopier.copyResolutionData(fromNode, toNode);
7214 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
7215 JUnitTestCase.assertSame(staticType, toNode.staticType);
7216 }
7217 void test_visitStringInterpolation() {
7218 StringInterpolation fromNode = ASTFactory.string([ASTFactory.interpolationSt ring("a", "'a'")]);
7219 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
7220 fromNode.propagatedType = propagatedType;
7221 Type2 staticType = ElementFactory.classElement2("C", []).type;
7222 fromNode.staticType = staticType;
7223 StringInterpolation toNode = ASTFactory.string([ASTFactory.interpolationStri ng("a", "'a'")]);
7224 ResolutionCopier.copyResolutionData(fromNode, toNode);
7225 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
7226 JUnitTestCase.assertSame(staticType, toNode.staticType);
7227 }
7228 void test_visitSuperConstructorInvocation() {
7229 SuperConstructorInvocation fromNode = ASTFactory.superConstructorInvocation( []);
7230 ConstructorElement staticElement = ElementFactory.constructorElement(Element Factory.classElement2("C", []), null);
7231 fromNode.staticElement = staticElement;
7232 SuperConstructorInvocation toNode = ASTFactory.superConstructorInvocation([] );
7233 ResolutionCopier.copyResolutionData(fromNode, toNode);
7234 JUnitTestCase.assertSame(staticElement, toNode.staticElement);
7235 }
7236 void test_visitSuperExpression() {
7237 SuperExpression fromNode = ASTFactory.superExpression();
7238 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
7239 fromNode.propagatedType = propagatedType;
7240 Type2 staticType = ElementFactory.classElement2("C", []).type;
7241 fromNode.staticType = staticType;
7242 SuperExpression toNode = ASTFactory.superExpression();
7243 ResolutionCopier.copyResolutionData(fromNode, toNode);
7244 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
7245 JUnitTestCase.assertSame(staticType, toNode.staticType);
7246 }
7247 void test_visitSymbolLiteral() {
7248 SymbolLiteral fromNode = ASTFactory.symbolLiteral(["s"]);
7249 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
7250 fromNode.propagatedType = propagatedType;
7251 Type2 staticType = ElementFactory.classElement2("C", []).type;
7252 fromNode.staticType = staticType;
7253 SymbolLiteral toNode = ASTFactory.symbolLiteral(["s"]);
7254 ResolutionCopier.copyResolutionData(fromNode, toNode);
7255 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
7256 JUnitTestCase.assertSame(staticType, toNode.staticType);
7257 }
7258 void test_visitThisExpression() {
7259 ThisExpression fromNode = ASTFactory.thisExpression();
7260 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
7261 fromNode.propagatedType = propagatedType;
7262 Type2 staticType = ElementFactory.classElement2("C", []).type;
7263 fromNode.staticType = staticType;
7264 ThisExpression toNode = ASTFactory.thisExpression();
7265 ResolutionCopier.copyResolutionData(fromNode, toNode);
7266 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
7267 JUnitTestCase.assertSame(staticType, toNode.staticType);
7268 }
7269 void test_visitThrowExpression() {
7270 ThrowExpression fromNode = ASTFactory.throwExpression();
7271 Type2 propagatedType = ElementFactory.classElement2("C", []).type;
7272 fromNode.propagatedType = propagatedType;
7273 Type2 staticType = ElementFactory.classElement2("C", []).type;
7274 fromNode.staticType = staticType;
7275 ThrowExpression toNode = ASTFactory.throwExpression();
7276 ResolutionCopier.copyResolutionData(fromNode, toNode);
7277 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
7278 JUnitTestCase.assertSame(staticType, toNode.staticType);
7279 }
7280 void test_visitTypeName() {
7281 TypeName fromNode = ASTFactory.typeName4("C", []);
7282 Type2 type = ElementFactory.classElement2("C", []).type;
7283 fromNode.type = type;
7284 TypeName toNode = ASTFactory.typeName4("C", []);
7285 ResolutionCopier.copyResolutionData(fromNode, toNode);
7286 JUnitTestCase.assertSame(type, toNode.type);
7287 }
7288 static dartSuite() {
7289 _ut.group('ResolutionCopierTest', () {
7290 _ut.test('test_visitAnnotation', () {
7291 final __test = new ResolutionCopierTest();
7292 runJUnitTest(__test, __test.test_visitAnnotation);
7293 });
7294 _ut.test('test_visitArgumentDefinitionTest', () {
7295 final __test = new ResolutionCopierTest();
7296 runJUnitTest(__test, __test.test_visitArgumentDefinitionTest);
7297 });
7298 _ut.test('test_visitAsExpression', () {
7299 final __test = new ResolutionCopierTest();
7300 runJUnitTest(__test, __test.test_visitAsExpression);
7301 });
7302 _ut.test('test_visitAssignmentExpression', () {
7303 final __test = new ResolutionCopierTest();
7304 runJUnitTest(__test, __test.test_visitAssignmentExpression);
7305 });
7306 _ut.test('test_visitBinaryExpression', () {
7307 final __test = new ResolutionCopierTest();
7308 runJUnitTest(__test, __test.test_visitBinaryExpression);
7309 });
7310 _ut.test('test_visitBooleanLiteral', () {
7311 final __test = new ResolutionCopierTest();
7312 runJUnitTest(__test, __test.test_visitBooleanLiteral);
7313 });
7314 _ut.test('test_visitCascadeExpression', () {
7315 final __test = new ResolutionCopierTest();
7316 runJUnitTest(__test, __test.test_visitCascadeExpression);
7317 });
7318 _ut.test('test_visitCompilationUnit', () {
7319 final __test = new ResolutionCopierTest();
7320 runJUnitTest(__test, __test.test_visitCompilationUnit);
7321 });
7322 _ut.test('test_visitConditionalExpression', () {
7323 final __test = new ResolutionCopierTest();
7324 runJUnitTest(__test, __test.test_visitConditionalExpression);
7325 });
7326 _ut.test('test_visitConstructorDeclaration', () {
7327 final __test = new ResolutionCopierTest();
7328 runJUnitTest(__test, __test.test_visitConstructorDeclaration);
7329 });
7330 _ut.test('test_visitConstructorName', () {
7331 final __test = new ResolutionCopierTest();
7332 runJUnitTest(__test, __test.test_visitConstructorName);
7333 });
7334 _ut.test('test_visitDoubleLiteral', () {
7335 final __test = new ResolutionCopierTest();
7336 runJUnitTest(__test, __test.test_visitDoubleLiteral);
7337 });
7338 _ut.test('test_visitExportDirective', () {
7339 final __test = new ResolutionCopierTest();
7340 runJUnitTest(__test, __test.test_visitExportDirective);
7341 });
7342 _ut.test('test_visitFunctionExpression', () {
7343 final __test = new ResolutionCopierTest();
7344 runJUnitTest(__test, __test.test_visitFunctionExpression);
7345 });
7346 _ut.test('test_visitFunctionExpressionInvocation', () {
7347 final __test = new ResolutionCopierTest();
7348 runJUnitTest(__test, __test.test_visitFunctionExpressionInvocation);
7349 });
7350 _ut.test('test_visitImportDirective', () {
7351 final __test = new ResolutionCopierTest();
7352 runJUnitTest(__test, __test.test_visitImportDirective);
7353 });
7354 _ut.test('test_visitIndexExpression', () {
7355 final __test = new ResolutionCopierTest();
7356 runJUnitTest(__test, __test.test_visitIndexExpression);
7357 });
7358 _ut.test('test_visitInstanceCreationExpression', () {
7359 final __test = new ResolutionCopierTest();
7360 runJUnitTest(__test, __test.test_visitInstanceCreationExpression);
7361 });
7362 _ut.test('test_visitIntegerLiteral', () {
7363 final __test = new ResolutionCopierTest();
7364 runJUnitTest(__test, __test.test_visitIntegerLiteral);
7365 });
7366 _ut.test('test_visitIsExpression', () {
7367 final __test = new ResolutionCopierTest();
7368 runJUnitTest(__test, __test.test_visitIsExpression);
7369 });
7370 _ut.test('test_visitLibraryIdentifier', () {
7371 final __test = new ResolutionCopierTest();
7372 runJUnitTest(__test, __test.test_visitLibraryIdentifier);
7373 });
7374 _ut.test('test_visitListLiteral', () {
7375 final __test = new ResolutionCopierTest();
7376 runJUnitTest(__test, __test.test_visitListLiteral);
7377 });
7378 _ut.test('test_visitMapLiteral', () {
7379 final __test = new ResolutionCopierTest();
7380 runJUnitTest(__test, __test.test_visitMapLiteral);
7381 });
7382 _ut.test('test_visitMethodInvocation', () {
7383 final __test = new ResolutionCopierTest();
7384 runJUnitTest(__test, __test.test_visitMethodInvocation);
7385 });
7386 _ut.test('test_visitNamedExpression', () {
7387 final __test = new ResolutionCopierTest();
7388 runJUnitTest(__test, __test.test_visitNamedExpression);
7389 });
7390 _ut.test('test_visitNullLiteral', () {
7391 final __test = new ResolutionCopierTest();
7392 runJUnitTest(__test, __test.test_visitNullLiteral);
7393 });
7394 _ut.test('test_visitParenthesizedExpression', () {
7395 final __test = new ResolutionCopierTest();
7396 runJUnitTest(__test, __test.test_visitParenthesizedExpression);
7397 });
7398 _ut.test('test_visitPartDirective', () {
7399 final __test = new ResolutionCopierTest();
7400 runJUnitTest(__test, __test.test_visitPartDirective);
7401 });
7402 _ut.test('test_visitPartOfDirective', () {
7403 final __test = new ResolutionCopierTest();
7404 runJUnitTest(__test, __test.test_visitPartOfDirective);
7405 });
7406 _ut.test('test_visitPostfixExpression', () {
7407 final __test = new ResolutionCopierTest();
7408 runJUnitTest(__test, __test.test_visitPostfixExpression);
7409 });
7410 _ut.test('test_visitPrefixExpression', () {
7411 final __test = new ResolutionCopierTest();
7412 runJUnitTest(__test, __test.test_visitPrefixExpression);
7413 });
7414 _ut.test('test_visitPrefixedIdentifier', () {
7415 final __test = new ResolutionCopierTest();
7416 runJUnitTest(__test, __test.test_visitPrefixedIdentifier);
7417 });
7418 _ut.test('test_visitPropertyAccess', () {
7419 final __test = new ResolutionCopierTest();
7420 runJUnitTest(__test, __test.test_visitPropertyAccess);
7421 });
7422 _ut.test('test_visitRedirectingConstructorInvocation', () {
7423 final __test = new ResolutionCopierTest();
7424 runJUnitTest(__test, __test.test_visitRedirectingConstructorInvocation);
7425 });
7426 _ut.test('test_visitRethrowExpression', () {
7427 final __test = new ResolutionCopierTest();
7428 runJUnitTest(__test, __test.test_visitRethrowExpression);
7429 });
7430 _ut.test('test_visitSimpleIdentifier', () {
7431 final __test = new ResolutionCopierTest();
7432 runJUnitTest(__test, __test.test_visitSimpleIdentifier);
7433 });
7434 _ut.test('test_visitSimpleStringLiteral', () {
7435 final __test = new ResolutionCopierTest();
7436 runJUnitTest(__test, __test.test_visitSimpleStringLiteral);
7437 });
7438 _ut.test('test_visitStringInterpolation', () {
7439 final __test = new ResolutionCopierTest();
7440 runJUnitTest(__test, __test.test_visitStringInterpolation);
7441 });
7442 _ut.test('test_visitSuperConstructorInvocation', () {
7443 final __test = new ResolutionCopierTest();
7444 runJUnitTest(__test, __test.test_visitSuperConstructorInvocation);
7445 });
7446 _ut.test('test_visitSuperExpression', () {
7447 final __test = new ResolutionCopierTest();
7448 runJUnitTest(__test, __test.test_visitSuperExpression);
7449 });
7450 _ut.test('test_visitSymbolLiteral', () {
7451 final __test = new ResolutionCopierTest();
7452 runJUnitTest(__test, __test.test_visitSymbolLiteral);
7453 });
7454 _ut.test('test_visitThisExpression', () {
7455 final __test = new ResolutionCopierTest();
7456 runJUnitTest(__test, __test.test_visitThisExpression);
7457 });
7458 _ut.test('test_visitThrowExpression', () {
7459 final __test = new ResolutionCopierTest();
7460 runJUnitTest(__test, __test.test_visitThrowExpression);
7461 });
7462 _ut.test('test_visitTypeName', () {
7463 final __test = new ResolutionCopierTest();
7464 runJUnitTest(__test, __test.test_visitTypeName);
7465 });
7466 });
7467 }
7468 }
6762 /** 7469 /**
6763 * The class `RecoveryParserTest` defines parser tests that test the parsing of invalid code 7470 * The class `RecoveryParserTest` defines parser tests that test the parsing of invalid code
6764 * sequences to ensure that the correct recovery steps are taken in the parser. 7471 * sequences to ensure that the correct recovery steps are taken in the parser.
6765 */ 7472 */
6766 class RecoveryParserTest extends ParserTestCase { 7473 class RecoveryParserTest extends ParserTestCase {
6767 void fail_incomplete_returnType() { 7474 void fail_incomplete_returnType() {
6768 ParserTestCase.parseCompilationUnit(EngineTestCase.createSource([ 7475 ParserTestCase.parseCompilationUnit(EngineTestCase.createSource([
6769 "Map<Symbol, convertStringToSymbolMap(Map<String, dynamic> map) {", 7476 "Map<Symbol, convertStringToSymbolMap(Map<String, dynamic> map) {",
6770 " if (map == null) return null;", 7477 " if (map == null) return null;",
6771 " Map<Symbol, dynamic> result = new Map<Symbol, dynamic>();", 7478 " Map<Symbol, dynamic> result = new Map<Symbol, dynamic>();",
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
7587 final __test = new RecoveryParserTest(); 8294 final __test = new RecoveryParserTest();
7588 runJUnitTest(__test, __test.test_shiftExpression_super); 8295 runJUnitTest(__test, __test.test_shiftExpression_super);
7589 }); 8296 });
7590 _ut.test('test_typedef_eof', () { 8297 _ut.test('test_typedef_eof', () {
7591 final __test = new RecoveryParserTest(); 8298 final __test = new RecoveryParserTest();
7592 runJUnitTest(__test, __test.test_typedef_eof); 8299 runJUnitTest(__test, __test.test_typedef_eof);
7593 }); 8300 });
7594 }); 8301 });
7595 } 8302 }
7596 } 8303 }
8304 class IncrementalParserTest extends EngineTestCase {
8305 void fail_reparse_oneFunctionToTwo() {
8306 assertParse("f() {}", "f() => 0; g() {}");
8307 }
8308 void test_reparse_addedAfterIdentifier1() {
8309 assertParse("f() => a + b;", "f() => abs + b;");
8310 }
8311 void test_reparse_addedAfterIdentifier2() {
8312 assertParse("f() => a + b;", "f() => a + bar;");
8313 }
8314 void test_resparse_addedBeforeIdentifier1() {
8315 assertParse("f() => a + b;", "f() => xa + b;");
8316 }
8317 void test_resparse_addedBeforeIdentifier2() {
8318 assertParse("f() => a + b;", "f() => a + xb;");
8319 }
8320 void test_resparse_addedNewIdentifier1() {
8321 assertParse("a; c;", "a; b c;");
8322 }
8323 void test_resparse_addedNewIdentifier2() {
8324 assertParse("a; c;", "a;b c;");
8325 }
8326 void test_resparse_appendWhitespace1() {
8327 assertParse("f() => a + b;", "f() => a + b; ");
8328 }
8329 void test_resparse_appendWhitespace2() {
8330 assertParse("f() => a + b;", "f() => a + b; ");
8331 }
8332 void test_resparse_insertedPeriod() {
8333 assertParse("f() => a + b;", "f() => a + b.;");
8334 }
8335 void test_resparse_insertWhitespace() {
8336 assertParse("f() => a + b;", "f() => a + b;");
8337 }
8338 void assertParse(String originalContents, String modifiedContents) {
8339 int originalLength = originalContents.length;
8340 int modifiedLength = modifiedContents.length;
8341 int replaceStart = 0;
8342 while (replaceStart < originalLength && replaceStart < modifiedLength && ori ginalContents.codeUnitAt(replaceStart) == modifiedContents.codeUnitAt(replaceSta rt)) {
8343 replaceStart++;
8344 }
8345 int lengthDelta = modifiedLength - originalLength;
8346 int originalEnd = originalLength - 1;
8347 int modifiedEnd = modifiedLength - 1;
8348 while (originalEnd >= replaceStart && modifiedEnd >= (replaceStart + lengthD elta) && originalContents.codeUnitAt(originalEnd) == modifiedContents.codeUnitAt (modifiedEnd)) {
8349 originalEnd--;
8350 modifiedEnd--;
8351 }
8352 Source source = new TestSource();
8353 GatheringErrorListener originalListener = new GatheringErrorListener();
8354 Scanner originalScanner = new Scanner(source, new CharSequenceReader(new Cha rSequence(originalContents)), originalListener);
8355 Token originalToken = originalScanner.tokenize();
8356 JUnitTestCase.assertNotNull(originalToken);
8357 Parser originalParser = new Parser(source, originalListener);
8358 CompilationUnit originalUnit = originalParser.parseCompilationUnit(originalT oken);
8359 JUnitTestCase.assertNotNull(originalUnit);
8360 GatheringErrorListener modifiedListener = new GatheringErrorListener();
8361 Scanner modifiedScanner = new Scanner(source, new CharSequenceReader(new Cha rSequence(modifiedContents)), modifiedListener);
8362 Token modifiedToken = modifiedScanner.tokenize();
8363 JUnitTestCase.assertNotNull(modifiedToken);
8364 Parser modifiedParser = new Parser(source, modifiedListener);
8365 CompilationUnit modifiedUnit = modifiedParser.parseCompilationUnit(modifiedT oken);
8366 JUnitTestCase.assertNotNull(modifiedUnit);
8367 GatheringErrorListener incrementalListener = new GatheringErrorListener();
8368 IncrementalScanner incrementalScanner = new IncrementalScanner(source, new C harSequenceReader(new CharSequence(modifiedContents)), incrementalListener);
8369 Token incrementalToken = incrementalScanner.rescan(originalToken, replaceSta rt, originalEnd - replaceStart + 1, modifiedEnd - replaceStart + 1);
8370 JUnitTestCase.assertNotNull(incrementalToken);
8371 IncrementalParser incrementalParser = new IncrementalParser(source, incremen talScanner.tokenMap, incrementalListener);
8372 CompilationUnit incrementalUnit = incrementalParser.reparse(originalUnit, in crementalScanner.firstToken, incrementalScanner.lastToken, replaceStart, origina lEnd);
8373 JUnitTestCase.assertNotNull(incrementalUnit);
8374 JUnitTestCase.assertTrue(ASTComparator.equals3(modifiedUnit, incrementalUnit ));
8375 }
8376 static dartSuite() {
8377 _ut.group('IncrementalParserTest', () {
8378 _ut.test('test_reparse_addedAfterIdentifier1', () {
8379 final __test = new IncrementalParserTest();
8380 runJUnitTest(__test, __test.test_reparse_addedAfterIdentifier1);
8381 });
8382 _ut.test('test_reparse_addedAfterIdentifier2', () {
8383 final __test = new IncrementalParserTest();
8384 runJUnitTest(__test, __test.test_reparse_addedAfterIdentifier2);
8385 });
8386 _ut.test('test_resparse_addedBeforeIdentifier1', () {
8387 final __test = new IncrementalParserTest();
8388 runJUnitTest(__test, __test.test_resparse_addedBeforeIdentifier1);
8389 });
8390 _ut.test('test_resparse_addedBeforeIdentifier2', () {
8391 final __test = new IncrementalParserTest();
8392 runJUnitTest(__test, __test.test_resparse_addedBeforeIdentifier2);
8393 });
8394 _ut.test('test_resparse_addedNewIdentifier1', () {
8395 final __test = new IncrementalParserTest();
8396 runJUnitTest(__test, __test.test_resparse_addedNewIdentifier1);
8397 });
8398 _ut.test('test_resparse_addedNewIdentifier2', () {
8399 final __test = new IncrementalParserTest();
8400 runJUnitTest(__test, __test.test_resparse_addedNewIdentifier2);
8401 });
8402 _ut.test('test_resparse_appendWhitespace1', () {
8403 final __test = new IncrementalParserTest();
8404 runJUnitTest(__test, __test.test_resparse_appendWhitespace1);
8405 });
8406 _ut.test('test_resparse_appendWhitespace2', () {
8407 final __test = new IncrementalParserTest();
8408 runJUnitTest(__test, __test.test_resparse_appendWhitespace2);
8409 });
8410 _ut.test('test_resparse_insertWhitespace', () {
8411 final __test = new IncrementalParserTest();
8412 runJUnitTest(__test, __test.test_resparse_insertWhitespace);
8413 });
8414 _ut.test('test_resparse_insertedPeriod', () {
8415 final __test = new IncrementalParserTest();
8416 runJUnitTest(__test, __test.test_resparse_insertedPeriod);
8417 });
8418 });
8419 }
8420 }
7597 /** 8421 /**
7598 * The class `ErrorParserTest` defines parser tests that test the parsing of cod e to ensure 8422 * The class `ErrorParserTest` defines parser tests that test the parsing of cod e to ensure
7599 * that errors are correctly reported, and in some cases, not reported. 8423 * that errors are correctly reported, and in some cases, not reported.
7600 */ 8424 */
7601 class ErrorParserTest extends ParserTestCase { 8425 class ErrorParserTest extends ParserTestCase {
7602 void fail_expectedListOrMapLiteral() { 8426 void fail_expectedListOrMapLiteral() {
7603 TypedLiteral literal = ParserTestCase.parse4("parseListOrMapLiteral", <Objec t> [null], "1", [ParserErrorCode.EXPECTED_LIST_OR_MAP_LITERAL]); 8427 TypedLiteral literal = ParserTestCase.parse4("parseListOrMapLiteral", <Objec t> [null], "1", [ParserErrorCode.EXPECTED_LIST_OR_MAP_LITERAL]);
7604 JUnitTestCase.assertTrue(literal.isSynthetic); 8428 JUnitTestCase.assertTrue(literal.isSynthetic);
7605 } 8429 }
7606 void fail_illegalAssignmentToNonAssignable_superAssigned() { 8430 void fail_illegalAssignmentToNonAssignable_superAssigned() {
(...skipping 1733 matching lines...) Expand 10 before | Expand all | Expand 10 after
9340 _ut.test('test_wrongTerminatorForParameterGroup_optional', () { 10164 _ut.test('test_wrongTerminatorForParameterGroup_optional', () {
9341 final __test = new ErrorParserTest(); 10165 final __test = new ErrorParserTest();
9342 runJUnitTest(__test, __test.test_wrongTerminatorForParameterGroup_option al); 10166 runJUnitTest(__test, __test.test_wrongTerminatorForParameterGroup_option al);
9343 }); 10167 });
9344 }); 10168 });
9345 } 10169 }
9346 } 10170 }
9347 main() { 10171 main() {
9348 ComplexParserTest.dartSuite(); 10172 ComplexParserTest.dartSuite();
9349 ErrorParserTest.dartSuite(); 10173 ErrorParserTest.dartSuite();
10174 IncrementalParserTest.dartSuite();
9350 RecoveryParserTest.dartSuite(); 10175 RecoveryParserTest.dartSuite();
10176 ResolutionCopierTest.dartSuite();
9351 SimpleParserTest.dartSuite(); 10177 SimpleParserTest.dartSuite();
9352 } 10178 }
9353 Map<String, MethodTrampoline> _methodTable_Parser = <String, MethodTrampoline> { 10179 Map<String, MethodTrampoline> _methodTable_Parser = <String, MethodTrampoline> {
9354 'parseCompilationUnit_1': new MethodTrampoline(1, (Parser target, arg0) => tar get.parseCompilationUnit(arg0)), 10180 'parseCompilationUnit_1': new MethodTrampoline(1, (Parser target, arg0) => tar get.parseCompilationUnit(arg0)),
9355 'parseExpression_1': new MethodTrampoline(1, (Parser target, arg0) => target.p arseExpression(arg0)), 10181 'parseExpression_1': new MethodTrampoline(1, (Parser target, arg0) => target.p arseExpression(arg0)),
9356 'parseStatement_1': new MethodTrampoline(1, (Parser target, arg0) => target.pa rseStatement(arg0)), 10182 'parseStatement_1': new MethodTrampoline(1, (Parser target, arg0) => target.pa rseStatement(arg0)),
9357 'parseStatements_1': new MethodTrampoline(1, (Parser target, arg0) => target.p arseStatements(arg0)), 10183 'parseStatements_1': new MethodTrampoline(1, (Parser target, arg0) => target.p arseStatements(arg0)),
10184 'parseAnnotation_0': new MethodTrampoline(0, (Parser target) => target.parseAn notation()),
10185 'parseArgument_0': new MethodTrampoline(0, (Parser target) => target.parseArgu ment()),
10186 'parseArgumentList_0': new MethodTrampoline(0, (Parser target) => target.parse ArgumentList()),
10187 'parseBitwiseOrExpression_0': new MethodTrampoline(0, (Parser target) => targe t.parseBitwiseOrExpression()),
10188 'parseBlock_0': new MethodTrampoline(0, (Parser target) => target.parseBlock() ),
10189 'parseClassMember_1': new MethodTrampoline(1, (Parser target, arg0) => target. parseClassMember(arg0)),
10190 'parseCompilationUnit_0': new MethodTrampoline(0, (Parser target) => target.pa rseCompilationUnit2()),
10191 'parseConditionalExpression_0': new MethodTrampoline(0, (Parser target) => tar get.parseConditionalExpression()),
10192 'parseConstructorName_0': new MethodTrampoline(0, (Parser target) => target.pa rseConstructorName()),
10193 'parseExpression_0': new MethodTrampoline(0, (Parser target) => target.parseEx pression2()),
10194 'parseExpressionWithoutCascade_0': new MethodTrampoline(0, (Parser target) => target.parseExpressionWithoutCascade()),
10195 'parseExtendsClause_0': new MethodTrampoline(0, (Parser target) => target.pars eExtendsClause()),
10196 'parseFormalParameterList_0': new MethodTrampoline(0, (Parser target) => targe t.parseFormalParameterList()),
10197 'parseFunctionExpression_0': new MethodTrampoline(0, (Parser target) => target .parseFunctionExpression()),
10198 'parseImplementsClause_0': new MethodTrampoline(0, (Parser target) => target.p arseImplementsClause()),
10199 'parseLabel_0': new MethodTrampoline(0, (Parser target) => target.parseLabel() ),
10200 'parseLibraryIdentifier_0': new MethodTrampoline(0, (Parser target) => target. parseLibraryIdentifier()),
10201 'parseLogicalOrExpression_0': new MethodTrampoline(0, (Parser target) => targe t.parseLogicalOrExpression()),
10202 'parseMapLiteralEntry_0': new MethodTrampoline(0, (Parser target) => target.pa rseMapLiteralEntry()),
10203 'parseNormalFormalParameter_0': new MethodTrampoline(0, (Parser target) => tar get.parseNormalFormalParameter()),
10204 'parsePrefixedIdentifier_0': new MethodTrampoline(0, (Parser target) => target .parsePrefixedIdentifier()),
10205 'parseReturnType_0': new MethodTrampoline(0, (Parser target) => target.parseRe turnType()),
10206 'parseSimpleIdentifier_0': new MethodTrampoline(0, (Parser target) => target.p arseSimpleIdentifier()),
10207 'parseStatement_0': new MethodTrampoline(0, (Parser target) => target.parseSta tement2()),
10208 'parseStringLiteral_0': new MethodTrampoline(0, (Parser target) => target.pars eStringLiteral()),
10209 'parseTypeArgumentList_0': new MethodTrampoline(0, (Parser target) => target.p arseTypeArgumentList()),
10210 'parseTypeName_0': new MethodTrampoline(0, (Parser target) => target.parseType Name()),
10211 'parseTypeParameter_0': new MethodTrampoline(0, (Parser target) => target.pars eTypeParameter()),
10212 'parseTypeParameterList_0': new MethodTrampoline(0, (Parser target) => target. parseTypeParameterList()),
10213 'parseWithClause_0': new MethodTrampoline(0, (Parser target) => target.parseWi thClause()),
9358 'advance_0': new MethodTrampoline(0, (Parser target) => target.advance()), 10214 'advance_0': new MethodTrampoline(0, (Parser target) => target.advance()),
9359 'appendScalarValue_5': new MethodTrampoline(5, (Parser target, arg0, arg1, arg 2, arg3, arg4) => target.appendScalarValue(arg0, arg1, arg2, arg3, arg4)), 10215 'appendScalarValue_5': new MethodTrampoline(5, (Parser target, arg0, arg1, arg 2, arg3, arg4) => target.appendScalarValue(arg0, arg1, arg2, arg3, arg4)),
9360 'computeStringValue_3': new MethodTrampoline(3, (Parser target, arg0, arg1, ar g2) => target.computeStringValue(arg0, arg1, arg2)), 10216 'computeStringValue_3': new MethodTrampoline(3, (Parser target, arg0, arg1, ar g2) => target.computeStringValue(arg0, arg1, arg2)),
9361 'convertToFunctionDeclaration_1': new MethodTrampoline(1, (Parser target, arg0 ) => target.convertToFunctionDeclaration(arg0)), 10217 'convertToFunctionDeclaration_1': new MethodTrampoline(1, (Parser target, arg0 ) => target.convertToFunctionDeclaration(arg0)),
9362 'couldBeStartOfCompilationUnitMember_0': new MethodTrampoline(0, (Parser targe t) => target.couldBeStartOfCompilationUnitMember()), 10218 'couldBeStartOfCompilationUnitMember_0': new MethodTrampoline(0, (Parser targe t) => target.couldBeStartOfCompilationUnitMember()),
9363 'createSyntheticIdentifier_0': new MethodTrampoline(0, (Parser target) => targ et.createSyntheticIdentifier()), 10219 'createSyntheticIdentifier_0': new MethodTrampoline(0, (Parser target) => targ et.createSyntheticIdentifier()),
9364 'createSyntheticStringLiteral_0': new MethodTrampoline(0, (Parser target) => t arget.createSyntheticStringLiteral()), 10220 'createSyntheticStringLiteral_0': new MethodTrampoline(0, (Parser target) => t arget.createSyntheticStringLiteral()),
9365 'createSyntheticToken_1': new MethodTrampoline(1, (Parser target, arg0) => tar get.createSyntheticToken(arg0)), 10221 'createSyntheticToken_1': new MethodTrampoline(1, (Parser target, arg0) => tar get.createSyntheticToken(arg0)),
9366 'ensureAssignable_1': new MethodTrampoline(1, (Parser target, arg0) => target. ensureAssignable(arg0)), 10222 'ensureAssignable_1': new MethodTrampoline(1, (Parser target, arg0) => target. ensureAssignable(arg0)),
9367 'expect_1': new MethodTrampoline(1, (Parser target, arg0) => target.expect(arg 0)), 10223 'expect_1': new MethodTrampoline(1, (Parser target, arg0) => target.expect(arg 0)),
(...skipping 11 matching lines...) Expand all
9379 'isSwitchMember_0': new MethodTrampoline(0, (Parser target) => target.isSwitch Member()), 10235 'isSwitchMember_0': new MethodTrampoline(0, (Parser target) => target.isSwitch Member()),
9380 'isTypedIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => target .isTypedIdentifier(arg0)), 10236 'isTypedIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => target .isTypedIdentifier(arg0)),
9381 'lexicallyFirst_1': new MethodTrampoline(1, (Parser target, arg0) => target.le xicallyFirst(arg0)), 10237 'lexicallyFirst_1': new MethodTrampoline(1, (Parser target, arg0) => target.le xicallyFirst(arg0)),
9382 'matches_1': new MethodTrampoline(1, (Parser target, arg0) => target.matches(a rg0)), 10238 'matches_1': new MethodTrampoline(1, (Parser target, arg0) => target.matches(a rg0)),
9383 'matches_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.mat ches3(arg0, arg1)), 10239 'matches_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.mat ches3(arg0, arg1)),
9384 'matchesAny_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target. matchesAny(arg0, arg1)), 10240 'matchesAny_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target. matchesAny(arg0, arg1)),
9385 'matchesIdentifier_0': new MethodTrampoline(0, (Parser target) => target.match esIdentifier()), 10241 'matchesIdentifier_0': new MethodTrampoline(0, (Parser target) => target.match esIdentifier()),
9386 'matchesIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => target .matchesIdentifier2(arg0)), 10242 'matchesIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => target .matchesIdentifier2(arg0)),
9387 'optional_1': new MethodTrampoline(1, (Parser target, arg0) => target.optional (arg0)), 10243 'optional_1': new MethodTrampoline(1, (Parser target, arg0) => target.optional (arg0)),
9388 'parseAdditiveExpression_0': new MethodTrampoline(0, (Parser target) => target .parseAdditiveExpression()), 10244 'parseAdditiveExpression_0': new MethodTrampoline(0, (Parser target) => target .parseAdditiveExpression()),
9389 'parseAnnotation_0': new MethodTrampoline(0, (Parser target) => target.parseAn notation()),
9390 'parseArgument_0': new MethodTrampoline(0, (Parser target) => target.parseArgu ment()),
9391 'parseArgumentDefinitionTest_0': new MethodTrampoline(0, (Parser target) => ta rget.parseArgumentDefinitionTest()), 10245 'parseArgumentDefinitionTest_0': new MethodTrampoline(0, (Parser target) => ta rget.parseArgumentDefinitionTest()),
9392 'parseArgumentList_0': new MethodTrampoline(0, (Parser target) => target.parse ArgumentList()),
9393 'parseAssertStatement_0': new MethodTrampoline(0, (Parser target) => target.pa rseAssertStatement()), 10246 'parseAssertStatement_0': new MethodTrampoline(0, (Parser target) => target.pa rseAssertStatement()),
9394 'parseAssignableExpression_1': new MethodTrampoline(1, (Parser target, arg0) = > target.parseAssignableExpression(arg0)), 10247 'parseAssignableExpression_1': new MethodTrampoline(1, (Parser target, arg0) = > target.parseAssignableExpression(arg0)),
9395 'parseAssignableSelector_2': new MethodTrampoline(2, (Parser target, arg0, arg 1) => target.parseAssignableSelector(arg0, arg1)), 10248 'parseAssignableSelector_2': new MethodTrampoline(2, (Parser target, arg0, arg 1) => target.parseAssignableSelector(arg0, arg1)),
9396 'parseBitwiseAndExpression_0': new MethodTrampoline(0, (Parser target) => targ et.parseBitwiseAndExpression()), 10249 'parseBitwiseAndExpression_0': new MethodTrampoline(0, (Parser target) => targ et.parseBitwiseAndExpression()),
9397 'parseBitwiseOrExpression_0': new MethodTrampoline(0, (Parser target) => targe t.parseBitwiseOrExpression()),
9398 'parseBitwiseXorExpression_0': new MethodTrampoline(0, (Parser target) => targ et.parseBitwiseXorExpression()), 10250 'parseBitwiseXorExpression_0': new MethodTrampoline(0, (Parser target) => targ et.parseBitwiseXorExpression()),
9399 'parseBlock_0': new MethodTrampoline(0, (Parser target) => target.parseBlock() ),
9400 'parseBreakStatement_0': new MethodTrampoline(0, (Parser target) => target.par seBreakStatement()), 10251 'parseBreakStatement_0': new MethodTrampoline(0, (Parser target) => target.par seBreakStatement()),
9401 'parseCascadeSection_0': new MethodTrampoline(0, (Parser target) => target.par seCascadeSection()), 10252 'parseCascadeSection_0': new MethodTrampoline(0, (Parser target) => target.par seCascadeSection()),
9402 'parseClassDeclaration_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.parseClassDeclaration(arg0, arg1)), 10253 'parseClassDeclaration_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.parseClassDeclaration(arg0, arg1)),
9403 'parseClassMember_1': new MethodTrampoline(1, (Parser target, arg0) => target. parseClassMember(arg0)),
9404 'parseClassMembers_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.parseClassMembers(arg0, arg1)), 10254 'parseClassMembers_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.parseClassMembers(arg0, arg1)),
9405 'parseClassTypeAlias_2': new MethodTrampoline(2, (Parser target, arg0, arg1) = > target.parseClassTypeAlias(arg0, arg1)), 10255 'parseClassTypeAlias_2': new MethodTrampoline(2, (Parser target, arg0, arg1) = > target.parseClassTypeAlias(arg0, arg1)),
9406 'parseCombinators_0': new MethodTrampoline(0, (Parser target) => target.parseC ombinators()), 10256 'parseCombinators_0': new MethodTrampoline(0, (Parser target) => target.parseC ombinators()),
9407 'parseCommentAndMetadata_0': new MethodTrampoline(0, (Parser target) => target .parseCommentAndMetadata()), 10257 'parseCommentAndMetadata_0': new MethodTrampoline(0, (Parser target) => target .parseCommentAndMetadata()),
9408 'parseCommentReference_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.parseCommentReference(arg0, arg1)), 10258 'parseCommentReference_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.parseCommentReference(arg0, arg1)),
9409 'parseCommentReferences_1': new MethodTrampoline(1, (Parser target, arg0) => t arget.parseCommentReferences(arg0)), 10259 'parseCommentReferences_1': new MethodTrampoline(1, (Parser target, arg0) => t arget.parseCommentReferences(arg0)),
9410 'parseCompilationUnit_0': new MethodTrampoline(0, (Parser target) => target.pa rseCompilationUnit2()),
9411 'parseCompilationUnitMember_1': new MethodTrampoline(1, (Parser target, arg0) => target.parseCompilationUnitMember(arg0)), 10260 'parseCompilationUnitMember_1': new MethodTrampoline(1, (Parser target, arg0) => target.parseCompilationUnitMember(arg0)),
9412 'parseConditionalExpression_0': new MethodTrampoline(0, (Parser target) => tar get.parseConditionalExpression()),
9413 'parseConstExpression_0': new MethodTrampoline(0, (Parser target) => target.pa rseConstExpression()), 10261 'parseConstExpression_0': new MethodTrampoline(0, (Parser target) => target.pa rseConstExpression()),
9414 'parseConstructor_8': new MethodTrampoline(8, (Parser target, arg0, arg1, arg2 , arg3, arg4, arg5, arg6, arg7) => target.parseConstructor(arg0, arg1, arg2, arg 3, arg4, arg5, arg6, arg7)), 10262 'parseConstructor_8': new MethodTrampoline(8, (Parser target, arg0, arg1, arg2 , arg3, arg4, arg5, arg6, arg7) => target.parseConstructor(arg0, arg1, arg2, arg 3, arg4, arg5, arg6, arg7)),
9415 'parseConstructorFieldInitializer_0': new MethodTrampoline(0, (Parser target) => target.parseConstructorFieldInitializer()), 10263 'parseConstructorFieldInitializer_0': new MethodTrampoline(0, (Parser target) => target.parseConstructorFieldInitializer()),
9416 'parseConstructorName_0': new MethodTrampoline(0, (Parser target) => target.pa rseConstructorName()),
9417 'parseContinueStatement_0': new MethodTrampoline(0, (Parser target) => target. parseContinueStatement()), 10264 'parseContinueStatement_0': new MethodTrampoline(0, (Parser target) => target. parseContinueStatement()),
9418 'parseDirective_1': new MethodTrampoline(1, (Parser target, arg0) => target.pa rseDirective(arg0)), 10265 'parseDirective_1': new MethodTrampoline(1, (Parser target, arg0) => target.pa rseDirective(arg0)),
9419 'parseDocumentationComment_0': new MethodTrampoline(0, (Parser target) => targ et.parseDocumentationComment()), 10266 'parseDocumentationComment_0': new MethodTrampoline(0, (Parser target) => targ et.parseDocumentationComment()),
9420 'parseDoStatement_0': new MethodTrampoline(0, (Parser target) => target.parseD oStatement()), 10267 'parseDoStatement_0': new MethodTrampoline(0, (Parser target) => target.parseD oStatement()),
9421 'parseEmptyStatement_0': new MethodTrampoline(0, (Parser target) => target.par seEmptyStatement()), 10268 'parseEmptyStatement_0': new MethodTrampoline(0, (Parser target) => target.par seEmptyStatement()),
9422 'parseEqualityExpression_0': new MethodTrampoline(0, (Parser target) => target .parseEqualityExpression()), 10269 'parseEqualityExpression_0': new MethodTrampoline(0, (Parser target) => target .parseEqualityExpression()),
9423 'parseExportDirective_1': new MethodTrampoline(1, (Parser target, arg0) => tar get.parseExportDirective(arg0)), 10270 'parseExportDirective_1': new MethodTrampoline(1, (Parser target, arg0) => tar get.parseExportDirective(arg0)),
9424 'parseExpression_0': new MethodTrampoline(0, (Parser target) => target.parseEx pression2()),
9425 'parseExpressionList_0': new MethodTrampoline(0, (Parser target) => target.par seExpressionList()), 10271 'parseExpressionList_0': new MethodTrampoline(0, (Parser target) => target.par seExpressionList()),
9426 'parseExpressionWithoutCascade_0': new MethodTrampoline(0, (Parser target) => target.parseExpressionWithoutCascade()),
9427 'parseExtendsClause_0': new MethodTrampoline(0, (Parser target) => target.pars eExtendsClause()),
9428 'parseFinalConstVarOrType_1': new MethodTrampoline(1, (Parser target, arg0) => target.parseFinalConstVarOrType(arg0)), 10272 'parseFinalConstVarOrType_1': new MethodTrampoline(1, (Parser target, arg0) => target.parseFinalConstVarOrType(arg0)),
9429 'parseFormalParameter_1': new MethodTrampoline(1, (Parser target, arg0) => tar get.parseFormalParameter(arg0)), 10273 'parseFormalParameter_1': new MethodTrampoline(1, (Parser target, arg0) => tar get.parseFormalParameter(arg0)),
9430 'parseFormalParameterList_0': new MethodTrampoline(0, (Parser target) => targe t.parseFormalParameterList()),
9431 'parseForStatement_0': new MethodTrampoline(0, (Parser target) => target.parse ForStatement()), 10274 'parseForStatement_0': new MethodTrampoline(0, (Parser target) => target.parse ForStatement()),
9432 'parseFunctionBody_3': new MethodTrampoline(3, (Parser target, arg0, arg1, arg 2) => target.parseFunctionBody(arg0, arg1, arg2)), 10275 'parseFunctionBody_3': new MethodTrampoline(3, (Parser target, arg0, arg1, arg 2) => target.parseFunctionBody(arg0, arg1, arg2)),
9433 'parseFunctionDeclaration_3': new MethodTrampoline(3, (Parser target, arg0, ar g1, arg2) => target.parseFunctionDeclaration(arg0, arg1, arg2)), 10276 'parseFunctionDeclaration_3': new MethodTrampoline(3, (Parser target, arg0, ar g1, arg2) => target.parseFunctionDeclaration(arg0, arg1, arg2)),
9434 'parseFunctionDeclarationStatement_0': new MethodTrampoline(0, (Parser target) => target.parseFunctionDeclarationStatement()), 10277 'parseFunctionDeclarationStatement_0': new MethodTrampoline(0, (Parser target) => target.parseFunctionDeclarationStatement()),
9435 'parseFunctionDeclarationStatement_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.parseFunctionDeclarationStatement2(arg0, arg1)), 10278 'parseFunctionDeclarationStatement_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.parseFunctionDeclarationStatement2(arg0, arg1)),
9436 'parseFunctionExpression_0': new MethodTrampoline(0, (Parser target) => target .parseFunctionExpression()),
9437 'parseFunctionTypeAlias_2': new MethodTrampoline(2, (Parser target, arg0, arg1 ) => target.parseFunctionTypeAlias(arg0, arg1)), 10279 'parseFunctionTypeAlias_2': new MethodTrampoline(2, (Parser target, arg0, arg1 ) => target.parseFunctionTypeAlias(arg0, arg1)),
9438 'parseGetter_4': new MethodTrampoline(4, (Parser target, arg0, arg1, arg2, arg 3) => target.parseGetter(arg0, arg1, arg2, arg3)), 10280 'parseGetter_4': new MethodTrampoline(4, (Parser target, arg0, arg1, arg2, arg 3) => target.parseGetter(arg0, arg1, arg2, arg3)),
9439 'parseIdentifierList_0': new MethodTrampoline(0, (Parser target) => target.par seIdentifierList()), 10281 'parseIdentifierList_0': new MethodTrampoline(0, (Parser target) => target.par seIdentifierList()),
9440 'parseIfStatement_0': new MethodTrampoline(0, (Parser target) => target.parseI fStatement()), 10282 'parseIfStatement_0': new MethodTrampoline(0, (Parser target) => target.parseI fStatement()),
9441 'parseImplementsClause_0': new MethodTrampoline(0, (Parser target) => target.p arseImplementsClause()),
9442 'parseImportDirective_1': new MethodTrampoline(1, (Parser target, arg0) => tar get.parseImportDirective(arg0)), 10283 'parseImportDirective_1': new MethodTrampoline(1, (Parser target, arg0) => tar get.parseImportDirective(arg0)),
9443 'parseInitializedIdentifierList_4': new MethodTrampoline(4, (Parser target, ar g0, arg1, arg2, arg3) => target.parseInitializedIdentifierList(arg0, arg1, arg2, arg3)), 10284 'parseInitializedIdentifierList_4': new MethodTrampoline(4, (Parser target, ar g0, arg1, arg2, arg3) => target.parseInitializedIdentifierList(arg0, arg1, arg2, arg3)),
9444 'parseInstanceCreationExpression_1': new MethodTrampoline(1, (Parser target, a rg0) => target.parseInstanceCreationExpression(arg0)), 10285 'parseInstanceCreationExpression_1': new MethodTrampoline(1, (Parser target, a rg0) => target.parseInstanceCreationExpression(arg0)),
9445 'parseLibraryDirective_1': new MethodTrampoline(1, (Parser target, arg0) => ta rget.parseLibraryDirective(arg0)), 10286 'parseLibraryDirective_1': new MethodTrampoline(1, (Parser target, arg0) => ta rget.parseLibraryDirective(arg0)),
9446 'parseLibraryIdentifier_0': new MethodTrampoline(0, (Parser target) => target. parseLibraryIdentifier()),
9447 'parseLibraryName_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => t arget.parseLibraryName(arg0, arg1)), 10287 'parseLibraryName_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => t arget.parseLibraryName(arg0, arg1)),
9448 'parseListLiteral_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => t arget.parseListLiteral(arg0, arg1)), 10288 'parseListLiteral_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => t arget.parseListLiteral(arg0, arg1)),
9449 'parseListOrMapLiteral_1': new MethodTrampoline(1, (Parser target, arg0) => ta rget.parseListOrMapLiteral(arg0)), 10289 'parseListOrMapLiteral_1': new MethodTrampoline(1, (Parser target, arg0) => ta rget.parseListOrMapLiteral(arg0)),
9450 'parseLogicalAndExpression_0': new MethodTrampoline(0, (Parser target) => targ et.parseLogicalAndExpression()), 10290 'parseLogicalAndExpression_0': new MethodTrampoline(0, (Parser target) => targ et.parseLogicalAndExpression()),
9451 'parseLogicalOrExpression_0': new MethodTrampoline(0, (Parser target) => targe t.parseLogicalOrExpression()),
9452 'parseMapLiteral_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => ta rget.parseMapLiteral(arg0, arg1)), 10291 'parseMapLiteral_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => ta rget.parseMapLiteral(arg0, arg1)),
9453 'parseMapLiteralEntry_0': new MethodTrampoline(0, (Parser target) => target.pa rseMapLiteralEntry()),
9454 'parseMethodDeclaration_4': new MethodTrampoline(4, (Parser target, arg0, arg1 , arg2, arg3) => target.parseMethodDeclaration(arg0, arg1, arg2, arg3)), 10292 'parseMethodDeclaration_4': new MethodTrampoline(4, (Parser target, arg0, arg1 , arg2, arg3) => target.parseMethodDeclaration(arg0, arg1, arg2, arg3)),
9455 'parseMethodDeclaration_6': new MethodTrampoline(6, (Parser target, arg0, arg1 , arg2, arg3, arg4, arg5) => target.parseMethodDeclaration2(arg0, arg1, arg2, ar g3, arg4, arg5)), 10293 'parseMethodDeclaration_6': new MethodTrampoline(6, (Parser target, arg0, arg1 , arg2, arg3, arg4, arg5) => target.parseMethodDeclaration2(arg0, arg1, arg2, ar g3, arg4, arg5)),
9456 'parseModifiers_0': new MethodTrampoline(0, (Parser target) => target.parseMod ifiers()), 10294 'parseModifiers_0': new MethodTrampoline(0, (Parser target) => target.parseMod ifiers()),
9457 'parseMultiplicativeExpression_0': new MethodTrampoline(0, (Parser target) => target.parseMultiplicativeExpression()), 10295 'parseMultiplicativeExpression_0': new MethodTrampoline(0, (Parser target) => target.parseMultiplicativeExpression()),
9458 'parseNativeClause_0': new MethodTrampoline(0, (Parser target) => target.parse NativeClause()), 10296 'parseNativeClause_0': new MethodTrampoline(0, (Parser target) => target.parse NativeClause()),
9459 'parseNewExpression_0': new MethodTrampoline(0, (Parser target) => target.pars eNewExpression()), 10297 'parseNewExpression_0': new MethodTrampoline(0, (Parser target) => target.pars eNewExpression()),
9460 'parseNonLabeledStatement_0': new MethodTrampoline(0, (Parser target) => targe t.parseNonLabeledStatement()), 10298 'parseNonLabeledStatement_0': new MethodTrampoline(0, (Parser target) => targe t.parseNonLabeledStatement()),
9461 'parseNormalFormalParameter_0': new MethodTrampoline(0, (Parser target) => tar get.parseNormalFormalParameter()),
9462 'parseOperator_3': new MethodTrampoline(3, (Parser target, arg0, arg1, arg2) = > target.parseOperator(arg0, arg1, arg2)), 10299 'parseOperator_3': new MethodTrampoline(3, (Parser target, arg0, arg1, arg2) = > target.parseOperator(arg0, arg1, arg2)),
9463 'parseOptionalReturnType_0': new MethodTrampoline(0, (Parser target) => target .parseOptionalReturnType()), 10300 'parseOptionalReturnType_0': new MethodTrampoline(0, (Parser target) => target .parseOptionalReturnType()),
9464 'parsePartDirective_1': new MethodTrampoline(1, (Parser target, arg0) => targe t.parsePartDirective(arg0)), 10301 'parsePartDirective_1': new MethodTrampoline(1, (Parser target, arg0) => targe t.parsePartDirective(arg0)),
9465 'parsePostfixExpression_0': new MethodTrampoline(0, (Parser target) => target. parsePostfixExpression()), 10302 'parsePostfixExpression_0': new MethodTrampoline(0, (Parser target) => target. parsePostfixExpression()),
9466 'parsePrefixedIdentifier_0': new MethodTrampoline(0, (Parser target) => target .parsePrefixedIdentifier()),
9467 'parsePrimaryExpression_0': new MethodTrampoline(0, (Parser target) => target. parsePrimaryExpression()), 10303 'parsePrimaryExpression_0': new MethodTrampoline(0, (Parser target) => target. parsePrimaryExpression()),
9468 'parseRedirectingConstructorInvocation_0': new MethodTrampoline(0, (Parser tar get) => target.parseRedirectingConstructorInvocation()), 10304 'parseRedirectingConstructorInvocation_0': new MethodTrampoline(0, (Parser tar get) => target.parseRedirectingConstructorInvocation()),
9469 'parseRelationalExpression_0': new MethodTrampoline(0, (Parser target) => targ et.parseRelationalExpression()), 10305 'parseRelationalExpression_0': new MethodTrampoline(0, (Parser target) => targ et.parseRelationalExpression()),
9470 'parseRethrowExpression_0': new MethodTrampoline(0, (Parser target) => target. parseRethrowExpression()), 10306 'parseRethrowExpression_0': new MethodTrampoline(0, (Parser target) => target. parseRethrowExpression()),
9471 'parseReturnStatement_0': new MethodTrampoline(0, (Parser target) => target.pa rseReturnStatement()), 10307 'parseReturnStatement_0': new MethodTrampoline(0, (Parser target) => target.pa rseReturnStatement()),
9472 'parseReturnType_0': new MethodTrampoline(0, (Parser target) => target.parseRe turnType()),
9473 'parseSetter_4': new MethodTrampoline(4, (Parser target, arg0, arg1, arg2, arg 3) => target.parseSetter(arg0, arg1, arg2, arg3)), 10308 'parseSetter_4': new MethodTrampoline(4, (Parser target, arg0, arg1, arg2, arg 3) => target.parseSetter(arg0, arg1, arg2, arg3)),
9474 'parseShiftExpression_0': new MethodTrampoline(0, (Parser target) => target.pa rseShiftExpression()), 10309 'parseShiftExpression_0': new MethodTrampoline(0, (Parser target) => target.pa rseShiftExpression()),
9475 'parseSimpleIdentifier_0': new MethodTrampoline(0, (Parser target) => target.p arseSimpleIdentifier()),
9476 'parseStatement_0': new MethodTrampoline(0, (Parser target) => target.parseSta tement2()),
9477 'parseStatements_0': new MethodTrampoline(0, (Parser target) => target.parseSt atements2()), 10310 'parseStatements_0': new MethodTrampoline(0, (Parser target) => target.parseSt atements2()),
9478 'parseStringInterpolation_1': new MethodTrampoline(1, (Parser target, arg0) => target.parseStringInterpolation(arg0)), 10311 'parseStringInterpolation_1': new MethodTrampoline(1, (Parser target, arg0) => target.parseStringInterpolation(arg0)),
9479 'parseStringLiteral_0': new MethodTrampoline(0, (Parser target) => target.pars eStringLiteral()),
9480 'parseSuperConstructorInvocation_0': new MethodTrampoline(0, (Parser target) = > target.parseSuperConstructorInvocation()), 10312 'parseSuperConstructorInvocation_0': new MethodTrampoline(0, (Parser target) = > target.parseSuperConstructorInvocation()),
9481 'parseSwitchStatement_0': new MethodTrampoline(0, (Parser target) => target.pa rseSwitchStatement()), 10313 'parseSwitchStatement_0': new MethodTrampoline(0, (Parser target) => target.pa rseSwitchStatement()),
9482 'parseSymbolLiteral_0': new MethodTrampoline(0, (Parser target) => target.pars eSymbolLiteral()), 10314 'parseSymbolLiteral_0': new MethodTrampoline(0, (Parser target) => target.pars eSymbolLiteral()),
9483 'parseThrowExpression_0': new MethodTrampoline(0, (Parser target) => target.pa rseThrowExpression()), 10315 'parseThrowExpression_0': new MethodTrampoline(0, (Parser target) => target.pa rseThrowExpression()),
9484 'parseThrowExpressionWithoutCascade_0': new MethodTrampoline(0, (Parser target ) => target.parseThrowExpressionWithoutCascade()), 10316 'parseThrowExpressionWithoutCascade_0': new MethodTrampoline(0, (Parser target ) => target.parseThrowExpressionWithoutCascade()),
9485 'parseTryStatement_0': new MethodTrampoline(0, (Parser target) => target.parse TryStatement()), 10317 'parseTryStatement_0': new MethodTrampoline(0, (Parser target) => target.parse TryStatement()),
9486 'parseTypeAlias_1': new MethodTrampoline(1, (Parser target, arg0) => target.pa rseTypeAlias(arg0)), 10318 'parseTypeAlias_1': new MethodTrampoline(1, (Parser target, arg0) => target.pa rseTypeAlias(arg0)),
9487 'parseTypeArgumentList_0': new MethodTrampoline(0, (Parser target) => target.p arseTypeArgumentList()),
9488 'parseTypeName_0': new MethodTrampoline(0, (Parser target) => target.parseType Name()),
9489 'parseTypeParameter_0': new MethodTrampoline(0, (Parser target) => target.pars eTypeParameter()),
9490 'parseTypeParameterList_0': new MethodTrampoline(0, (Parser target) => target. parseTypeParameterList()),
9491 'parseUnaryExpression_0': new MethodTrampoline(0, (Parser target) => target.pa rseUnaryExpression()), 10319 'parseUnaryExpression_0': new MethodTrampoline(0, (Parser target) => target.pa rseUnaryExpression()),
9492 'parseVariableDeclaration_0': new MethodTrampoline(0, (Parser target) => targe t.parseVariableDeclaration()), 10320 'parseVariableDeclaration_0': new MethodTrampoline(0, (Parser target) => targe t.parseVariableDeclaration()),
9493 'parseVariableDeclarationList_1': new MethodTrampoline(1, (Parser target, arg0 ) => target.parseVariableDeclarationList(arg0)), 10321 'parseVariableDeclarationList_1': new MethodTrampoline(1, (Parser target, arg0 ) => target.parseVariableDeclarationList(arg0)),
9494 'parseVariableDeclarationList_3': new MethodTrampoline(3, (Parser target, arg0 , arg1, arg2) => target.parseVariableDeclarationList2(arg0, arg1, arg2)), 10322 'parseVariableDeclarationList_3': new MethodTrampoline(3, (Parser target, arg0 , arg1, arg2) => target.parseVariableDeclarationList2(arg0, arg1, arg2)),
9495 'parseVariableDeclarationStatement_1': new MethodTrampoline(1, (Parser target, arg0) => target.parseVariableDeclarationStatement(arg0)), 10323 'parseVariableDeclarationStatement_1': new MethodTrampoline(1, (Parser target, arg0) => target.parseVariableDeclarationStatement(arg0)),
9496 'parseVariableDeclarationStatement_3': new MethodTrampoline(3, (Parser target, arg0, arg1, arg2) => target.parseVariableDeclarationStatement2(arg0, arg1, arg2 )), 10324 'parseVariableDeclarationStatement_3': new MethodTrampoline(3, (Parser target, arg0, arg1, arg2) => target.parseVariableDeclarationStatement2(arg0, arg1, arg2 )),
9497 'parseWhileStatement_0': new MethodTrampoline(0, (Parser target) => target.par seWhileStatement()), 10325 'parseWhileStatement_0': new MethodTrampoline(0, (Parser target) => target.par seWhileStatement()),
9498 'parseWithClause_0': new MethodTrampoline(0, (Parser target) => target.parseWi thClause()),
9499 'peek_0': new MethodTrampoline(0, (Parser target) => target.peek()), 10326 'peek_0': new MethodTrampoline(0, (Parser target) => target.peek()),
9500 'peek_1': new MethodTrampoline(1, (Parser target, arg0) => target.peek2(arg0)) , 10327 'peek_1': new MethodTrampoline(1, (Parser target, arg0) => target.peek2(arg0)) ,
9501 'reportError_3': new MethodTrampoline(3, (Parser target, arg0, arg1, arg2) => target.reportError(arg0, arg1, arg2)), 10328 'reportError_3': new MethodTrampoline(3, (Parser target, arg0, arg1, arg2) => target.reportError(arg0, arg1, arg2)),
9502 'reportError_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target .reportError8(arg0, arg1)), 10329 'reportError_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target .reportError8(arg0, arg1)),
9503 'scrapeTodoComment_1': new MethodTrampoline(1, (Parser target, arg0) => target .scrapeTodoComment(arg0)), 10330 'scrapeTodoComment_1': new MethodTrampoline(1, (Parser target, arg0) => target .scrapeTodoComment(arg0)),
9504 'skipFinalConstVarOrType_1': new MethodTrampoline(1, (Parser target, arg0) => target.skipFinalConstVarOrType(arg0)), 10331 'skipFinalConstVarOrType_1': new MethodTrampoline(1, (Parser target, arg0) => target.skipFinalConstVarOrType(arg0)),
9505 'skipFormalParameterList_1': new MethodTrampoline(1, (Parser target, arg0) => target.skipFormalParameterList(arg0)), 10332 'skipFormalParameterList_1': new MethodTrampoline(1, (Parser target, arg0) => target.skipFormalParameterList(arg0)),
9506 'skipPastMatchingToken_1': new MethodTrampoline(1, (Parser target, arg0) => ta rget.skipPastMatchingToken(arg0)), 10333 'skipPastMatchingToken_1': new MethodTrampoline(1, (Parser target, arg0) => ta rget.skipPastMatchingToken(arg0)),
9507 'skipPrefixedIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => t arget.skipPrefixedIdentifier(arg0)), 10334 'skipPrefixedIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => t arget.skipPrefixedIdentifier(arg0)),
9508 'skipReturnType_1': new MethodTrampoline(1, (Parser target, arg0) => target.sk ipReturnType(arg0)), 10335 'skipReturnType_1': new MethodTrampoline(1, (Parser target, arg0) => target.sk ipReturnType(arg0)),
(...skipping 15 matching lines...) Expand all
9524 'validateModifiersForTopLevelFunction_1': new MethodTrampoline(1, (Parser targ et, arg0) => target.validateModifiersForTopLevelFunction(arg0)), 10351 'validateModifiersForTopLevelFunction_1': new MethodTrampoline(1, (Parser targ et, arg0) => target.validateModifiersForTopLevelFunction(arg0)),
9525 'validateModifiersForTopLevelVariable_1': new MethodTrampoline(1, (Parser targ et, arg0) => target.validateModifiersForTopLevelVariable(arg0)), 10352 'validateModifiersForTopLevelVariable_1': new MethodTrampoline(1, (Parser targ et, arg0) => target.validateModifiersForTopLevelVariable(arg0)),
9526 'validateModifiersForTypedef_1': new MethodTrampoline(1, (Parser target, arg0) => target.validateModifiersForTypedef(arg0)),}; 10353 'validateModifiersForTypedef_1': new MethodTrampoline(1, (Parser target, arg0) => target.validateModifiersForTypedef(arg0)),};
9527 10354
9528 10355
9529 Object invokeParserMethodImpl(Parser parser, String methodName, List<Object> obj ects, Token tokenStream) { 10356 Object invokeParserMethodImpl(Parser parser, String methodName, List<Object> obj ects, Token tokenStream) {
9530 parser.currentToken = tokenStream; 10357 parser.currentToken = tokenStream;
9531 MethodTrampoline method = _methodTable_Parser['${methodName}_${objects.length} ']; 10358 MethodTrampoline method = _methodTable_Parser['${methodName}_${objects.length} '];
9532 return method.invoke(parser, objects); 10359 return method.invoke(parser, objects);
9533 } 10360 }
OLDNEW
« no previous file with comments | « dart/pkg/analyzer/pubspec.yaml ('k') | dart/pkg/analyzer/test/generated/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698