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

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

Issue 2728773002: Fix parsing [a]sync[*] function body modifiers with Fasta. (Closed)
Patch Set: Use endExpressionFunctionBody() instead of endReturnStatement(). Created 3 years, 9 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/parser/node_listener.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 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 import 'package:analyzer/dart/ast/ast.dart'; 5 import 'package:analyzer/dart/ast/ast.dart';
6 import 'package:analyzer/dart/ast/token.dart' as analyzer; 6 import 'package:analyzer/dart/ast/token.dart' as analyzer;
7 import 'package:analyzer/dart/element/element.dart'; 7 import 'package:analyzer/dart/element/element.dart';
8 import 'package:analyzer/error/error.dart'; 8 import 'package:analyzer/error/error.dart';
9 import 'package:analyzer/src/generated/parser.dart' as analyzer; 9 import 'package:analyzer/src/generated/parser.dart' as analyzer;
10 import 'package:analyzer/src/generated/utilities_dart.dart'; 10 import 'package:analyzer/src/generated/utilities_dart.dart';
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 class ClassMemberParserTest_Fasta extends FastaParserTestCase 51 class ClassMemberParserTest_Fasta extends FastaParserTestCase
52 with ClassMemberParserTestMixin { 52 with ClassMemberParserTestMixin {
53 @override 53 @override
54 @failingTest 54 @failingTest
55 void test_constFactory() { 55 void test_constFactory() {
56 // TODO(paulberry): Unhandled event: ConstructorReference 56 // TODO(paulberry): Unhandled event: ConstructorReference
57 super.test_constFactory(); 57 super.test_constFactory();
58 } 58 }
59 59
60 @override 60 @override
61 @assertFailingTest
62 void test_parseAwaitExpression_asStatement_inAsync() {
63 // TODO(paulberry): Add support for async
64 super.test_parseAwaitExpression_asStatement_inAsync();
65 }
66
67 @override
68 @failingTest 61 @failingTest
69 void test_parseClassMember_constructor_withInitializers() { 62 void test_parseClassMember_constructor_withInitializers() {
70 // TODO(paulberry): 'this' can't be used here. 63 // TODO(paulberry): 'this' can't be used here.
71 super.test_parseClassMember_constructor_withInitializers(); 64 super.test_parseClassMember_constructor_withInitializers();
72 } 65 }
73 66
74 @override 67 @override
75 @failingTest 68 @failingTest
76 void test_parseClassMember_field_covariant() { 69 void test_parseClassMember_field_covariant() {
77 // TODO(paulberry): Unhandled event: Fields 70 // TODO(paulberry): Unhandled event: Fields
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 } 496 }
504 497
505 @override 498 @override
506 @failingTest 499 @failingTest
507 void test_parseExpression_assign_compound() { 500 void test_parseExpression_assign_compound() {
508 super.test_parseExpression_assign_compound(); 501 super.test_parseExpression_assign_compound();
509 } 502 }
510 503
511 @override 504 @override
512 @failingTest 505 @failingTest
513 void test_parseExpression_function_async() {
514 super.test_parseExpression_function_async();
515 }
516
517 @override
518 @failingTest
519 void test_parseExpression_function_asyncStar() {
520 super.test_parseExpression_function_asyncStar();
521 }
522
523 @override
524 @failingTest
525 void test_parseExpression_function_syncStar() {
526 super.test_parseExpression_function_syncStar();
527 }
528
529 @override
530 @failingTest
531 void test_parseExpression_superMethodInvocation_typeArgumentComments() { 506 void test_parseExpression_superMethodInvocation_typeArgumentComments() {
532 super.test_parseExpression_superMethodInvocation_typeArgumentComments(); 507 super.test_parseExpression_superMethodInvocation_typeArgumentComments();
533 } 508 }
534 509
535 @override 510 @override
536 @failingTest 511 @failingTest
537 void 512 void
538 test_parseExpressionWithoutCascade_superMethodInvocation_typeArgumentComme nts() { 513 test_parseExpressionWithoutCascade_superMethodInvocation_typeArgumentComme nts() {
539 super 514 super
540 .test_parseExpressionWithoutCascade_superMethodInvocation_typeArgumentCo mments(); 515 .test_parseExpressionWithoutCascade_superMethodInvocation_typeArgumentCo mments();
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
1629 void test_parseTypeAlias_genericFunction_typeParameters_voidReturnType() { 1604 void test_parseTypeAlias_genericFunction_typeParameters_voidReturnType() {
1630 super.test_parseTypeAlias_genericFunction_typeParameters_voidReturnType(); 1605 super.test_parseTypeAlias_genericFunction_typeParameters_voidReturnType();
1631 } 1606 }
1632 1607
1633 @override 1608 @override
1634 @failingTest 1609 @failingTest
1635 void test_parseTypeAlias_genericFunction_voidReturnType() { 1610 void test_parseTypeAlias_genericFunction_voidReturnType() {
1636 super.test_parseTypeAlias_genericFunction_voidReturnType(); 1611 super.test_parseTypeAlias_genericFunction_voidReturnType();
1637 } 1612 }
1638 } 1613 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/parser/node_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698