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

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

Issue 3011693002: Fasta test cleanup (Closed)
Patch Set: Created 3 years, 3 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/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // 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/ast/token.dart' show TokenType; 7 import 'package:analyzer/dart/ast/token.dart' show TokenType;
8 import 'package:analyzer/error/error.dart'; 8 import 'package:analyzer/error/error.dart';
9 import 'package:analyzer/error/listener.dart' show ErrorReporter; 9 import 'package:analyzer/error/listener.dart' show ErrorReporter;
10 import 'package:analyzer/src/dart/scanner/scanner.dart'; 10 import 'package:analyzer/src/dart/scanner/scanner.dart';
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 @override 85 @override
86 @failingTest 86 @failingTest
87 void test_assignableExpression_arguments_normal_chain_typeArguments() { 87 void test_assignableExpression_arguments_normal_chain_typeArguments() {
88 // TODO(paulberry,ahe): AstBuilder doesn't implement 88 // TODO(paulberry,ahe): AstBuilder doesn't implement
89 // endTypeArguments(). 89 // endTypeArguments().
90 super.test_assignableExpression_arguments_normal_chain_typeArguments(); 90 super.test_assignableExpression_arguments_normal_chain_typeArguments();
91 } 91 }
92 92
93 @override 93 @override
94 @failingTest 94 @failingTest
95 void test_conditionalExpression_precedence_nullableType_as() {
96 // TODO(paulberry,ahe): Fasta doesn't support NNBD syntax yet.
97 super.test_conditionalExpression_precedence_nullableType_as();
98 }
99
100 @override
101 @failingTest
102 void test_conditionalExpression_precedence_nullableType_is() {
103 // TODO(paulberry,ahe): Fasta doesn't support NNBD syntax yet.
104 super.test_conditionalExpression_precedence_nullableType_is();
105 }
106
107 @override
108 @failingTest
109 void test_equalityExpression_normal() { 95 void test_equalityExpression_normal() {
110 // TODO(scheglov) error checking is not implemented 96 // TODO(scheglov) error checking is not implemented
111 super.test_equalityExpression_normal(); 97 super.test_equalityExpression_normal();
112 } 98 }
113 99
114 @override 100 @override
115 @failingTest 101 @failingTest
116 void test_equalityExpression_super() { 102 void test_equalityExpression_super() {
117 // TODO(scheglov) error checking is not implemented 103 // TODO(scheglov) error checking is not implemented
118 super.test_equalityExpression_super(); 104 super.test_equalityExpression_super();
119 } 105 }
120
121 @override
122 @failingTest
123 void test_logicalAndExpression_precedence_nullableType() {
124 // TODO(paulberry,ahe): Fasta doesn't support NNBD syntax yet.
125 super.test_logicalAndExpression_precedence_nullableType();
126 }
127
128 @override
129 @failingTest
130 void test_logicalOrExpression_precedence_nullableType() {
131 // TODO(paulberry,ahe): Fasta doesn't support NNBD syntax yet.
132 super.test_logicalOrExpression_precedence_nullableType();
133 }
134 } 106 }
135 107
136 /** 108 /**
137 * Tests of the fasta parser based on [ErrorParserTest]. 109 * Tests of the fasta parser based on [ErrorParserTest].
138 */ 110 */
139 @reflectiveTest 111 @reflectiveTest
140 class ErrorParserTest_Fasta extends FastaParserTestCase 112 class ErrorParserTest_Fasta extends FastaParserTestCase
141 with ErrorParserTestMixin { 113 with ErrorParserTestMixin {
142 @override 114 @override
143 @failingTest 115 @failingTest
(...skipping 1419 matching lines...) Expand 10 before | Expand all | Expand 10 after
1563 } 1535 }
1564 1536
1565 @override 1537 @override
1566 @failingTest 1538 @failingTest
1567 void test_nonUserDefinableOperator() { 1539 void test_nonUserDefinableOperator() {
1568 super.test_nonUserDefinableOperator(); 1540 super.test_nonUserDefinableOperator();
1569 } 1541 }
1570 1542
1571 @override 1543 @override
1572 @failingTest 1544 @failingTest
1573 void test_nullableTypeInExtends() {
1574 super.test_nullableTypeInExtends();
1575 }
1576
1577 @override
1578 @failingTest
1579 void test_nullableTypeInImplements() {
1580 super.test_nullableTypeInImplements();
1581 }
1582
1583 @override
1584 @failingTest
1585 void test_nullableTypeInWith() {
1586 super.test_nullableTypeInWith();
1587 }
1588
1589 @override
1590 @failingTest
1591 void test_nullableTypeParameter() {
1592 super.test_nullableTypeParameter();
1593 }
1594
1595 @override
1596 @failingTest
1597 void test_optionalAfterNormalParameters_named() { 1545 void test_optionalAfterNormalParameters_named() {
1598 super.test_optionalAfterNormalParameters_named(); 1546 super.test_optionalAfterNormalParameters_named();
1599 } 1547 }
1600 1548
1601 @override 1549 @override
1602 @failingTest 1550 @failingTest
1603 void test_optionalAfterNormalParameters_positional() { 1551 void test_optionalAfterNormalParameters_positional() {
1604 super.test_optionalAfterNormalParameters_positional(); 1552 super.test_optionalAfterNormalParameters_positional();
1605 } 1553 }
1606 1554
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
2088 } 2036 }
2089 2037
2090 @override 2038 @override
2091 @failingTest 2039 @failingTest
2092 void test_parseInstanceCreationExpression_type_named_typeArgumentComments() { 2040 void test_parseInstanceCreationExpression_type_named_typeArgumentComments() {
2093 super 2041 super
2094 .test_parseInstanceCreationExpression_type_named_typeArgumentComments(); 2042 .test_parseInstanceCreationExpression_type_named_typeArgumentComments();
2095 } 2043 }
2096 2044
2097 @override 2045 @override
2098 @failingTest
2099 void test_parseInstanceCreationExpression_type_typeArguments_nullable() {
2100 super.test_parseInstanceCreationExpression_type_typeArguments_nullable();
2101 }
2102
2103 @override
2104 void test_parseListLiteral_empty_oneToken_withComment() { 2046 void test_parseListLiteral_empty_oneToken_withComment() {
2105 super.test_parseListLiteral_empty_oneToken_withComment(); 2047 super.test_parseListLiteral_empty_oneToken_withComment();
2106 } 2048 }
2107 2049
2108 @override 2050 @override
2109 @failingTest 2051 @failingTest
2110 void test_parsePrimaryExpression_super() { 2052 void test_parsePrimaryExpression_super() {
2111 super.test_parsePrimaryExpression_super(); 2053 super.test_parsePrimaryExpression_super();
2112 } 2054 }
2113 2055
2114 @override 2056 @override
2115 @failingTest 2057 @failingTest
2116 void test_parseRelationalExpression_as_nullable() {
2117 super.test_parseRelationalExpression_as_nullable();
2118 }
2119
2120 @override
2121 @failingTest
2122 void test_parseRelationalExpression_is_nullable() {
2123 super.test_parseRelationalExpression_is_nullable();
2124 }
2125
2126 @override
2127 @failingTest
2128 void test_parseUnaryExpression_decrement_super() { 2058 void test_parseUnaryExpression_decrement_super() {
2129 super.test_parseUnaryExpression_decrement_super(); 2059 super.test_parseUnaryExpression_decrement_super();
2130 } 2060 }
2131 2061
2132 @override 2062 @override
2133 @failingTest 2063 @failingTest
2134 void test_parseUnaryExpression_decrement_super_withComment() { 2064 void test_parseUnaryExpression_decrement_super_withComment() {
2135 super.test_parseUnaryExpression_decrement_super_withComment(); 2065 super.test_parseUnaryExpression_decrement_super_withComment();
2136 } 2066 }
2137 } 2067 }
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
2613 2543
2614 @failingTest 2544 @failingTest
2615 void test_parseNormalFormalParameter_field_const_type2() { 2545 void test_parseNormalFormalParameter_field_const_type2() {
2616 // TODO(danrubel): should not be generating an error 2546 // TODO(danrubel): should not be generating an error
2617 super.test_parseNormalFormalParameter_field_const_type(); 2547 super.test_parseNormalFormalParameter_field_const_type();
2618 assertNoErrors(); 2548 assertNoErrors();
2619 } 2549 }
2620 2550
2621 @override 2551 @override
2622 @failingTest 2552 @failingTest
2623 void test_parseNormalFormalParameter_function_noType_nullable() {
2624 // TODO(scheglov): Not implemented: Nnbd
2625 super.test_parseNormalFormalParameter_function_noType_nullable();
2626 }
2627
2628 @override
2629 @failingTest
2630 void
2631 test_parseNormalFormalParameter_function_noType_typeParameters_nullable() {
2632 // TODO(scheglov): Not implemented: Nnbd
2633 super
2634 .test_parseNormalFormalParameter_function_noType_typeParameters_nullable ();
2635 }
2636
2637 @override
2638 @failingTest
2639 void test_parseNormalFormalParameter_function_type_nullable() {
2640 // TODO(scheglov): Not implemented: Nnbd
2641 super.test_parseNormalFormalParameter_function_type_nullable();
2642 }
2643
2644 @override
2645 @failingTest
2646 void test_parseNormalFormalParameter_function_type_typeParameters_nullable() {
2647 // TODO(scheglov): Not implemented: Nnbd
2648 super
2649 .test_parseNormalFormalParameter_function_type_typeParameters_nullable() ;
2650 }
2651
2652 @override
2653 @failingTest
2654 void test_parseNormalFormalParameter_function_void_nullable() {
2655 // TODO(scheglov): Not implemented: Nnbd
2656 super.test_parseNormalFormalParameter_function_void_nullable();
2657 }
2658
2659 @override
2660 @failingTest
2661 void test_parseNormalFormalParameter_function_void_typeParameters_nullable() {
2662 // TODO(scheglov): Not implemented: Nnbd
2663 super
2664 .test_parseNormalFormalParameter_function_void_typeParameters_nullable() ;
2665 }
2666
2667 @override
2668 @failingTest
2669 void test_parseNormalFormalParameter_simple_const_noType() { 2553 void test_parseNormalFormalParameter_simple_const_noType() {
2670 // TODO(brianwilkerson) Extra error: 2554 // TODO(brianwilkerson) Extra error:
2671 // Expected 0 errors of type ParserErrorCode.EXTRANEOUS_MODIFIER, found 1 (1 ) 2555 // Expected 0 errors of type ParserErrorCode.EXTRANEOUS_MODIFIER, found 1 (1 )
2672 super.test_parseNormalFormalParameter_simple_const_noType(); 2556 super.test_parseNormalFormalParameter_simple_const_noType();
2673 } 2557 }
2674 2558
2675 @failingTest 2559 @failingTest
2676 void test_parseNormalFormalParameter_simple_const_noType2() { 2560 void test_parseNormalFormalParameter_simple_const_noType2() {
2677 // TODO(danrubel): should not be generating an error 2561 // TODO(danrubel): should not be generating an error
2678 super.test_parseNormalFormalParameter_simple_const_noType(); 2562 super.test_parseNormalFormalParameter_simple_const_noType();
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after
3797 _locals.putIfAbsent(name, () => new BuilderProxy()); 3681 _locals.putIfAbsent(name, () => new BuilderProxy());
3798 3682
3799 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 3683 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
3800 } 3684 }
3801 3685
3802 @reflectiveTest 3686 @reflectiveTest
3803 class SimpleParserTest_Fasta extends FastaParserTestCase 3687 class SimpleParserTest_Fasta extends FastaParserTestCase
3804 with SimpleParserTestMixin { 3688 with SimpleParserTestMixin {
3805 @override 3689 @override
3806 @failingTest 3690 @failingTest
3807 void test_parseArgument_named() {
3808 // Uninteresting. Covered by the test_parseArgumentList_* methods.
3809 super.test_parseArgument_named();
3810 }
3811
3812 @override
3813 @failingTest
3814 void test_parseArgument_unnamed() {
3815 // Uninteresting. Covered by the test_parseArgumentList_* methods.
3816 super.test_parseArgument_unnamed();
3817 }
3818
3819 @override
3820 @failingTest
3821 void test_parseCombinator_hide() {
3822 // Uninteresting. Covered by the test_parseCombinators_* methods.
3823 super.test_parseCombinator_hide();
3824 }
3825
3826 @override
3827 @failingTest
3828 void test_parseCombinator_show() {
3829 // Uninteresting. Covered by the test_parseCombinators_* methods.
3830 super.test_parseCombinator_show();
3831 }
3832
3833 @override
3834 @failingTest
3835 void test_parseCommentAndMetadata_mcm() { 3691 void test_parseCommentAndMetadata_mcm() {
3836 // TODO(brianwilkerson) Does not find comment if not before first annotation 3692 // TODO(brianwilkerson) Does not find comment if not before first annotation
3837 super.test_parseCommentAndMetadata_mcm(); 3693 super.test_parseCommentAndMetadata_mcm();
3838 } 3694 }
3839 3695
3840 @override 3696 @override
3841 @failingTest 3697 @failingTest
3842 void test_parseCommentAndMetadata_mcmc() { 3698 void test_parseCommentAndMetadata_mcmc() {
3843 // TODO(brianwilkerson) Does not find comment if not before first annotation 3699 // TODO(brianwilkerson) Does not find comment if not before first annotation
3844 super.test_parseCommentAndMetadata_mcmc(); 3700 super.test_parseCommentAndMetadata_mcmc();
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
4281 @override 4137 @override
4282 @failingTest 4138 @failingTest
4283 void test_parseTypeArgumentList_nested_withComment_tripple() { 4139 void test_parseTypeArgumentList_nested_withComment_tripple() {
4284 // TODO(brianwilkerson) Does not capture comment when splitting '>>' into 4140 // TODO(brianwilkerson) Does not capture comment when splitting '>>' into
4285 // two tokens. 4141 // two tokens.
4286 super.test_parseTypeArgumentList_nested_withComment_tripple(); 4142 super.test_parseTypeArgumentList_nested_withComment_tripple();
4287 } 4143 }
4288 4144
4289 @override 4145 @override
4290 @failingTest 4146 @failingTest
4291 void test_parseTypeName_parameterized_nullable() {
4292 // TODO(brianwilkerson) exception:
4293 // UnimplementedError
4294 // test/generated/parser_fasta_test.dart 2189:7 Fast aParserTestCase.enableNnbd=
4295 // test/generated/parser_test.dart 12270:5 Fast aParserTestCase&SimpleParserTestMixin.test_parseTypeName_parameterized_nullable
4296 super.test_parseTypeName_parameterized_nullable();
4297 }
4298
4299 @override
4300 @failingTest
4301 void test_parseTypeName_simple_nullable() {
4302 // TODO(brianwilkerson) exception:
4303 // UnimplementedError
4304 // test/generated/parser_fasta_test.dart 2189:7 Fast aParserTestCase.enableNnbd=
4305 // test/generated/parser_test.dart 12270:5 Fast aParserTestCase&SimpleParserTestMixin.test_parseTypeName_parameterized_nullable
4306 super.test_parseTypeName_simple_nullable();
4307 }
4308
4309 @override
4310 @failingTest
4311 void test_parseTypeParameter_bounded_nullable() {
4312 // TODO(brianwilkerson) exception:
4313 // UnimplementedError
4314 // test/generated/parser_fasta_test.dart 2189:7 Fast aParserTestCase.enableNnbd=
4315 // test/generated/parser_test.dart 12270:5 Fast aParserTestCase&SimpleParserTestMixin.test_parseTypeName_parameterized_nullable
4316 super.test_parseTypeParameter_bounded_nullable();
4317 }
4318
4319 @override
4320 @failingTest
4321 void test_parseTypeParameterList_parameterizedWithTrailingEquals() { 4147 void test_parseTypeParameterList_parameterizedWithTrailingEquals() {
4322 // TODO(brianwilkerson) reportUnrecoverableError 4148 // TODO(brianwilkerson) reportUnrecoverableError
4323 super.test_parseTypeParameterList_parameterizedWithTrailingEquals(); 4149 super.test_parseTypeParameterList_parameterizedWithTrailingEquals();
4324 } 4150 }
4325 4151
4326 @override 4152 @override
4327 @failingTest 4153 @failingTest
4328 void test_parseTypeParameterList_single() { 4154 void test_parseTypeParameterList_single() {
4329 // TODO(brianwilkerson) Does not use all tokens. 4155 // TODO(brianwilkerson) Does not use all tokens.
4330 super.test_parseTypeParameterList_single(); 4156 super.test_parseTypeParameterList_single();
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
4528 @override 4354 @override
4529 @failingTest 4355 @failingTest
4530 void test_parseDirectives_mixed() { 4356 void test_parseDirectives_mixed() {
4531 // TODO(paulberry,ahe): This test verifies the analyzer parser's ability to 4357 // TODO(paulberry,ahe): This test verifies the analyzer parser's ability to
4532 // stop parsing as soon as the first non-directive is encountered; this is 4358 // stop parsing as soon as the first non-directive is encountered; this is
4533 // useful for quickly traversing an import graph. Consider adding a similar 4359 // useful for quickly traversing an import graph. Consider adding a similar
4534 // ability to Fasta's parser. 4360 // ability to Fasta's parser.
4535 super.test_parseDirectives_mixed(); 4361 super.test_parseDirectives_mixed();
4536 } 4362 }
4537 } 4363 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698