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

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

Issue 2793113002: Convert constructor initializers in endInitializers() and other tweaks. (Closed)
Patch Set: Created 3 years, 8 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
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/fasta/ast_builder.dart'; 9 import 'package:analyzer/src/fasta/ast_builder.dart';
10 import 'package:analyzer/src/fasta/element_store.dart'; 10 import 'package:analyzer/src/fasta/element_store.dart';
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // TODO(paulberry): Fasta doesn't support generic comment syntax 87 // TODO(paulberry): Fasta doesn't support generic comment syntax
88 super.test_parseClassMember_method_generic_comment_void(); 88 super.test_parseClassMember_method_generic_comment_void();
89 } 89 }
90 90
91 @override 91 @override
92 @failingTest 92 @failingTest
93 void test_parseConstructor_assert() { 93 void test_parseConstructor_assert() {
94 // TODO(paulberry): Fasta doesn't support asserts in initializers 94 // TODO(paulberry): Fasta doesn't support asserts in initializers
95 super.test_parseConstructor_assert(); 95 super.test_parseConstructor_assert();
96 } 96 }
97
98 @override
99 @failingTest
100 void test_parseConstructorFieldInitializer_qualified() {
101 // TODO(paulberry): Unhandled event: ThisExpression
102 super.test_parseConstructorFieldInitializer_qualified();
103 }
104
105 @override
106 @failingTest
107 void test_parseConstructorFieldInitializer_unqualified() {
108 // TODO(paulberry): Expected: an object with length of <1>
109 super.test_parseConstructorFieldInitializer_unqualified();
110 }
111 } 97 }
112 98
113 /** 99 /**
114 * Tests of the fasta parser based on [ComplexParserTestMixin]. 100 * Tests of the fasta parser based on [ComplexParserTestMixin].
115 */ 101 */
116 @reflectiveTest 102 @reflectiveTest
117 class ComplexParserTest_Fasta extends FastaParserTestCase 103 class ComplexParserTest_Fasta extends FastaParserTestCase
118 with ComplexParserTestMixin { 104 with ComplexParserTestMixin {
119 @override 105 @override
120 @failingTest 106 @failingTest
(...skipping 21 matching lines...) Expand all
142 @override 128 @override
143 @failingTest 129 @failingTest
144 void test_conditionalExpression_precedence_nullableType_is() { 130 void test_conditionalExpression_precedence_nullableType_is() {
145 // TODO(paulberry,ahe): Fasta doesn't support NNBD syntax yet. 131 // TODO(paulberry,ahe): Fasta doesn't support NNBD syntax yet.
146 super.test_conditionalExpression_precedence_nullableType_is(); 132 super.test_conditionalExpression_precedence_nullableType_is();
147 } 133 }
148 134
149 @override 135 @override
150 @failingTest 136 @failingTest
151 void test_equalityExpression_normal() { 137 void test_equalityExpression_normal() {
152 // TODO(paulberry,ahe): bad error recovery 138 // TODO(scheglov) error checking is not implemented
153 super.test_equalityExpression_normal(); 139 super.test_equalityExpression_normal();
154 } 140 }
155 141
156 @override 142 @override
157 @failingTest 143 @failingTest
158 void test_equalityExpression_super() { 144 void test_equalityExpression_super() {
159 // TODO(paulberry,ahe): AstBuilder doesn't implement 145 // TODO(scheglov) error checking is not implemented
160 // handleSuperExpression().
161 super.test_equalityExpression_super(); 146 super.test_equalityExpression_super();
162 } 147 }
163 148
164 @override 149 @override
165 @failingTest 150 @failingTest
166 void test_logicalAndExpression_precedence_nullableType() { 151 void test_logicalAndExpression_precedence_nullableType() {
167 // TODO(paulberry,ahe): Fasta doesn't support NNBD syntax yet. 152 // TODO(paulberry,ahe): Fasta doesn't support NNBD syntax yet.
168 super.test_logicalAndExpression_precedence_nullableType(); 153 super.test_logicalAndExpression_precedence_nullableType();
169 } 154 }
170 155
171 @override 156 @override
172 @failingTest 157 @failingTest
173 void test_logicalOrExpression_precedence_nullableType() { 158 void test_logicalOrExpression_precedence_nullableType() {
174 // TODO(paulberry,ahe): Fasta doesn't support NNBD syntax yet. 159 // TODO(paulberry,ahe): Fasta doesn't support NNBD syntax yet.
175 super.test_logicalOrExpression_precedence_nullableType(); 160 super.test_logicalOrExpression_precedence_nullableType();
176 } 161 }
177
178 @override
179 @failingTest
180 void test_topLevelFunction_nestedGenericFunction() {
181 // TODO(paulberry): Implement parseCompilationUnitWithOptions
182 super.test_topLevelFunction_nestedGenericFunction();
183 }
184 } 162 }
185 163
186 /** 164 /**
187 * Proxy implementation of [KernelClassElement] used by Fasta parser tests. 165 * Proxy implementation of [KernelClassElement] used by Fasta parser tests.
188 * 166 *
189 * All undeclared identifiers are presumed to resolve to an instance of this 167 * All undeclared identifiers are presumed to resolve to an instance of this
190 * class. 168 * class.
191 */ 169 */
192 class ElementProxy implements KernelClassElement { 170 class ElementProxy implements KernelClassElement {
193 @override 171 @override
(...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 } 1174 }
1197 1175
1198 @override 1176 @override
1199 @failingTest 1177 @failingTest
1200 void test_parsePartOfDirective_uri() { 1178 void test_parsePartOfDirective_uri() {
1201 // TODO(paulberry,ahe): URIs in "part of" declarations are not supported by 1179 // TODO(paulberry,ahe): URIs in "part of" declarations are not supported by
1202 // Fasta. 1180 // Fasta.
1203 super.test_parsePartOfDirective_uri(); 1181 super.test_parsePartOfDirective_uri();
1204 } 1182 }
1205 } 1183 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/fasta/ast_builder.dart ('k') | pkg/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698