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

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

Issue 103233003: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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
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 3
4 library engine.parser_test; 4 library engine.parser_test;
5 5
6 import 'package:analyzer/src/generated/java_core.dart'; 6 import 'package:analyzer/src/generated/java_core.dart';
7 import 'package:analyzer/src/generated/java_junit.dart'; 7 import 'package:analyzer/src/generated/java_junit.dart';
8 import 'package:analyzer/src/generated/error.dart'; 8 import 'package:analyzer/src/generated/error.dart';
9 import 'package:analyzer/src/generated/source.dart' show Source; 9 import 'package:analyzer/src/generated/source.dart' show Source;
10 import 'package:analyzer/src/generated/scanner.dart'; 10 import 'package:analyzer/src/generated/scanner.dart';
(...skipping 4361 matching lines...) Expand 10 before | Expand all | Expand 10 after
4372 /** 4372 /**
4373 * Invoke the method [Parser#computeStringValue] with the given argument. 4373 * Invoke the method [Parser#computeStringValue] with the given argument.
4374 * 4374 *
4375 * @param lexeme the argument to the method 4375 * @param lexeme the argument to the method
4376 * @param first `true` if this is the first token in a string literal 4376 * @param first `true` if this is the first token in a string literal
4377 * @param last `true` if this is the last token in a string literal 4377 * @param last `true` if this is the last token in a string literal
4378 * @return the result of invoking the method 4378 * @return the result of invoking the method
4379 * @throws Exception if the method could not be invoked or throws an exception 4379 * @throws Exception if the method could not be invoked or throws an exception
4380 */ 4380 */
4381 String computeStringValue(String lexeme, bool first, bool last) { 4381 String computeStringValue(String lexeme, bool first, bool last) {
4382 AnalysisErrorListener listener = new AnalysisErrorListener_25(); 4382 AnalysisErrorListener listener = new AnalysisErrorListener_26();
4383 Parser parser = new Parser(null, listener); 4383 Parser parser = new Parser(null, listener);
4384 return invokeParserMethodImpl(parser, "computeStringValue", <Object> [lexeme , first, last], null) as String; 4384 return invokeParserMethodImpl(parser, "computeStringValue", <Object> [lexeme , first, last], null) as String;
4385 } 4385 }
4386 4386
4387 /** 4387 /**
4388 * Invoke the method [Parser#createSyntheticIdentifier] with the parser set to the token 4388 * Invoke the method [Parser#createSyntheticIdentifier] with the parser set to the token
4389 * stream produced by scanning the given source. 4389 * stream produced by scanning the given source.
4390 * 4390 *
4391 * @param source the source to be scanned to produce the token stream being te sted 4391 * @param source the source to be scanned to produce the token stream being te sted
4392 * @return the result of invoking the method 4392 * @return the result of invoking the method
(...skipping 2233 matching lines...) Expand 10 before | Expand all | Expand 10 after
6626 runJUnitTest(__test, __test.test_skipTypeName_parameterized); 6626 runJUnitTest(__test, __test.test_skipTypeName_parameterized);
6627 }); 6627 });
6628 _ut.test('test_skipTypeName_simple', () { 6628 _ut.test('test_skipTypeName_simple', () {
6629 final __test = new SimpleParserTest(); 6629 final __test = new SimpleParserTest();
6630 runJUnitTest(__test, __test.test_skipTypeName_simple); 6630 runJUnitTest(__test, __test.test_skipTypeName_simple);
6631 }); 6631 });
6632 }); 6632 });
6633 } 6633 }
6634 } 6634 }
6635 6635
6636 class AnalysisErrorListener_25 implements AnalysisErrorListener { 6636 class AnalysisErrorListener_26 implements AnalysisErrorListener {
6637 void onError(AnalysisError event) { 6637 void onError(AnalysisError event) {
6638 JUnitTestCase.fail("Unexpected compilation error: ${event.message} (${event. offset}, ${event.length})"); 6638 JUnitTestCase.fail("Unexpected compilation error: ${event.message} (${event. offset}, ${event.length})");
6639 } 6639 }
6640 } 6640 }
6641 6641
6642 class NonErrorParserTest extends ParserTestCase {
6643 void test_constFactory_external() {
6644 ParserTestCase.parse("parseClassMember", <Object> ["C"], "external const fac tory C();");
6645 }
6646
6647 static dartSuite() {
6648 _ut.group('NonErrorParserTest', () {
6649 _ut.test('test_constFactory_external', () {
6650 final __test = new NonErrorParserTest();
6651 runJUnitTest(__test, __test.test_constFactory_external);
6652 });
6653 });
6654 }
6655 }
6656
6642 /** 6657 /**
6643 * The class `ComplexParserTest` defines parser tests that test the parsing of m ore complex 6658 * The class `ComplexParserTest` defines parser tests that test the parsing of m ore complex
6644 * code fragments or the interactions between multiple parsing methods. For exam ple, tests to ensure 6659 * code fragments or the interactions between multiple parsing methods. For exam ple, tests to ensure
6645 * that the precedence of operations is being handled correctly should be define d in this class. 6660 * that the precedence of operations is being handled correctly should be define d in this class.
6646 * 6661 *
6647 * Simpler tests should be defined in the class [SimpleParserTest]. 6662 * Simpler tests should be defined in the class [SimpleParserTest].
6648 */ 6663 */
6649 class ComplexParserTest extends ParserTestCase { 6664 class ComplexParserTest extends ParserTestCase {
6650 void test_additiveExpression_normal() { 6665 void test_additiveExpression_normal() {
6651 BinaryExpression expression = ParserTestCase.parseExpression("x + y - z", [] ); 6666 BinaryExpression expression = ParserTestCase.parseExpression("x + y - z", [] );
(...skipping 2417 matching lines...) Expand 10 before | Expand all | Expand 10 after
9069 }); 9084 });
9070 _ut.test('test_typedef_eof', () { 9085 _ut.test('test_typedef_eof', () {
9071 final __test = new RecoveryParserTest(); 9086 final __test = new RecoveryParserTest();
9072 runJUnitTest(__test, __test.test_typedef_eof); 9087 runJUnitTest(__test, __test.test_typedef_eof);
9073 }); 9088 });
9074 }); 9089 });
9075 } 9090 }
9076 } 9091 }
9077 9092
9078 class IncrementalParserTest extends EngineTestCase { 9093 class IncrementalParserTest extends EngineTestCase {
9079 void fail_delete_identifier_beginning() { 9094 void fail_delete_everything() {
9095 assertParse("", "f() => a + b;", "", "");
9096 }
9097
9098 void test_delete_identifier_beginning() {
9080 assertParse("f() => ", "ab", "", "s + b;"); 9099 assertParse("f() => ", "ab", "", "s + b;");
9081 } 9100 }
9082 9101
9083 void fail_delete_mergeTokens() {
9084 assertParse("f() => a", " + b + ", "", "c;");
9085 }
9086
9087 void fail_insert_convertOneFunctionToTwo() {
9088 assertParse("f()", "", " => 0; g()", " {}");
9089 }
9090
9091 void fail_insert_period_betweenIdentifiers1() {
9092 assertParse("f() => a", "", ".", " b;");
9093 }
9094
9095 void fail_replace_multiple_partialFirstAndLast() {
9096 assertParse("f() => a", "a + b", "b * a", "b;");
9097 }
9098
9099 void test_delete_identifier_end() { 9102 void test_delete_identifier_end() {
9100 assertParse("f() => a", "bs", "", " + b;"); 9103 assertParse("f() => a", "bs", "", " + b;");
9101 } 9104 }
9102 9105
9103 void test_delete_identifier_middle() { 9106 void test_delete_identifier_middle() {
9104 assertParse("f() => a", "b", "", "s + b;"); 9107 assertParse("f() => a", "b", "", "s + b;");
9105 } 9108 }
9106 9109
9110 void test_delete_mergeTokens() {
9111 assertParse("f() => a", " + b + ", "", "c;");
9112 }
9113
9107 void test_insert_afterIdentifier1() { 9114 void test_insert_afterIdentifier1() {
9108 assertParse("f() => a", "", "bs", " + b;"); 9115 assertParse("f() => a", "", "bs", " + b;");
9109 } 9116 }
9110 9117
9111 void test_insert_afterIdentifier2() { 9118 void test_insert_afterIdentifier2() {
9112 assertParse("f() => a + b", "", "ar", ";"); 9119 assertParse("f() => a + b", "", "ar", ";");
9113 } 9120 }
9114 9121
9115 void test_insert_beforeIdentifier1() { 9122 void test_insert_beforeIdentifier1() {
9116 assertParse("f() => ", "", "x", "a + b;"); 9123 assertParse("f() => ", "", "x", "a + b;");
9117 } 9124 }
9118 9125
9119 void test_insert_beforeIdentifier2() { 9126 void test_insert_beforeIdentifier2() {
9120 assertParse("f() => a + ", "", "x", "b;"); 9127 assertParse("f() => a + ", "", "x", "b;");
9121 } 9128 }
9122 9129
9130 void test_insert_convertOneFunctionToTwo() {
9131 assertParse("f()", "", " => 0; g()", " {}");
9132 }
9133
9134 void test_insert_end() {
9135 assertParse("class A {}", "", " class B {}", "");
9136 }
9137
9138 void test_insert_insideIdentifier() {
9139 assertParse("f() => co", "", "w.", "b;");
9140 }
9141
9123 void test_insert_newIdentifier1() { 9142 void test_insert_newIdentifier1() {
9124 assertParse("f() => a;", "", " b", " c;"); 9143 assertParse("f() => a;", "", " b", " c;");
9125 } 9144 }
9126 9145
9127 void test_insert_newIdentifier2() { 9146 void test_insert_newIdentifier2() {
9128 assertParse("f() => a;", "", "b", " c;"); 9147 assertParse("f() => a;", "", "b", " c;");
9129 } 9148 }
9130 9149
9131 void test_insert_period() { 9150 void test_insert_period() {
9132 assertParse("f() => a + b", "", ".", ";"); 9151 assertParse("f() => a + b", "", ".", ";");
9133 } 9152 }
9134 9153
9154 void test_insert_period_betweenIdentifiers1() {
9155 assertParse("f() => a", "", ".", " b;");
9156 }
9157
9135 void test_insert_period_betweenIdentifiers2() { 9158 void test_insert_period_betweenIdentifiers2() {
9136 assertParse("f() => a ", "", ".", "b;"); 9159 assertParse("f() => a ", "", ".", "b;");
9137 } 9160 }
9138 9161
9139 void test_insert_period_betweenIdentifiers3() { 9162 void test_insert_period_betweenIdentifiers3() {
9140 assertParse("f() => a ", "", ".", " b;"); 9163 assertParse("f() => a ", "", ".", " b;");
9141 } 9164 }
9142 9165
9143 void test_insert_period_insideExistingIdentifier() { 9166 void test_insert_period_insideExistingIdentifier() {
9144 assertParse("f() => a", "", ".", "b;"); 9167 assertParse("f() => a", "", ".", "b;");
(...skipping 20 matching lines...) Expand all
9165 } 9188 }
9166 9189
9167 void test_replace_identifier_end() { 9190 void test_replace_identifier_end() {
9168 assertParse("f() => bel", "l", "t", " + b;"); 9191 assertParse("f() => bel", "l", "t", " + b;");
9169 } 9192 }
9170 9193
9171 void test_replace_identifier_middle() { 9194 void test_replace_identifier_middle() {
9172 assertParse("f() => f", "ir", "ro", "st + b;"); 9195 assertParse("f() => f", "ir", "ro", "st + b;");
9173 } 9196 }
9174 9197
9198 void test_replace_multiple_partialFirstAndLast() {
9199 assertParse("f() => a", "a + b", "b * a", "b;");
9200 }
9201
9175 void test_replace_operator_oneForMany() { 9202 void test_replace_operator_oneForMany() {
9176 assertParse("f() => a ", "+", "* c -", " b;"); 9203 assertParse("f() => a ", "+", "* c -", " b;");
9177 } 9204 }
9178 9205
9179 void test_replace_operator_oneForOne() { 9206 void test_replace_operator_oneForOne() {
9180 assertParse("f() => a ", "+", "*", " b;"); 9207 assertParse("f() => a ", "+", "*", " b;");
9181 } 9208 }
9182 9209
9183 /** 9210 /**
9184 * Given a description of the original and modified contents, perform an incre mental scan of the 9211 * Given a description of the original and modified contents, perform an incre mental scan of the
(...skipping 21 matching lines...) Expand all
9206 Token modifiedTokens = modifiedScanner.tokenize(); 9233 Token modifiedTokens = modifiedScanner.tokenize();
9207 JUnitTestCase.assertNotNull(modifiedTokens); 9234 JUnitTestCase.assertNotNull(modifiedTokens);
9208 Parser modifiedParser = new Parser(source, modifiedListener); 9235 Parser modifiedParser = new Parser(source, modifiedListener);
9209 CompilationUnit modifiedUnit = modifiedParser.parseCompilationUnit(modifiedT okens); 9236 CompilationUnit modifiedUnit = modifiedParser.parseCompilationUnit(modifiedT okens);
9210 JUnitTestCase.assertNotNull(modifiedUnit); 9237 JUnitTestCase.assertNotNull(modifiedUnit);
9211 GatheringErrorListener incrementalListener = new GatheringErrorListener(); 9238 GatheringErrorListener incrementalListener = new GatheringErrorListener();
9212 IncrementalScanner incrementalScanner = new IncrementalScanner(source, new C harSequenceReader(new CharSequence(modifiedContents)), incrementalListener); 9239 IncrementalScanner incrementalScanner = new IncrementalScanner(source, new C harSequenceReader(new CharSequence(modifiedContents)), incrementalListener);
9213 Token incrementalTokens = incrementalScanner.rescan(originalTokens, replaceS tart, removed.length, added.length); 9240 Token incrementalTokens = incrementalScanner.rescan(originalTokens, replaceS tart, removed.length, added.length);
9214 JUnitTestCase.assertNotNull(incrementalTokens); 9241 JUnitTestCase.assertNotNull(incrementalTokens);
9215 IncrementalParser incrementalParser = new IncrementalParser(source, incremen talScanner.tokenMap, incrementalListener); 9242 IncrementalParser incrementalParser = new IncrementalParser(source, incremen talScanner.tokenMap, incrementalListener);
9216 CompilationUnit incrementalUnit = incrementalParser.reparse(originalUnit, in crementalScanner.firstToken, incrementalScanner.lastToken, replaceStart, prefix. length + removed.length); 9243 CompilationUnit incrementalUnit = incrementalParser.reparse(originalUnit, in crementalScanner.leftToken, incrementalScanner.rightToken, replaceStart, prefix. length + removed.length);
9217 JUnitTestCase.assertNotNull(incrementalUnit); 9244 JUnitTestCase.assertNotNull(incrementalUnit);
9218 JUnitTestCase.assertTrue(ASTComparator.equals3(modifiedUnit, incrementalUnit )); 9245 JUnitTestCase.assertTrue(ASTComparator.equals4(modifiedUnit, incrementalUnit ));
9219 } 9246 }
9220 9247
9221 static dartSuite() { 9248 static dartSuite() {
9222 _ut.group('IncrementalParserTest', () { 9249 _ut.group('IncrementalParserTest', () {
9250 _ut.test('test_delete_identifier_beginning', () {
9251 final __test = new IncrementalParserTest();
9252 runJUnitTest(__test, __test.test_delete_identifier_beginning);
9253 });
9223 _ut.test('test_delete_identifier_end', () { 9254 _ut.test('test_delete_identifier_end', () {
9224 final __test = new IncrementalParserTest(); 9255 final __test = new IncrementalParserTest();
9225 runJUnitTest(__test, __test.test_delete_identifier_end); 9256 runJUnitTest(__test, __test.test_delete_identifier_end);
9226 }); 9257 });
9227 _ut.test('test_delete_identifier_middle', () { 9258 _ut.test('test_delete_identifier_middle', () {
9228 final __test = new IncrementalParserTest(); 9259 final __test = new IncrementalParserTest();
9229 runJUnitTest(__test, __test.test_delete_identifier_middle); 9260 runJUnitTest(__test, __test.test_delete_identifier_middle);
9230 }); 9261 });
9262 _ut.test('test_delete_mergeTokens', () {
9263 final __test = new IncrementalParserTest();
9264 runJUnitTest(__test, __test.test_delete_mergeTokens);
9265 });
9231 _ut.test('test_insert_afterIdentifier1', () { 9266 _ut.test('test_insert_afterIdentifier1', () {
9232 final __test = new IncrementalParserTest(); 9267 final __test = new IncrementalParserTest();
9233 runJUnitTest(__test, __test.test_insert_afterIdentifier1); 9268 runJUnitTest(__test, __test.test_insert_afterIdentifier1);
9234 }); 9269 });
9235 _ut.test('test_insert_afterIdentifier2', () { 9270 _ut.test('test_insert_afterIdentifier2', () {
9236 final __test = new IncrementalParserTest(); 9271 final __test = new IncrementalParserTest();
9237 runJUnitTest(__test, __test.test_insert_afterIdentifier2); 9272 runJUnitTest(__test, __test.test_insert_afterIdentifier2);
9238 }); 9273 });
9239 _ut.test('test_insert_beforeIdentifier1', () { 9274 _ut.test('test_insert_beforeIdentifier1', () {
9240 final __test = new IncrementalParserTest(); 9275 final __test = new IncrementalParserTest();
9241 runJUnitTest(__test, __test.test_insert_beforeIdentifier1); 9276 runJUnitTest(__test, __test.test_insert_beforeIdentifier1);
9242 }); 9277 });
9243 _ut.test('test_insert_beforeIdentifier2', () { 9278 _ut.test('test_insert_beforeIdentifier2', () {
9244 final __test = new IncrementalParserTest(); 9279 final __test = new IncrementalParserTest();
9245 runJUnitTest(__test, __test.test_insert_beforeIdentifier2); 9280 runJUnitTest(__test, __test.test_insert_beforeIdentifier2);
9246 }); 9281 });
9282 _ut.test('test_insert_convertOneFunctionToTwo', () {
9283 final __test = new IncrementalParserTest();
9284 runJUnitTest(__test, __test.test_insert_convertOneFunctionToTwo);
9285 });
9286 _ut.test('test_insert_end', () {
9287 final __test = new IncrementalParserTest();
9288 runJUnitTest(__test, __test.test_insert_end);
9289 });
9290 _ut.test('test_insert_insideIdentifier', () {
9291 final __test = new IncrementalParserTest();
9292 runJUnitTest(__test, __test.test_insert_insideIdentifier);
9293 });
9247 _ut.test('test_insert_newIdentifier1', () { 9294 _ut.test('test_insert_newIdentifier1', () {
9248 final __test = new IncrementalParserTest(); 9295 final __test = new IncrementalParserTest();
9249 runJUnitTest(__test, __test.test_insert_newIdentifier1); 9296 runJUnitTest(__test, __test.test_insert_newIdentifier1);
9250 }); 9297 });
9251 _ut.test('test_insert_newIdentifier2', () { 9298 _ut.test('test_insert_newIdentifier2', () {
9252 final __test = new IncrementalParserTest(); 9299 final __test = new IncrementalParserTest();
9253 runJUnitTest(__test, __test.test_insert_newIdentifier2); 9300 runJUnitTest(__test, __test.test_insert_newIdentifier2);
9254 }); 9301 });
9255 _ut.test('test_insert_period', () { 9302 _ut.test('test_insert_period', () {
9256 final __test = new IncrementalParserTest(); 9303 final __test = new IncrementalParserTest();
9257 runJUnitTest(__test, __test.test_insert_period); 9304 runJUnitTest(__test, __test.test_insert_period);
9258 }); 9305 });
9259 _ut.test('test_insert_periodAndIdentifier', () { 9306 _ut.test('test_insert_periodAndIdentifier', () {
9260 final __test = new IncrementalParserTest(); 9307 final __test = new IncrementalParserTest();
9261 runJUnitTest(__test, __test.test_insert_periodAndIdentifier); 9308 runJUnitTest(__test, __test.test_insert_periodAndIdentifier);
9262 }); 9309 });
9310 _ut.test('test_insert_period_betweenIdentifiers1', () {
9311 final __test = new IncrementalParserTest();
9312 runJUnitTest(__test, __test.test_insert_period_betweenIdentifiers1);
9313 });
9263 _ut.test('test_insert_period_betweenIdentifiers2', () { 9314 _ut.test('test_insert_period_betweenIdentifiers2', () {
9264 final __test = new IncrementalParserTest(); 9315 final __test = new IncrementalParserTest();
9265 runJUnitTest(__test, __test.test_insert_period_betweenIdentifiers2); 9316 runJUnitTest(__test, __test.test_insert_period_betweenIdentifiers2);
9266 }); 9317 });
9267 _ut.test('test_insert_period_betweenIdentifiers3', () { 9318 _ut.test('test_insert_period_betweenIdentifiers3', () {
9268 final __test = new IncrementalParserTest(); 9319 final __test = new IncrementalParserTest();
9269 runJUnitTest(__test, __test.test_insert_period_betweenIdentifiers3); 9320 runJUnitTest(__test, __test.test_insert_period_betweenIdentifiers3);
9270 }); 9321 });
9271 _ut.test('test_insert_period_insideExistingIdentifier', () { 9322 _ut.test('test_insert_period_insideExistingIdentifier', () {
9272 final __test = new IncrementalParserTest(); 9323 final __test = new IncrementalParserTest();
(...skipping 16 matching lines...) Expand all
9289 runJUnitTest(__test, __test.test_replace_identifier_beginning); 9340 runJUnitTest(__test, __test.test_replace_identifier_beginning);
9290 }); 9341 });
9291 _ut.test('test_replace_identifier_end', () { 9342 _ut.test('test_replace_identifier_end', () {
9292 final __test = new IncrementalParserTest(); 9343 final __test = new IncrementalParserTest();
9293 runJUnitTest(__test, __test.test_replace_identifier_end); 9344 runJUnitTest(__test, __test.test_replace_identifier_end);
9294 }); 9345 });
9295 _ut.test('test_replace_identifier_middle', () { 9346 _ut.test('test_replace_identifier_middle', () {
9296 final __test = new IncrementalParserTest(); 9347 final __test = new IncrementalParserTest();
9297 runJUnitTest(__test, __test.test_replace_identifier_middle); 9348 runJUnitTest(__test, __test.test_replace_identifier_middle);
9298 }); 9349 });
9350 _ut.test('test_replace_multiple_partialFirstAndLast', () {
9351 final __test = new IncrementalParserTest();
9352 runJUnitTest(__test, __test.test_replace_multiple_partialFirstAndLast);
9353 });
9299 _ut.test('test_replace_operator_oneForMany', () { 9354 _ut.test('test_replace_operator_oneForMany', () {
9300 final __test = new IncrementalParserTest(); 9355 final __test = new IncrementalParserTest();
9301 runJUnitTest(__test, __test.test_replace_operator_oneForMany); 9356 runJUnitTest(__test, __test.test_replace_operator_oneForMany);
9302 }); 9357 });
9303 _ut.test('test_replace_operator_oneForOne', () { 9358 _ut.test('test_replace_operator_oneForOne', () {
9304 final __test = new IncrementalParserTest(); 9359 final __test = new IncrementalParserTest();
9305 runJUnitTest(__test, __test.test_replace_operator_oneForOne); 9360 runJUnitTest(__test, __test.test_replace_operator_oneForOne);
9306 }); 9361 });
9307 }); 9362 });
9308 } 9363 }
(...skipping 1998 matching lines...) Expand 10 before | Expand all | Expand 10 after
11307 runJUnitTest(__test, __test.test_wrongTerminatorForParameterGroup_option al); 11362 runJUnitTest(__test, __test.test_wrongTerminatorForParameterGroup_option al);
11308 }); 11363 });
11309 }); 11364 });
11310 } 11365 }
11311 } 11366 }
11312 11367
11313 main() { 11368 main() {
11314 ComplexParserTest.dartSuite(); 11369 ComplexParserTest.dartSuite();
11315 ErrorParserTest.dartSuite(); 11370 ErrorParserTest.dartSuite();
11316 IncrementalParserTest.dartSuite(); 11371 IncrementalParserTest.dartSuite();
11372 NonErrorParserTest.dartSuite();
11317 RecoveryParserTest.dartSuite(); 11373 RecoveryParserTest.dartSuite();
11318 ResolutionCopierTest.dartSuite(); 11374 ResolutionCopierTest.dartSuite();
11319 SimpleParserTest.dartSuite(); 11375 SimpleParserTest.dartSuite();
11320 } 11376 }
11321 Map<String, MethodTrampoline> _methodTable_Parser = <String, MethodTrampoline> { 11377 Map<String, MethodTrampoline> _methodTable_Parser = <String, MethodTrampoline> {
11322 'parseCompilationUnit_1': new MethodTrampoline(1, (Parser target, arg0) => tar get.parseCompilationUnit(arg0)), 11378 'parseCompilationUnit_1': new MethodTrampoline(1, (Parser target, arg0) => tar get.parseCompilationUnit(arg0)),
11323 'parseExpression_1': new MethodTrampoline(1, (Parser target, arg0) => target.p arseExpression(arg0)), 11379 'parseExpression_1': new MethodTrampoline(1, (Parser target, arg0) => target.p arseExpression(arg0)),
11324 'parseStatement_1': new MethodTrampoline(1, (Parser target, arg0) => target.pa rseStatement(arg0)), 11380 'parseStatement_1': new MethodTrampoline(1, (Parser target, arg0) => target.pa rseStatement(arg0)),
11325 'parseStatements_1': new MethodTrampoline(1, (Parser target, arg0) => target.p arseStatements(arg0)), 11381 'parseStatements_1': new MethodTrampoline(1, (Parser target, arg0) => target.p arseStatements(arg0)),
11326 'parseAnnotation_0': new MethodTrampoline(0, (Parser target) => target.parseAn notation()), 11382 'parseAnnotation_0': new MethodTrampoline(0, (Parser target) => target.parseAn notation()),
(...skipping 30 matching lines...) Expand all
11357 'appendScalarValue_5': new MethodTrampoline(5, (Parser target, arg0, arg1, arg 2, arg3, arg4) => target.appendScalarValue(arg0, arg1, arg2, arg3, arg4)), 11413 'appendScalarValue_5': new MethodTrampoline(5, (Parser target, arg0, arg1, arg 2, arg3, arg4) => target.appendScalarValue(arg0, arg1, arg2, arg3, arg4)),
11358 'computeStringValue_3': new MethodTrampoline(3, (Parser target, arg0, arg1, ar g2) => target.computeStringValue(arg0, arg1, arg2)), 11414 'computeStringValue_3': new MethodTrampoline(3, (Parser target, arg0, arg1, ar g2) => target.computeStringValue(arg0, arg1, arg2)),
11359 'convertToFunctionDeclaration_1': new MethodTrampoline(1, (Parser target, arg0 ) => target.convertToFunctionDeclaration(arg0)), 11415 'convertToFunctionDeclaration_1': new MethodTrampoline(1, (Parser target, arg0 ) => target.convertToFunctionDeclaration(arg0)),
11360 'couldBeStartOfCompilationUnitMember_0': new MethodTrampoline(0, (Parser targe t) => target.couldBeStartOfCompilationUnitMember()), 11416 'couldBeStartOfCompilationUnitMember_0': new MethodTrampoline(0, (Parser targe t) => target.couldBeStartOfCompilationUnitMember()),
11361 'createSyntheticIdentifier_0': new MethodTrampoline(0, (Parser target) => targ et.createSyntheticIdentifier()), 11417 'createSyntheticIdentifier_0': new MethodTrampoline(0, (Parser target) => targ et.createSyntheticIdentifier()),
11362 'createSyntheticStringLiteral_0': new MethodTrampoline(0, (Parser target) => t arget.createSyntheticStringLiteral()), 11418 'createSyntheticStringLiteral_0': new MethodTrampoline(0, (Parser target) => t arget.createSyntheticStringLiteral()),
11363 'createSyntheticToken_1': new MethodTrampoline(1, (Parser target, arg0) => tar get.createSyntheticToken(arg0)), 11419 'createSyntheticToken_1': new MethodTrampoline(1, (Parser target, arg0) => tar get.createSyntheticToken(arg0)),
11364 'ensureAssignable_1': new MethodTrampoline(1, (Parser target, arg0) => target. ensureAssignable(arg0)), 11420 'ensureAssignable_1': new MethodTrampoline(1, (Parser target, arg0) => target. ensureAssignable(arg0)),
11365 'expect_1': new MethodTrampoline(1, (Parser target, arg0) => target.expect(arg 0)), 11421 'expect_1': new MethodTrampoline(1, (Parser target, arg0) => target.expect(arg 0)),
11366 'findRange_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.f indRange(arg0, arg1)), 11422 'findRange_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target.f indRange(arg0, arg1)),
11367 'gatherTodoComments_1': new MethodTrampoline(1, (Parser target, arg0) => targe t.gatherTodoComments(arg0)),
11368 'getCodeBlockRanges_1': new MethodTrampoline(1, (Parser target, arg0) => targe t.getCodeBlockRanges(arg0)), 11423 'getCodeBlockRanges_1': new MethodTrampoline(1, (Parser target, arg0) => targe t.getCodeBlockRanges(arg0)),
11369 'getEndToken_1': new MethodTrampoline(1, (Parser target, arg0) => target.getEn dToken(arg0)), 11424 'getEndToken_1': new MethodTrampoline(1, (Parser target, arg0) => target.getEn dToken(arg0)),
11370 'hasReturnTypeInTypeAlias_0': new MethodTrampoline(0, (Parser target) => targe t.hasReturnTypeInTypeAlias()), 11425 'hasReturnTypeInTypeAlias_0': new MethodTrampoline(0, (Parser target) => targe t.hasReturnTypeInTypeAlias()),
11426 'injectToken_1': new MethodTrampoline(1, (Parser target, arg0) => target.injec tToken(arg0)),
11371 'isFunctionDeclaration_0': new MethodTrampoline(0, (Parser target) => target.i sFunctionDeclaration()), 11427 'isFunctionDeclaration_0': new MethodTrampoline(0, (Parser target) => target.i sFunctionDeclaration()),
11372 'isFunctionExpression_1': new MethodTrampoline(1, (Parser target, arg0) => tar get.isFunctionExpression(arg0)), 11428 'isFunctionExpression_1': new MethodTrampoline(1, (Parser target, arg0) => tar get.isFunctionExpression(arg0)),
11373 'isHexDigit_1': new MethodTrampoline(1, (Parser target, arg0) => target.isHexD igit(arg0)), 11429 'isHexDigit_1': new MethodTrampoline(1, (Parser target, arg0) => target.isHexD igit(arg0)),
11374 'isInitializedVariableDeclaration_0': new MethodTrampoline(0, (Parser target) => target.isInitializedVariableDeclaration()), 11430 'isInitializedVariableDeclaration_0': new MethodTrampoline(0, (Parser target) => target.isInitializedVariableDeclaration()),
11375 'isLinkText_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target. isLinkText(arg0, arg1)), 11431 'isLinkText_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target. isLinkText(arg0, arg1)),
11376 'isOperator_1': new MethodTrampoline(1, (Parser target, arg0) => target.isOper ator(arg0)), 11432 'isOperator_1': new MethodTrampoline(1, (Parser target, arg0) => target.isOper ator(arg0)),
11377 'isSwitchMember_0': new MethodTrampoline(0, (Parser target) => target.isSwitch Member()), 11433 'isSwitchMember_0': new MethodTrampoline(0, (Parser target) => target.isSwitch Member()),
11378 'isTypedIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => target .isTypedIdentifier(arg0)), 11434 'isTypedIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => target .isTypedIdentifier(arg0)),
11379 'lexicallyFirst_1': new MethodTrampoline(1, (Parser target, arg0) => target.le xicallyFirst(arg0)), 11435 'lexicallyFirst_1': new MethodTrampoline(1, (Parser target, arg0) => target.le xicallyFirst(arg0)),
11380 'matches_1': new MethodTrampoline(1, (Parser target, arg0) => target.matches(a rg0)), 11436 'matches_1': new MethodTrampoline(1, (Parser target, arg0) => target.matches(a rg0)),
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
11462 'parseVariableDeclaration_0': new MethodTrampoline(0, (Parser target) => targe t.parseVariableDeclaration()), 11518 'parseVariableDeclaration_0': new MethodTrampoline(0, (Parser target) => targe t.parseVariableDeclaration()),
11463 'parseVariableDeclarationList_1': new MethodTrampoline(1, (Parser target, arg0 ) => target.parseVariableDeclarationList(arg0)), 11519 'parseVariableDeclarationList_1': new MethodTrampoline(1, (Parser target, arg0 ) => target.parseVariableDeclarationList(arg0)),
11464 'parseVariableDeclarationList_3': new MethodTrampoline(3, (Parser target, arg0 , arg1, arg2) => target.parseVariableDeclarationList2(arg0, arg1, arg2)), 11520 'parseVariableDeclarationList_3': new MethodTrampoline(3, (Parser target, arg0 , arg1, arg2) => target.parseVariableDeclarationList2(arg0, arg1, arg2)),
11465 'parseVariableDeclarationStatement_1': new MethodTrampoline(1, (Parser target, arg0) => target.parseVariableDeclarationStatement(arg0)), 11521 'parseVariableDeclarationStatement_1': new MethodTrampoline(1, (Parser target, arg0) => target.parseVariableDeclarationStatement(arg0)),
11466 'parseVariableDeclarationStatement_3': new MethodTrampoline(3, (Parser target, arg0, arg1, arg2) => target.parseVariableDeclarationStatement2(arg0, arg1, arg2 )), 11522 'parseVariableDeclarationStatement_3': new MethodTrampoline(3, (Parser target, arg0, arg1, arg2) => target.parseVariableDeclarationStatement2(arg0, arg1, arg2 )),
11467 'parseWhileStatement_0': new MethodTrampoline(0, (Parser target) => target.par seWhileStatement()), 11523 'parseWhileStatement_0': new MethodTrampoline(0, (Parser target) => target.par seWhileStatement()),
11468 'peek_0': new MethodTrampoline(0, (Parser target) => target.peek()), 11524 'peek_0': new MethodTrampoline(0, (Parser target) => target.peek()),
11469 'peek_1': new MethodTrampoline(1, (Parser target, arg0) => target.peek2(arg0)) , 11525 'peek_1': new MethodTrampoline(1, (Parser target, arg0) => target.peek2(arg0)) ,
11470 'reportError_3': new MethodTrampoline(3, (Parser target, arg0, arg1, arg2) => target.reportError(arg0, arg1, arg2)), 11526 'reportError_3': new MethodTrampoline(3, (Parser target, arg0, arg1, arg2) => target.reportError(arg0, arg1, arg2)),
11471 'reportError_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target .reportError9(arg0, arg1)), 11527 'reportError_2': new MethodTrampoline(2, (Parser target, arg0, arg1) => target .reportError9(arg0, arg1)),
11472 'scrapeTodoComment_1': new MethodTrampoline(1, (Parser target, arg0) => target .scrapeTodoComment(arg0)),
11473 'skipFinalConstVarOrType_1': new MethodTrampoline(1, (Parser target, arg0) => target.skipFinalConstVarOrType(arg0)), 11528 'skipFinalConstVarOrType_1': new MethodTrampoline(1, (Parser target, arg0) => target.skipFinalConstVarOrType(arg0)),
11474 'skipFormalParameterList_1': new MethodTrampoline(1, (Parser target, arg0) => target.skipFormalParameterList(arg0)), 11529 'skipFormalParameterList_1': new MethodTrampoline(1, (Parser target, arg0) => target.skipFormalParameterList(arg0)),
11475 'skipPastMatchingToken_1': new MethodTrampoline(1, (Parser target, arg0) => ta rget.skipPastMatchingToken(arg0)), 11530 'skipPastMatchingToken_1': new MethodTrampoline(1, (Parser target, arg0) => ta rget.skipPastMatchingToken(arg0)),
11476 'skipPrefixedIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => t arget.skipPrefixedIdentifier(arg0)), 11531 'skipPrefixedIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => t arget.skipPrefixedIdentifier(arg0)),
11477 'skipReturnType_1': new MethodTrampoline(1, (Parser target, arg0) => target.sk ipReturnType(arg0)), 11532 'skipReturnType_1': new MethodTrampoline(1, (Parser target, arg0) => target.sk ipReturnType(arg0)),
11478 'skipSimpleIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => tar get.skipSimpleIdentifier(arg0)), 11533 'skipSimpleIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => tar get.skipSimpleIdentifier(arg0)),
11479 'skipStringInterpolation_1': new MethodTrampoline(1, (Parser target, arg0) => target.skipStringInterpolation(arg0)), 11534 'skipStringInterpolation_1': new MethodTrampoline(1, (Parser target, arg0) => target.skipStringInterpolation(arg0)),
11480 'skipStringLiteral_1': new MethodTrampoline(1, (Parser target, arg0) => target .skipStringLiteral(arg0)), 11535 'skipStringLiteral_1': new MethodTrampoline(1, (Parser target, arg0) => target .skipStringLiteral(arg0)),
11481 'skipTypeArgumentList_1': new MethodTrampoline(1, (Parser target, arg0) => tar get.skipTypeArgumentList(arg0)), 11536 'skipTypeArgumentList_1': new MethodTrampoline(1, (Parser target, arg0) => tar get.skipTypeArgumentList(arg0)),
11482 'skipTypeName_1': new MethodTrampoline(1, (Parser target, arg0) => target.skip TypeName(arg0)), 11537 'skipTypeName_1': new MethodTrampoline(1, (Parser target, arg0) => target.skip TypeName(arg0)),
(...skipping 10 matching lines...) Expand all
11493 'validateModifiersForTopLevelFunction_1': new MethodTrampoline(1, (Parser targ et, arg0) => target.validateModifiersForTopLevelFunction(arg0)), 11548 'validateModifiersForTopLevelFunction_1': new MethodTrampoline(1, (Parser targ et, arg0) => target.validateModifiersForTopLevelFunction(arg0)),
11494 'validateModifiersForTopLevelVariable_1': new MethodTrampoline(1, (Parser targ et, arg0) => target.validateModifiersForTopLevelVariable(arg0)), 11549 'validateModifiersForTopLevelVariable_1': new MethodTrampoline(1, (Parser targ et, arg0) => target.validateModifiersForTopLevelVariable(arg0)),
11495 'validateModifiersForTypedef_1': new MethodTrampoline(1, (Parser target, arg0) => target.validateModifiersForTypedef(arg0)),}; 11550 'validateModifiersForTypedef_1': new MethodTrampoline(1, (Parser target, arg0) => target.validateModifiersForTypedef(arg0)),};
11496 11551
11497 11552
11498 Object invokeParserMethodImpl(Parser parser, String methodName, List<Object> obj ects, Token tokenStream) { 11553 Object invokeParserMethodImpl(Parser parser, String methodName, List<Object> obj ects, Token tokenStream) {
11499 parser.currentToken = tokenStream; 11554 parser.currentToken = tokenStream;
11500 MethodTrampoline method = _methodTable_Parser['${methodName}_${objects.length} ']; 11555 MethodTrampoline method = _methodTable_Parser['${methodName}_${objects.length} '];
11501 return method.invoke(parser, objects); 11556 return method.invoke(parser, objects);
11502 } 11557 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/element_test.dart ('k') | pkg/analyzer/test/generated/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698