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

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

Issue 382953002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 months 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 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.parser_test; 8 library engine.parser_test;
9 9
10 import 'package:analyzer/src/generated/java_core.dart'; 10 import 'package:analyzer/src/generated/java_core.dart';
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 } 906 }
907 907
908 void test_expectedExecutable_topLevel_afterVoid() { 908 void test_expectedExecutable_topLevel_afterVoid() {
909 ParserTestCase.parse3("parseCompilationUnitMember", <Object> [emptyCommentAn dMetadata()], "void 2 void", [ParserErrorCode.EXPECTED_EXECUTABLE]); 909 ParserTestCase.parse3("parseCompilationUnitMember", <Object> [emptyCommentAn dMetadata()], "void 2 void", [ParserErrorCode.EXPECTED_EXECUTABLE]);
910 } 910 }
911 911
912 void test_expectedExecutable_topLevel_beforeType() { 912 void test_expectedExecutable_topLevel_beforeType() {
913 ParserTestCase.parse3("parseCompilationUnitMember", <Object> [emptyCommentAn dMetadata()], "4 score", [ParserErrorCode.EXPECTED_EXECUTABLE]); 913 ParserTestCase.parse3("parseCompilationUnitMember", <Object> [emptyCommentAn dMetadata()], "4 score", [ParserErrorCode.EXPECTED_EXECUTABLE]);
914 } 914 }
915 915
916 void test_expectedExecutable_topLevel_eof() {
917 ParserTestCase.parse2("parseCompilationUnitMember", <Object> [emptyCommentAn dMetadata()], "x", [new AnalysisError.con2(null, 0, 1, ParserErrorCode.EXPECTED_ EXECUTABLE, [])]);
918 }
919
916 void test_expectedInterpolationIdentifier() { 920 void test_expectedInterpolationIdentifier() {
917 ParserTestCase.parse4("parseStringLiteral", "'\$x\$'", [ParserErrorCode.MISS ING_IDENTIFIER]); 921 ParserTestCase.parse4("parseStringLiteral", "'\$x\$'", [ParserErrorCode.MISS ING_IDENTIFIER]);
918 } 922 }
919 923
920 void test_expectedInterpolationIdentifier_emptyString() { 924 void test_expectedInterpolationIdentifier_emptyString() {
921 // The scanner inserts an empty string token between the two $'s; we need to make sure that the 925 // The scanner inserts an empty string token between the two $'s; we need to make sure that the
922 // MISSING_IDENTIFIER error that is generated has a nonzero width so that it will show up in 926 // MISSING_IDENTIFIER error that is generated has a nonzero width so that it will show up in
923 // the editor UI. 927 // the editor UI.
924 ParserTestCase.parse2("parseStringLiteral", <Object> [], "'\$\$foo'", [new A nalysisError.con2(null, 2, 1, ParserErrorCode.MISSING_IDENTIFIER, [])]); 928 ParserTestCase.parse2("parseStringLiteral", <Object> [], "'\$\$foo'", [new A nalysisError.con2(null, 2, 1, ParserErrorCode.MISSING_IDENTIFIER, [])]);
925 } 929 }
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 } 1138 }
1135 1139
1136 void test_importDirectiveAfterPartDirective() { 1140 void test_importDirectiveAfterPartDirective() {
1137 ParserTestCase.parseCompilationUnit("part 'a.dart'; import 'b.dart';", [Pars erErrorCode.IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE]); 1141 ParserTestCase.parseCompilationUnit("part 'a.dart'; import 'b.dart';", [Pars erErrorCode.IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE]);
1138 } 1142 }
1139 1143
1140 void test_initializedVariableInForEach() { 1144 void test_initializedVariableInForEach() {
1141 ParserTestCase.parse4("parseForStatement", "for (int a = 0 in foo) {}", [Par serErrorCode.INITIALIZED_VARIABLE_IN_FOR_EACH]); 1145 ParserTestCase.parse4("parseForStatement", "for (int a = 0 in foo) {}", [Par serErrorCode.INITIALIZED_VARIABLE_IN_FOR_EACH]);
1142 } 1146 }
1143 1147
1148 void test_invalidAwaitInFor() {
1149 ParserTestCase.parse4("parseForStatement", "await for (; ;) {}", [ParserErro rCode.INVALID_AWAIT_IN_FOR]);
1150 }
1151
1144 void test_invalidCodePoint() { 1152 void test_invalidCodePoint() {
1145 ParserTestCase.parse4("parseStringLiteral", "'\\uD900'", [ParserErrorCode.IN VALID_CODE_POINT]); 1153 ParserTestCase.parse4("parseStringLiteral", "'\\uD900'", [ParserErrorCode.IN VALID_CODE_POINT]);
1146 } 1154 }
1147 1155
1148 void test_invalidHexEscape_invalidDigit() { 1156 void test_invalidHexEscape_invalidDigit() {
1149 ParserTestCase.parse4("parseStringLiteral", "'\\x0 a'", [ParserErrorCode.INV ALID_HEX_ESCAPE]); 1157 ParserTestCase.parse4("parseStringLiteral", "'\\x0 a'", [ParserErrorCode.INV ALID_HEX_ESCAPE]);
1150 } 1158 }
1151 1159
1152 void test_invalidHexEscape_tooFewDigits() { 1160 void test_invalidHexEscape_tooFewDigits() {
1153 ParserTestCase.parse4("parseStringLiteral", "'\\x0'", [ParserErrorCode.INVAL ID_HEX_ESCAPE]); 1161 ParserTestCase.parse4("parseStringLiteral", "'\\x0'", [ParserErrorCode.INVAL ID_HEX_ESCAPE]);
1154 } 1162 }
1155 1163
1156 void test_invalidInterpolationIdentifier_startWithDigit() { 1164 void test_invalidInterpolationIdentifier_startWithDigit() {
1157 ParserTestCase.parse4("parseStringLiteral", "'\$1'", [ParserErrorCode.MISSIN G_IDENTIFIER]); 1165 ParserTestCase.parse4("parseStringLiteral", "'\$1'", [ParserErrorCode.MISSIN G_IDENTIFIER]);
1158 } 1166 }
1159 1167
1160 void test_invalidOperator() { 1168 void test_invalidOperator() {
1161 ParserTestCase.parse3("parseClassMember", <Object> ["C"], "void operator === (x) {}", [ParserErrorCode.INVALID_OPERATOR]); 1169 ParserTestCase.parse3("parseClassMember", <Object> ["C"], "void operator === (x) {}", [ParserErrorCode.INVALID_OPERATOR]);
1162 } 1170 }
1163 1171
1164 void test_invalidOperatorForSuper() { 1172 void test_invalidOperatorForSuper() {
1165 ParserTestCase.parse4("parseUnaryExpression", "++super", [ParserErrorCode.IN VALID_OPERATOR_FOR_SUPER]); 1173 ParserTestCase.parse4("parseUnaryExpression", "++super", [ParserErrorCode.IN VALID_OPERATOR_FOR_SUPER]);
1166 } 1174 }
1167 1175
1176 void test_invalidStarAfterAsync() {
1177 ParserTestCase.parse3("parseFunctionBody", <Object> [false, null, false], "a sync* => 0;", [ParserErrorCode.INVALID_STAR_AFTER_ASYNC]);
1178 }
1179
1180 void test_invalidSync() {
1181 ParserTestCase.parse3("parseFunctionBody", <Object> [false, null, false], "s ync* => 0;", [ParserErrorCode.INVALID_SYNC]);
1182 }
1183
1168 void test_invalidUnicodeEscape_incomplete_noDigits() { 1184 void test_invalidUnicodeEscape_incomplete_noDigits() {
1169 ParserTestCase.parse4("parseStringLiteral", "'\\u{'", [ParserErrorCode.INVAL ID_UNICODE_ESCAPE]); 1185 ParserTestCase.parse4("parseStringLiteral", "'\\u{'", [ParserErrorCode.INVAL ID_UNICODE_ESCAPE]);
1170 } 1186 }
1171 1187
1172 void test_invalidUnicodeEscape_incomplete_someDigits() { 1188 void test_invalidUnicodeEscape_incomplete_someDigits() {
1173 ParserTestCase.parse4("parseStringLiteral", "'\\u{0A'", [ParserErrorCode.INV ALID_UNICODE_ESCAPE]); 1189 ParserTestCase.parse4("parseStringLiteral", "'\\u{0A'", [ParserErrorCode.INV ALID_UNICODE_ESCAPE]);
1174 } 1190 }
1175 1191
1176 void test_invalidUnicodeEscape_invalidDigit() { 1192 void test_invalidUnicodeEscape_invalidDigit() {
1177 ParserTestCase.parse4("parseStringLiteral", "'\\u0 a'", [ParserErrorCode.INV ALID_UNICODE_ESCAPE]); 1193 ParserTestCase.parse4("parseStringLiteral", "'\\u0 a'", [ParserErrorCode.INV ALID_UNICODE_ESCAPE]);
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
1348 1364
1349 void test_missingNameInPartOfDirective() { 1365 void test_missingNameInPartOfDirective() {
1350 CompilationUnit unit = ParserTestCase.parseCompilationUnit("part of;", [Pars erErrorCode.MISSING_NAME_IN_PART_OF_DIRECTIVE]); 1366 CompilationUnit unit = ParserTestCase.parseCompilationUnit("part of;", [Pars erErrorCode.MISSING_NAME_IN_PART_OF_DIRECTIVE]);
1351 JUnitTestCase.assertNotNull(unit); 1367 JUnitTestCase.assertNotNull(unit);
1352 } 1368 }
1353 1369
1354 void test_missingPrefixInDeferredImport() { 1370 void test_missingPrefixInDeferredImport() {
1355 ParserTestCase.parseCompilationUnit("import 'foo.dart' deferred;", [ParserEr rorCode.MISSING_PREFIX_IN_DEFERRED_IMPORT]); 1371 ParserTestCase.parseCompilationUnit("import 'foo.dart' deferred;", [ParserEr rorCode.MISSING_PREFIX_IN_DEFERRED_IMPORT]);
1356 } 1372 }
1357 1373
1374 void test_missingStartAfterSync() {
1375 ParserTestCase.parse3("parseFunctionBody", <Object> [false, null, false], "s ync {}", [ParserErrorCode.MISSING_STAR_AFTER_SYNC]);
1376 }
1377
1358 void test_missingStatement() { 1378 void test_missingStatement() {
1359 ParserTestCase.parseStatement("is", [ParserErrorCode.MISSING_STATEMENT]); 1379 ParserTestCase.parseStatement("is", [ParserErrorCode.MISSING_STATEMENT]);
1360 } 1380 }
1361 1381
1362 void test_missingStatement_afterVoid() { 1382 void test_missingStatement_afterVoid() {
1363 ParserTestCase.parseStatement("void;", [ParserErrorCode.MISSING_STATEMENT]); 1383 ParserTestCase.parseStatement("void;", [ParserErrorCode.MISSING_STATEMENT]);
1364 } 1384 }
1365 1385
1366 void test_missingTerminatorForParameterGroup_named() { 1386 void test_missingTerminatorForParameterGroup_named() {
1367 ParserTestCase.parse4("parseFormalParameterList", "(a, {b: 0)", [ParserError Code.MISSING_TERMINATOR_FOR_PARAMETER_GROUP]); 1387 ParserTestCase.parse4("parseFormalParameterList", "(a, {b: 0)", [ParserError Code.MISSING_TERMINATOR_FOR_PARAMETER_GROUP]);
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
1933 runJUnitTest(__test, __test.test_expectedExecutable_topLevel_afterType); 1953 runJUnitTest(__test, __test.test_expectedExecutable_topLevel_afterType);
1934 }); 1954 });
1935 _ut.test('test_expectedExecutable_topLevel_afterVoid', () { 1955 _ut.test('test_expectedExecutable_topLevel_afterVoid', () {
1936 final __test = new ErrorParserTest(); 1956 final __test = new ErrorParserTest();
1937 runJUnitTest(__test, __test.test_expectedExecutable_topLevel_afterVoid); 1957 runJUnitTest(__test, __test.test_expectedExecutable_topLevel_afterVoid);
1938 }); 1958 });
1939 _ut.test('test_expectedExecutable_topLevel_beforeType', () { 1959 _ut.test('test_expectedExecutable_topLevel_beforeType', () {
1940 final __test = new ErrorParserTest(); 1960 final __test = new ErrorParserTest();
1941 runJUnitTest(__test, __test.test_expectedExecutable_topLevel_beforeType) ; 1961 runJUnitTest(__test, __test.test_expectedExecutable_topLevel_beforeType) ;
1942 }); 1962 });
1963 _ut.test('test_expectedExecutable_topLevel_eof', () {
1964 final __test = new ErrorParserTest();
1965 runJUnitTest(__test, __test.test_expectedExecutable_topLevel_eof);
1966 });
1943 _ut.test('test_expectedInterpolationIdentifier', () { 1967 _ut.test('test_expectedInterpolationIdentifier', () {
1944 final __test = new ErrorParserTest(); 1968 final __test = new ErrorParserTest();
1945 runJUnitTest(__test, __test.test_expectedInterpolationIdentifier); 1969 runJUnitTest(__test, __test.test_expectedInterpolationIdentifier);
1946 }); 1970 });
1947 _ut.test('test_expectedInterpolationIdentifier_emptyString', () { 1971 _ut.test('test_expectedInterpolationIdentifier_emptyString', () {
1948 final __test = new ErrorParserTest(); 1972 final __test = new ErrorParserTest();
1949 runJUnitTest(__test, __test.test_expectedInterpolationIdentifier_emptySt ring); 1973 runJUnitTest(__test, __test.test_expectedInterpolationIdentifier_emptySt ring);
1950 }); 1974 });
1951 _ut.test('test_expectedStringLiteral', () { 1975 _ut.test('test_expectedStringLiteral', () {
1952 final __test = new ErrorParserTest(); 1976 final __test = new ErrorParserTest();
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
2141 runJUnitTest(__test, __test.test_implementsBeforeWith); 2165 runJUnitTest(__test, __test.test_implementsBeforeWith);
2142 }); 2166 });
2143 _ut.test('test_importDirectiveAfterPartDirective', () { 2167 _ut.test('test_importDirectiveAfterPartDirective', () {
2144 final __test = new ErrorParserTest(); 2168 final __test = new ErrorParserTest();
2145 runJUnitTest(__test, __test.test_importDirectiveAfterPartDirective); 2169 runJUnitTest(__test, __test.test_importDirectiveAfterPartDirective);
2146 }); 2170 });
2147 _ut.test('test_initializedVariableInForEach', () { 2171 _ut.test('test_initializedVariableInForEach', () {
2148 final __test = new ErrorParserTest(); 2172 final __test = new ErrorParserTest();
2149 runJUnitTest(__test, __test.test_initializedVariableInForEach); 2173 runJUnitTest(__test, __test.test_initializedVariableInForEach);
2150 }); 2174 });
2175 _ut.test('test_invalidAwaitInFor', () {
2176 final __test = new ErrorParserTest();
2177 runJUnitTest(__test, __test.test_invalidAwaitInFor);
2178 });
2151 _ut.test('test_invalidCodePoint', () { 2179 _ut.test('test_invalidCodePoint', () {
2152 final __test = new ErrorParserTest(); 2180 final __test = new ErrorParserTest();
2153 runJUnitTest(__test, __test.test_invalidCodePoint); 2181 runJUnitTest(__test, __test.test_invalidCodePoint);
2154 }); 2182 });
2155 _ut.test('test_invalidHexEscape_invalidDigit', () { 2183 _ut.test('test_invalidHexEscape_invalidDigit', () {
2156 final __test = new ErrorParserTest(); 2184 final __test = new ErrorParserTest();
2157 runJUnitTest(__test, __test.test_invalidHexEscape_invalidDigit); 2185 runJUnitTest(__test, __test.test_invalidHexEscape_invalidDigit);
2158 }); 2186 });
2159 _ut.test('test_invalidHexEscape_tooFewDigits', () { 2187 _ut.test('test_invalidHexEscape_tooFewDigits', () {
2160 final __test = new ErrorParserTest(); 2188 final __test = new ErrorParserTest();
2161 runJUnitTest(__test, __test.test_invalidHexEscape_tooFewDigits); 2189 runJUnitTest(__test, __test.test_invalidHexEscape_tooFewDigits);
2162 }); 2190 });
2163 _ut.test('test_invalidInterpolationIdentifier_startWithDigit', () { 2191 _ut.test('test_invalidInterpolationIdentifier_startWithDigit', () {
2164 final __test = new ErrorParserTest(); 2192 final __test = new ErrorParserTest();
2165 runJUnitTest(__test, __test.test_invalidInterpolationIdentifier_startWit hDigit); 2193 runJUnitTest(__test, __test.test_invalidInterpolationIdentifier_startWit hDigit);
2166 }); 2194 });
2167 _ut.test('test_invalidOperator', () { 2195 _ut.test('test_invalidOperator', () {
2168 final __test = new ErrorParserTest(); 2196 final __test = new ErrorParserTest();
2169 runJUnitTest(__test, __test.test_invalidOperator); 2197 runJUnitTest(__test, __test.test_invalidOperator);
2170 }); 2198 });
2171 _ut.test('test_invalidOperatorForSuper', () { 2199 _ut.test('test_invalidOperatorForSuper', () {
2172 final __test = new ErrorParserTest(); 2200 final __test = new ErrorParserTest();
2173 runJUnitTest(__test, __test.test_invalidOperatorForSuper); 2201 runJUnitTest(__test, __test.test_invalidOperatorForSuper);
2174 }); 2202 });
2203 _ut.test('test_invalidStarAfterAsync', () {
2204 final __test = new ErrorParserTest();
2205 runJUnitTest(__test, __test.test_invalidStarAfterAsync);
2206 });
2207 _ut.test('test_invalidSync', () {
2208 final __test = new ErrorParserTest();
2209 runJUnitTest(__test, __test.test_invalidSync);
2210 });
2175 _ut.test('test_invalidUnicodeEscape_incomplete_noDigits', () { 2211 _ut.test('test_invalidUnicodeEscape_incomplete_noDigits', () {
2176 final __test = new ErrorParserTest(); 2212 final __test = new ErrorParserTest();
2177 runJUnitTest(__test, __test.test_invalidUnicodeEscape_incomplete_noDigit s); 2213 runJUnitTest(__test, __test.test_invalidUnicodeEscape_incomplete_noDigit s);
2178 }); 2214 });
2179 _ut.test('test_invalidUnicodeEscape_incomplete_someDigits', () { 2215 _ut.test('test_invalidUnicodeEscape_incomplete_someDigits', () {
2180 final __test = new ErrorParserTest(); 2216 final __test = new ErrorParserTest();
2181 runJUnitTest(__test, __test.test_invalidUnicodeEscape_incomplete_someDig its); 2217 runJUnitTest(__test, __test.test_invalidUnicodeEscape_incomplete_someDig its);
2182 }); 2218 });
2183 _ut.test('test_invalidUnicodeEscape_invalidDigit', () { 2219 _ut.test('test_invalidUnicodeEscape_invalidDigit', () {
2184 final __test = new ErrorParserTest(); 2220 final __test = new ErrorParserTest();
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
2345 runJUnitTest(__test, __test.test_missingNameInLibraryDirective); 2381 runJUnitTest(__test, __test.test_missingNameInLibraryDirective);
2346 }); 2382 });
2347 _ut.test('test_missingNameInPartOfDirective', () { 2383 _ut.test('test_missingNameInPartOfDirective', () {
2348 final __test = new ErrorParserTest(); 2384 final __test = new ErrorParserTest();
2349 runJUnitTest(__test, __test.test_missingNameInPartOfDirective); 2385 runJUnitTest(__test, __test.test_missingNameInPartOfDirective);
2350 }); 2386 });
2351 _ut.test('test_missingPrefixInDeferredImport', () { 2387 _ut.test('test_missingPrefixInDeferredImport', () {
2352 final __test = new ErrorParserTest(); 2388 final __test = new ErrorParserTest();
2353 runJUnitTest(__test, __test.test_missingPrefixInDeferredImport); 2389 runJUnitTest(__test, __test.test_missingPrefixInDeferredImport);
2354 }); 2390 });
2391 _ut.test('test_missingStartAfterSync', () {
2392 final __test = new ErrorParserTest();
2393 runJUnitTest(__test, __test.test_missingStartAfterSync);
2394 });
2355 _ut.test('test_missingStatement', () { 2395 _ut.test('test_missingStatement', () {
2356 final __test = new ErrorParserTest(); 2396 final __test = new ErrorParserTest();
2357 runJUnitTest(__test, __test.test_missingStatement); 2397 runJUnitTest(__test, __test.test_missingStatement);
2358 }); 2398 });
2359 _ut.test('test_missingStatement_afterVoid', () { 2399 _ut.test('test_missingStatement_afterVoid', () {
2360 final __test = new ErrorParserTest(); 2400 final __test = new ErrorParserTest();
2361 runJUnitTest(__test, __test.test_missingStatement_afterVoid); 2401 runJUnitTest(__test, __test.test_missingStatement_afterVoid);
2362 }); 2402 });
2363 _ut.test('test_missingTerminatorForParameterGroup_named', () { 2403 _ut.test('test_missingTerminatorForParameterGroup_named', () {
2364 final __test = new ErrorParserTest(); 2404 final __test = new ErrorParserTest();
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after
3289 // 3329 //
3290 Scanner scanner = new Scanner(null, new CharSequenceReader(source), listener ); 3330 Scanner scanner = new Scanner(null, new CharSequenceReader(source), listener );
3291 Token tokenStream = scanner.tokenize(); 3331 Token tokenStream = scanner.tokenize();
3292 listener.setLineInfo(new TestSource(), scanner.lineStarts); 3332 listener.setLineInfo(new TestSource(), scanner.lineStarts);
3293 // 3333 //
3294 // Parse the source. 3334 // Parse the source.
3295 // 3335 //
3296 Parser parser = new Parser(null, listener); 3336 Parser parser = new Parser(null, listener);
3297 parser.parseFunctionBodies = parseFunctionBodies; 3337 parser.parseFunctionBodies = parseFunctionBodies;
3298 parser.parseDeferredLibraries = true; 3338 parser.parseDeferredLibraries = true;
3339 parser.parseAsync = true;
3299 Object result = invokeParserMethodImpl(parser, methodName, objects, tokenStr eam); 3340 Object result = invokeParserMethodImpl(parser, methodName, objects, tokenStr eam);
3300 // 3341 //
3301 // Partially test the results. 3342 // Partially test the results.
3302 // 3343 //
3303 if (!listener.hasErrors) { 3344 if (!listener.hasErrors) {
3304 JUnitTestCase.assertNotNull(result); 3345 JUnitTestCase.assertNotNull(result);
3305 } 3346 }
3306 return result; 3347 return result;
3307 } 3348 }
3308 3349
(...skipping 2239 matching lines...) Expand 10 before | Expand all | Expand 10 after
5548 JUnitTestCase.assertNotNull(selector.leftBracket); 5589 JUnitTestCase.assertNotNull(selector.leftBracket);
5549 JUnitTestCase.assertNotNull(selector.index); 5590 JUnitTestCase.assertNotNull(selector.index);
5550 JUnitTestCase.assertNotNull(selector.rightBracket); 5591 JUnitTestCase.assertNotNull(selector.rightBracket);
5551 } 5592 }
5552 5593
5553 void test_parseAssignableSelector_none() { 5594 void test_parseAssignableSelector_none() {
5554 SimpleIdentifier selector = ParserTestCase.parse("parseAssignableSelector", <Object> [new SimpleIdentifier(null), true], ";"); 5595 SimpleIdentifier selector = ParserTestCase.parse("parseAssignableSelector", <Object> [new SimpleIdentifier(null), true], ";");
5555 JUnitTestCase.assertNotNull(selector); 5596 JUnitTestCase.assertNotNull(selector);
5556 } 5597 }
5557 5598
5599 void test_parseAwaitExpression() {
5600 AwaitExpression expression = ParserTestCase.parse4("parseAwaitExpression", " await x;", []);
5601 JUnitTestCase.assertNotNull(expression.awaitKeyword);
5602 JUnitTestCase.assertNotNull(expression.expression);
5603 JUnitTestCase.assertNotNull(expression.semicolon);
5604 }
5605
5558 void test_parseBitwiseAndExpression_normal() { 5606 void test_parseBitwiseAndExpression_normal() {
5559 BinaryExpression expression = ParserTestCase.parse4("parseBitwiseAndExpressi on", "x & y", []); 5607 BinaryExpression expression = ParserTestCase.parse4("parseBitwiseAndExpressi on", "x & y", []);
5560 JUnitTestCase.assertNotNull(expression.leftOperand); 5608 JUnitTestCase.assertNotNull(expression.leftOperand);
5561 JUnitTestCase.assertNotNull(expression.operator); 5609 JUnitTestCase.assertNotNull(expression.operator);
5562 JUnitTestCase.assertEquals(TokenType.AMPERSAND, expression.operator.type); 5610 JUnitTestCase.assertEquals(TokenType.AMPERSAND, expression.operator.type);
5563 JUnitTestCase.assertNotNull(expression.rightOperand); 5611 JUnitTestCase.assertNotNull(expression.rightOperand);
5564 } 5612 }
5565 5613
5566 void test_parseBitwiseAndExpression_super() { 5614 void test_parseBitwiseAndExpression_super() {
5567 BinaryExpression expression = ParserTestCase.parse4("parseBitwiseAndExpressi on", "super & y", []); 5615 BinaryExpression expression = ParserTestCase.parse4("parseBitwiseAndExpressi on", "super & y", []);
(...skipping 1853 matching lines...) Expand 10 before | Expand all | Expand 10 after
7421 7469
7422 void test_parseFormalParameterList_positional_single() { 7470 void test_parseFormalParameterList_positional_single() {
7423 FormalParameterList parameterList = ParserTestCase.parse4("parseFormalParame terList", "([A a = null])", []); 7471 FormalParameterList parameterList = ParserTestCase.parse4("parseFormalParame terList", "([A a = null])", []);
7424 JUnitTestCase.assertNotNull(parameterList.leftParenthesis); 7472 JUnitTestCase.assertNotNull(parameterList.leftParenthesis);
7425 JUnitTestCase.assertNotNull(parameterList.leftDelimiter); 7473 JUnitTestCase.assertNotNull(parameterList.leftDelimiter);
7426 EngineTestCase.assertSizeOfList(1, parameterList.parameters); 7474 EngineTestCase.assertSizeOfList(1, parameterList.parameters);
7427 JUnitTestCase.assertNotNull(parameterList.rightDelimiter); 7475 JUnitTestCase.assertNotNull(parameterList.rightDelimiter);
7428 JUnitTestCase.assertNotNull(parameterList.rightParenthesis); 7476 JUnitTestCase.assertNotNull(parameterList.rightParenthesis);
7429 } 7477 }
7430 7478
7479 void test_parseForStatement_each_await() {
7480 ForEachStatement statement = ParserTestCase.parse4("parseForStatement", "awa it for (element in list) {}", []);
7481 JUnitTestCase.assertNotNull(statement.awaitKeyword);
7482 JUnitTestCase.assertNotNull(statement.forKeyword);
7483 JUnitTestCase.assertNotNull(statement.leftParenthesis);
7484 JUnitTestCase.assertNull(statement.loopVariable);
7485 JUnitTestCase.assertNotNull(statement.identifier);
7486 JUnitTestCase.assertNotNull(statement.inKeyword);
7487 JUnitTestCase.assertNotNull(statement.iterator);
7488 JUnitTestCase.assertNotNull(statement.rightParenthesis);
7489 JUnitTestCase.assertNotNull(statement.body);
7490 }
7491
7431 void test_parseForStatement_each_identifier() { 7492 void test_parseForStatement_each_identifier() {
7432 ForEachStatement statement = ParserTestCase.parse4("parseForStatement", "for (element in list) {}", []); 7493 ForEachStatement statement = ParserTestCase.parse4("parseForStatement", "for (element in list) {}", []);
7494 JUnitTestCase.assertNull(statement.awaitKeyword);
7433 JUnitTestCase.assertNotNull(statement.forKeyword); 7495 JUnitTestCase.assertNotNull(statement.forKeyword);
7434 JUnitTestCase.assertNotNull(statement.leftParenthesis); 7496 JUnitTestCase.assertNotNull(statement.leftParenthesis);
7435 JUnitTestCase.assertNull(statement.loopVariable); 7497 JUnitTestCase.assertNull(statement.loopVariable);
7436 JUnitTestCase.assertNotNull(statement.identifier); 7498 JUnitTestCase.assertNotNull(statement.identifier);
7437 JUnitTestCase.assertNotNull(statement.inKeyword); 7499 JUnitTestCase.assertNotNull(statement.inKeyword);
7438 JUnitTestCase.assertNotNull(statement.iterator); 7500 JUnitTestCase.assertNotNull(statement.iterator);
7439 JUnitTestCase.assertNotNull(statement.rightParenthesis); 7501 JUnitTestCase.assertNotNull(statement.rightParenthesis);
7440 JUnitTestCase.assertNotNull(statement.body); 7502 JUnitTestCase.assertNotNull(statement.body);
7441 } 7503 }
7442 7504
7443 void test_parseForStatement_each_noType_metadata() { 7505 void test_parseForStatement_each_noType_metadata() {
7444 ForEachStatement statement = ParserTestCase.parse4("parseForStatement", "for (@A var element in list) {}", []); 7506 ForEachStatement statement = ParserTestCase.parse4("parseForStatement", "for (@A var element in list) {}", []);
7507 JUnitTestCase.assertNull(statement.awaitKeyword);
7445 JUnitTestCase.assertNotNull(statement.forKeyword); 7508 JUnitTestCase.assertNotNull(statement.forKeyword);
7446 JUnitTestCase.assertNotNull(statement.leftParenthesis); 7509 JUnitTestCase.assertNotNull(statement.leftParenthesis);
7447 JUnitTestCase.assertNotNull(statement.loopVariable); 7510 JUnitTestCase.assertNotNull(statement.loopVariable);
7448 EngineTestCase.assertSizeOfList(1, statement.loopVariable.metadata); 7511 EngineTestCase.assertSizeOfList(1, statement.loopVariable.metadata);
7449 JUnitTestCase.assertNull(statement.identifier); 7512 JUnitTestCase.assertNull(statement.identifier);
7450 JUnitTestCase.assertNotNull(statement.inKeyword); 7513 JUnitTestCase.assertNotNull(statement.inKeyword);
7451 JUnitTestCase.assertNotNull(statement.iterator); 7514 JUnitTestCase.assertNotNull(statement.iterator);
7452 JUnitTestCase.assertNotNull(statement.rightParenthesis); 7515 JUnitTestCase.assertNotNull(statement.rightParenthesis);
7453 JUnitTestCase.assertNotNull(statement.body); 7516 JUnitTestCase.assertNotNull(statement.body);
7454 } 7517 }
7455 7518
7456 void test_parseForStatement_each_type() { 7519 void test_parseForStatement_each_type() {
7457 ForEachStatement statement = ParserTestCase.parse4("parseForStatement", "for (A element in list) {}", []); 7520 ForEachStatement statement = ParserTestCase.parse4("parseForStatement", "for (A element in list) {}", []);
7521 JUnitTestCase.assertNull(statement.awaitKeyword);
7458 JUnitTestCase.assertNotNull(statement.forKeyword); 7522 JUnitTestCase.assertNotNull(statement.forKeyword);
7459 JUnitTestCase.assertNotNull(statement.leftParenthesis); 7523 JUnitTestCase.assertNotNull(statement.leftParenthesis);
7460 JUnitTestCase.assertNotNull(statement.loopVariable); 7524 JUnitTestCase.assertNotNull(statement.loopVariable);
7461 JUnitTestCase.assertNull(statement.identifier); 7525 JUnitTestCase.assertNull(statement.identifier);
7462 JUnitTestCase.assertNotNull(statement.inKeyword); 7526 JUnitTestCase.assertNotNull(statement.inKeyword);
7463 JUnitTestCase.assertNotNull(statement.iterator); 7527 JUnitTestCase.assertNotNull(statement.iterator);
7464 JUnitTestCase.assertNotNull(statement.rightParenthesis); 7528 JUnitTestCase.assertNotNull(statement.rightParenthesis);
7465 JUnitTestCase.assertNotNull(statement.body); 7529 JUnitTestCase.assertNotNull(statement.body);
7466 } 7530 }
7467 7531
7468 void test_parseForStatement_each_var() { 7532 void test_parseForStatement_each_var() {
7469 ForEachStatement statement = ParserTestCase.parse4("parseForStatement", "for (var element in list) {}", []); 7533 ForEachStatement statement = ParserTestCase.parse4("parseForStatement", "for (var element in list) {}", []);
7534 JUnitTestCase.assertNull(statement.awaitKeyword);
7470 JUnitTestCase.assertNotNull(statement.forKeyword); 7535 JUnitTestCase.assertNotNull(statement.forKeyword);
7471 JUnitTestCase.assertNotNull(statement.leftParenthesis); 7536 JUnitTestCase.assertNotNull(statement.leftParenthesis);
7472 JUnitTestCase.assertNotNull(statement.loopVariable); 7537 JUnitTestCase.assertNotNull(statement.loopVariable);
7473 JUnitTestCase.assertNull(statement.identifier); 7538 JUnitTestCase.assertNull(statement.identifier);
7474 JUnitTestCase.assertNotNull(statement.inKeyword); 7539 JUnitTestCase.assertNotNull(statement.inKeyword);
7475 JUnitTestCase.assertNotNull(statement.iterator); 7540 JUnitTestCase.assertNotNull(statement.iterator);
7476 JUnitTestCase.assertNotNull(statement.rightParenthesis); 7541 JUnitTestCase.assertNotNull(statement.rightParenthesis);
7477 JUnitTestCase.assertNotNull(statement.body); 7542 JUnitTestCase.assertNotNull(statement.body);
7478 } 7543 }
7479 7544
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
7626 JUnitTestCase.assertNotNull(statement.leftSeparator); 7691 JUnitTestCase.assertNotNull(statement.leftSeparator);
7627 JUnitTestCase.assertNull(statement.condition); 7692 JUnitTestCase.assertNull(statement.condition);
7628 JUnitTestCase.assertNotNull(statement.rightSeparator); 7693 JUnitTestCase.assertNotNull(statement.rightSeparator);
7629 EngineTestCase.assertSizeOfList(1, statement.updaters); 7694 EngineTestCase.assertSizeOfList(1, statement.updaters);
7630 JUnitTestCase.assertNotNull(statement.rightParenthesis); 7695 JUnitTestCase.assertNotNull(statement.rightParenthesis);
7631 JUnitTestCase.assertNotNull(statement.body); 7696 JUnitTestCase.assertNotNull(statement.body);
7632 } 7697 }
7633 7698
7634 void test_parseFunctionBody_block() { 7699 void test_parseFunctionBody_block() {
7635 BlockFunctionBody functionBody = ParserTestCase.parse("parseFunctionBody", < Object> [false, null, false], "{}"); 7700 BlockFunctionBody functionBody = ParserTestCase.parse("parseFunctionBody", < Object> [false, null, false], "{}");
7701 JUnitTestCase.assertNull(functionBody.keyword);
7702 JUnitTestCase.assertNull(functionBody.star);
7636 JUnitTestCase.assertNotNull(functionBody.block); 7703 JUnitTestCase.assertNotNull(functionBody.block);
7704 JUnitTestCase.assertFalse(functionBody.isAsynchronous);
7705 JUnitTestCase.assertFalse(functionBody.isGenerator);
7706 JUnitTestCase.assertTrue(functionBody.isSynchronous);
7707 }
7708
7709 void test_parseFunctionBody_block_async() {
7710 BlockFunctionBody functionBody = ParserTestCase.parse("parseFunctionBody", < Object> [false, null, false], "async {}");
7711 JUnitTestCase.assertNotNull(functionBody.keyword);
7712 JUnitTestCase.assertEquals(Parser.ASYNC, functionBody.keyword.lexeme);
7713 JUnitTestCase.assertNull(functionBody.star);
7714 JUnitTestCase.assertNotNull(functionBody.block);
7715 JUnitTestCase.assertTrue(functionBody.isAsynchronous);
7716 JUnitTestCase.assertFalse(functionBody.isGenerator);
7717 JUnitTestCase.assertFalse(functionBody.isSynchronous);
7718 }
7719
7720 void test_parseFunctionBody_block_asyncGenerator() {
7721 BlockFunctionBody functionBody = ParserTestCase.parse("parseFunctionBody", < Object> [false, null, false], "async* {}");
7722 JUnitTestCase.assertNotNull(functionBody.keyword);
7723 JUnitTestCase.assertEquals(Parser.ASYNC, functionBody.keyword.lexeme);
7724 JUnitTestCase.assertNotNull(functionBody.star);
7725 JUnitTestCase.assertNotNull(functionBody.block);
7726 JUnitTestCase.assertTrue(functionBody.isAsynchronous);
7727 JUnitTestCase.assertTrue(functionBody.isGenerator);
7728 JUnitTestCase.assertFalse(functionBody.isSynchronous);
7729 }
7730
7731 void test_parseFunctionBody_block_syncGenerator() {
7732 BlockFunctionBody functionBody = ParserTestCase.parse("parseFunctionBody", < Object> [false, null, false], "sync* {}");
7733 JUnitTestCase.assertNotNull(functionBody.keyword);
7734 JUnitTestCase.assertEquals(Parser.SYNC, functionBody.keyword.lexeme);
7735 JUnitTestCase.assertNotNull(functionBody.star);
7736 JUnitTestCase.assertNotNull(functionBody.block);
7737 JUnitTestCase.assertFalse(functionBody.isAsynchronous);
7738 JUnitTestCase.assertTrue(functionBody.isGenerator);
7739 JUnitTestCase.assertTrue(functionBody.isSynchronous);
7637 } 7740 }
7638 7741
7639 void test_parseFunctionBody_empty() { 7742 void test_parseFunctionBody_empty() {
7640 EmptyFunctionBody functionBody = ParserTestCase.parse("parseFunctionBody", < Object> [true, null, false], ";"); 7743 EmptyFunctionBody functionBody = ParserTestCase.parse("parseFunctionBody", < Object> [true, null, false], ";");
7641 JUnitTestCase.assertNotNull(functionBody.semicolon); 7744 JUnitTestCase.assertNotNull(functionBody.semicolon);
7642 } 7745 }
7643 7746
7644 void test_parseFunctionBody_expression() { 7747 void test_parseFunctionBody_expression() {
7645 ExpressionFunctionBody functionBody = ParserTestCase.parse("parseFunctionBod y", <Object> [false, null, false], "=> y;"); 7748 ExpressionFunctionBody functionBody = ParserTestCase.parse("parseFunctionBod y", <Object> [false, null, false], "=> y;");
7749 JUnitTestCase.assertNull(functionBody.keyword);
7646 JUnitTestCase.assertNotNull(functionBody.functionDefinition); 7750 JUnitTestCase.assertNotNull(functionBody.functionDefinition);
7647 JUnitTestCase.assertNotNull(functionBody.expression); 7751 JUnitTestCase.assertNotNull(functionBody.expression);
7648 JUnitTestCase.assertNotNull(functionBody.semicolon); 7752 JUnitTestCase.assertNotNull(functionBody.semicolon);
7753 JUnitTestCase.assertFalse(functionBody.isAsynchronous);
7754 JUnitTestCase.assertFalse(functionBody.isGenerator);
7755 JUnitTestCase.assertTrue(functionBody.isSynchronous);
7756 }
7757
7758 void test_parseFunctionBody_expression_async() {
7759 ExpressionFunctionBody functionBody = ParserTestCase.parse("parseFunctionBod y", <Object> [false, null, false], "async => y;");
7760 JUnitTestCase.assertNotNull(functionBody.keyword);
7761 JUnitTestCase.assertEquals(Parser.ASYNC, functionBody.keyword.lexeme);
7762 JUnitTestCase.assertNotNull(functionBody.functionDefinition);
7763 JUnitTestCase.assertNotNull(functionBody.expression);
7764 JUnitTestCase.assertNotNull(functionBody.semicolon);
7765 JUnitTestCase.assertTrue(functionBody.isAsynchronous);
7766 JUnitTestCase.assertFalse(functionBody.isGenerator);
7767 JUnitTestCase.assertFalse(functionBody.isSynchronous);
7649 } 7768 }
7650 7769
7651 void test_parseFunctionBody_nativeFunctionBody() { 7770 void test_parseFunctionBody_nativeFunctionBody() {
7652 NativeFunctionBody functionBody = ParserTestCase.parse("parseFunctionBody", <Object> [false, null, false], "native 'str';"); 7771 NativeFunctionBody functionBody = ParserTestCase.parse("parseFunctionBody", <Object> [false, null, false], "native 'str';");
7653 JUnitTestCase.assertNotNull(functionBody.nativeToken); 7772 JUnitTestCase.assertNotNull(functionBody.nativeToken);
7654 JUnitTestCase.assertNotNull(functionBody.stringLiteral); 7773 JUnitTestCase.assertNotNull(functionBody.stringLiteral);
7655 JUnitTestCase.assertNotNull(functionBody.semicolon); 7774 JUnitTestCase.assertNotNull(functionBody.semicolon);
7656 } 7775 }
7657 7776
7658 void test_parseFunctionBody_skip_block() { 7777 void test_parseFunctionBody_skip_block() {
(...skipping 1797 matching lines...) Expand 10 before | Expand all | Expand 10 after
9456 JUnitTestCase.assertNotNull(clause.withKeyword); 9575 JUnitTestCase.assertNotNull(clause.withKeyword);
9457 EngineTestCase.assertSizeOfList(3, clause.mixinTypes); 9576 EngineTestCase.assertSizeOfList(3, clause.mixinTypes);
9458 } 9577 }
9459 9578
9460 void test_parseWithClause_single() { 9579 void test_parseWithClause_single() {
9461 WithClause clause = ParserTestCase.parse4("parseWithClause", "with M", []); 9580 WithClause clause = ParserTestCase.parse4("parseWithClause", "with M", []);
9462 JUnitTestCase.assertNotNull(clause.withKeyword); 9581 JUnitTestCase.assertNotNull(clause.withKeyword);
9463 EngineTestCase.assertSizeOfList(1, clause.mixinTypes); 9582 EngineTestCase.assertSizeOfList(1, clause.mixinTypes);
9464 } 9583 }
9465 9584
9585 void test_parseYieldStatement_each() {
9586 YieldStatement statement = ParserTestCase.parse4("parseYieldStatement", "yie ld* x;", []);
9587 JUnitTestCase.assertNotNull(statement.yieldKeyword);
9588 JUnitTestCase.assertNotNull(statement.star);
9589 JUnitTestCase.assertNotNull(statement.expression);
9590 JUnitTestCase.assertNotNull(statement.semicolon);
9591 }
9592
9593 void test_parseYieldStatement_normal() {
9594 YieldStatement statement = ParserTestCase.parse4("parseYieldStatement", "yie ld x;", []);
9595 JUnitTestCase.assertNotNull(statement.yieldKeyword);
9596 JUnitTestCase.assertNull(statement.star);
9597 JUnitTestCase.assertNotNull(statement.expression);
9598 JUnitTestCase.assertNotNull(statement.semicolon);
9599 }
9600
9466 void test_skipPrefixedIdentifier_invalid() { 9601 void test_skipPrefixedIdentifier_invalid() {
9467 Token following = _skip("skipPrefixedIdentifier", "+"); 9602 Token following = _skip("skipPrefixedIdentifier", "+");
9468 JUnitTestCase.assertNull(following); 9603 JUnitTestCase.assertNull(following);
9469 } 9604 }
9470 9605
9471 void test_skipPrefixedIdentifier_notPrefixed() { 9606 void test_skipPrefixedIdentifier_notPrefixed() {
9472 Token following = _skip("skipPrefixedIdentifier", "a +"); 9607 Token following = _skip("skipPrefixedIdentifier", "a +");
9473 JUnitTestCase.assertNotNull(following); 9608 JUnitTestCase.assertNotNull(following);
9474 JUnitTestCase.assertEquals(TokenType.PLUS, following.type); 9609 JUnitTestCase.assertEquals(TokenType.PLUS, following.type);
9475 } 9610 }
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
10102 runJUnitTest(__test, __test.test_parseAssignableSelector_dot); 10237 runJUnitTest(__test, __test.test_parseAssignableSelector_dot);
10103 }); 10238 });
10104 _ut.test('test_parseAssignableSelector_index', () { 10239 _ut.test('test_parseAssignableSelector_index', () {
10105 final __test = new SimpleParserTest(); 10240 final __test = new SimpleParserTest();
10106 runJUnitTest(__test, __test.test_parseAssignableSelector_index); 10241 runJUnitTest(__test, __test.test_parseAssignableSelector_index);
10107 }); 10242 });
10108 _ut.test('test_parseAssignableSelector_none', () { 10243 _ut.test('test_parseAssignableSelector_none', () {
10109 final __test = new SimpleParserTest(); 10244 final __test = new SimpleParserTest();
10110 runJUnitTest(__test, __test.test_parseAssignableSelector_none); 10245 runJUnitTest(__test, __test.test_parseAssignableSelector_none);
10111 }); 10246 });
10247 _ut.test('test_parseAwaitExpression', () {
10248 final __test = new SimpleParserTest();
10249 runJUnitTest(__test, __test.test_parseAwaitExpression);
10250 });
10112 _ut.test('test_parseBitwiseAndExpression_normal', () { 10251 _ut.test('test_parseBitwiseAndExpression_normal', () {
10113 final __test = new SimpleParserTest(); 10252 final __test = new SimpleParserTest();
10114 runJUnitTest(__test, __test.test_parseBitwiseAndExpression_normal); 10253 runJUnitTest(__test, __test.test_parseBitwiseAndExpression_normal);
10115 }); 10254 });
10116 _ut.test('test_parseBitwiseAndExpression_super', () { 10255 _ut.test('test_parseBitwiseAndExpression_super', () {
10117 final __test = new SimpleParserTest(); 10256 final __test = new SimpleParserTest();
10118 runJUnitTest(__test, __test.test_parseBitwiseAndExpression_super); 10257 runJUnitTest(__test, __test.test_parseBitwiseAndExpression_super);
10119 }); 10258 });
10120 _ut.test('test_parseBitwiseOrExpression_normal', () { 10259 _ut.test('test_parseBitwiseOrExpression_normal', () {
10121 final __test = new SimpleParserTest(); 10260 final __test = new SimpleParserTest();
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
10846 runJUnitTest(__test, __test.test_parseFinalConstVarOrType_type_prefixedA ndParameterized); 10985 runJUnitTest(__test, __test.test_parseFinalConstVarOrType_type_prefixedA ndParameterized);
10847 }); 10986 });
10848 _ut.test('test_parseFinalConstVarOrType_type_simple', () { 10987 _ut.test('test_parseFinalConstVarOrType_type_simple', () {
10849 final __test = new SimpleParserTest(); 10988 final __test = new SimpleParserTest();
10850 runJUnitTest(__test, __test.test_parseFinalConstVarOrType_type_simple); 10989 runJUnitTest(__test, __test.test_parseFinalConstVarOrType_type_simple);
10851 }); 10990 });
10852 _ut.test('test_parseFinalConstVarOrType_var', () { 10991 _ut.test('test_parseFinalConstVarOrType_var', () {
10853 final __test = new SimpleParserTest(); 10992 final __test = new SimpleParserTest();
10854 runJUnitTest(__test, __test.test_parseFinalConstVarOrType_var); 10993 runJUnitTest(__test, __test.test_parseFinalConstVarOrType_var);
10855 }); 10994 });
10995 _ut.test('test_parseForStatement_each_await', () {
10996 final __test = new SimpleParserTest();
10997 runJUnitTest(__test, __test.test_parseForStatement_each_await);
10998 });
10856 _ut.test('test_parseForStatement_each_identifier', () { 10999 _ut.test('test_parseForStatement_each_identifier', () {
10857 final __test = new SimpleParserTest(); 11000 final __test = new SimpleParserTest();
10858 runJUnitTest(__test, __test.test_parseForStatement_each_identifier); 11001 runJUnitTest(__test, __test.test_parseForStatement_each_identifier);
10859 }); 11002 });
10860 _ut.test('test_parseForStatement_each_noType_metadata', () { 11003 _ut.test('test_parseForStatement_each_noType_metadata', () {
10861 final __test = new SimpleParserTest(); 11004 final __test = new SimpleParserTest();
10862 runJUnitTest(__test, __test.test_parseForStatement_each_noType_metadata) ; 11005 runJUnitTest(__test, __test.test_parseForStatement_each_noType_metadata) ;
10863 }); 11006 });
10864 _ut.test('test_parseForStatement_each_type', () { 11007 _ut.test('test_parseForStatement_each_type', () {
10865 final __test = new SimpleParserTest(); 11008 final __test = new SimpleParserTest();
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
10978 runJUnitTest(__test, __test.test_parseFormalParameter_var_named); 11121 runJUnitTest(__test, __test.test_parseFormalParameter_var_named);
10979 }); 11122 });
10980 _ut.test('test_parseFormalParameter_var_positional', () { 11123 _ut.test('test_parseFormalParameter_var_positional', () {
10981 final __test = new SimpleParserTest(); 11124 final __test = new SimpleParserTest();
10982 runJUnitTest(__test, __test.test_parseFormalParameter_var_positional); 11125 runJUnitTest(__test, __test.test_parseFormalParameter_var_positional);
10983 }); 11126 });
10984 _ut.test('test_parseFunctionBody_block', () { 11127 _ut.test('test_parseFunctionBody_block', () {
10985 final __test = new SimpleParserTest(); 11128 final __test = new SimpleParserTest();
10986 runJUnitTest(__test, __test.test_parseFunctionBody_block); 11129 runJUnitTest(__test, __test.test_parseFunctionBody_block);
10987 }); 11130 });
11131 _ut.test('test_parseFunctionBody_block_async', () {
11132 final __test = new SimpleParserTest();
11133 runJUnitTest(__test, __test.test_parseFunctionBody_block_async);
11134 });
11135 _ut.test('test_parseFunctionBody_block_asyncGenerator', () {
11136 final __test = new SimpleParserTest();
11137 runJUnitTest(__test, __test.test_parseFunctionBody_block_asyncGenerator) ;
11138 });
11139 _ut.test('test_parseFunctionBody_block_syncGenerator', () {
11140 final __test = new SimpleParserTest();
11141 runJUnitTest(__test, __test.test_parseFunctionBody_block_syncGenerator);
11142 });
10988 _ut.test('test_parseFunctionBody_empty', () { 11143 _ut.test('test_parseFunctionBody_empty', () {
10989 final __test = new SimpleParserTest(); 11144 final __test = new SimpleParserTest();
10990 runJUnitTest(__test, __test.test_parseFunctionBody_empty); 11145 runJUnitTest(__test, __test.test_parseFunctionBody_empty);
10991 }); 11146 });
10992 _ut.test('test_parseFunctionBody_expression', () { 11147 _ut.test('test_parseFunctionBody_expression', () {
10993 final __test = new SimpleParserTest(); 11148 final __test = new SimpleParserTest();
10994 runJUnitTest(__test, __test.test_parseFunctionBody_expression); 11149 runJUnitTest(__test, __test.test_parseFunctionBody_expression);
10995 }); 11150 });
11151 _ut.test('test_parseFunctionBody_expression_async', () {
11152 final __test = new SimpleParserTest();
11153 runJUnitTest(__test, __test.test_parseFunctionBody_expression_async);
11154 });
10996 _ut.test('test_parseFunctionBody_nativeFunctionBody', () { 11155 _ut.test('test_parseFunctionBody_nativeFunctionBody', () {
10997 final __test = new SimpleParserTest(); 11156 final __test = new SimpleParserTest();
10998 runJUnitTest(__test, __test.test_parseFunctionBody_nativeFunctionBody); 11157 runJUnitTest(__test, __test.test_parseFunctionBody_nativeFunctionBody);
10999 }); 11158 });
11000 _ut.test('test_parseFunctionBody_skip_block', () { 11159 _ut.test('test_parseFunctionBody_skip_block', () {
11001 final __test = new SimpleParserTest(); 11160 final __test = new SimpleParserTest();
11002 runJUnitTest(__test, __test.test_parseFunctionBody_skip_block); 11161 runJUnitTest(__test, __test.test_parseFunctionBody_skip_block);
11003 }); 11162 });
11004 _ut.test('test_parseFunctionBody_skip_block_invalid', () { 11163 _ut.test('test_parseFunctionBody_skip_block_invalid', () {
11005 final __test = new SimpleParserTest(); 11164 final __test = new SimpleParserTest();
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
11882 runJUnitTest(__test, __test.test_parseWhileStatement); 12041 runJUnitTest(__test, __test.test_parseWhileStatement);
11883 }); 12042 });
11884 _ut.test('test_parseWithClause_multiple', () { 12043 _ut.test('test_parseWithClause_multiple', () {
11885 final __test = new SimpleParserTest(); 12044 final __test = new SimpleParserTest();
11886 runJUnitTest(__test, __test.test_parseWithClause_multiple); 12045 runJUnitTest(__test, __test.test_parseWithClause_multiple);
11887 }); 12046 });
11888 _ut.test('test_parseWithClause_single', () { 12047 _ut.test('test_parseWithClause_single', () {
11889 final __test = new SimpleParserTest(); 12048 final __test = new SimpleParserTest();
11890 runJUnitTest(__test, __test.test_parseWithClause_single); 12049 runJUnitTest(__test, __test.test_parseWithClause_single);
11891 }); 12050 });
12051 _ut.test('test_parseYieldStatement_each', () {
12052 final __test = new SimpleParserTest();
12053 runJUnitTest(__test, __test.test_parseYieldStatement_each);
12054 });
12055 _ut.test('test_parseYieldStatement_normal', () {
12056 final __test = new SimpleParserTest();
12057 runJUnitTest(__test, __test.test_parseYieldStatement_normal);
12058 });
11892 _ut.test('test_skipPrefixedIdentifier_invalid', () { 12059 _ut.test('test_skipPrefixedIdentifier_invalid', () {
11893 final __test = new SimpleParserTest(); 12060 final __test = new SimpleParserTest();
11894 runJUnitTest(__test, __test.test_skipPrefixedIdentifier_invalid); 12061 runJUnitTest(__test, __test.test_skipPrefixedIdentifier_invalid);
11895 }); 12062 });
11896 _ut.test('test_skipPrefixedIdentifier_notPrefixed', () { 12063 _ut.test('test_skipPrefixedIdentifier_notPrefixed', () {
11897 final __test = new SimpleParserTest(); 12064 final __test = new SimpleParserTest();
11898 runJUnitTest(__test, __test.test_skipPrefixedIdentifier_notPrefixed); 12065 runJUnitTest(__test, __test.test_skipPrefixedIdentifier_notPrefixed);
11899 }); 12066 });
11900 _ut.test('test_skipPrefixedIdentifier_prefixed', () { 12067 _ut.test('test_skipPrefixedIdentifier_prefixed', () {
11901 final __test = new SimpleParserTest(); 12068 final __test = new SimpleParserTest();
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
11971 12138
11972 main() { 12139 main() {
11973 ComplexParserTest.dartSuite(); 12140 ComplexParserTest.dartSuite();
11974 ErrorParserTest.dartSuite(); 12141 ErrorParserTest.dartSuite();
11975 IncrementalParserTest.dartSuite(); 12142 IncrementalParserTest.dartSuite();
11976 NonErrorParserTest.dartSuite(); 12143 NonErrorParserTest.dartSuite();
11977 RecoveryParserTest.dartSuite(); 12144 RecoveryParserTest.dartSuite();
11978 ResolutionCopierTest.dartSuite(); 12145 ResolutionCopierTest.dartSuite();
11979 SimpleParserTest.dartSuite(); 12146 SimpleParserTest.dartSuite();
11980 } 12147 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/ast_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