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

Side by Side Diff: tests/compiler/dart2js/serialization/test_data.dart

Issue 1979613002: Use ResolvedAst in constant initializers (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 4 years, 7 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 | « pkg/compiler/lib/src/compile_time_constants.dart ('k') | no next file » | 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 library dart2js.serialization_test_data; 5 library dart2js.serialization_test_data;
6 6
7 const List<Test> TESTS = const <Test>[ 7 const List<Test> TESTS = const <Test>[
8 const Test(const { 8 const Test(const {
9 'main.dart': 'main() {}' 9 'main.dart': 'main() {}'
10 }), 10 }),
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 }), 202 }),
203 203
204 const Test(const { 204 const Test(const {
205 'main.dart': ''' 205 'main.dart': '''
206 class A { 206 class A {
207 A(); 207 A();
208 } 208 }
209 main() => new A(); 209 main() => new A();
210 ''', 210 ''',
211 }), 211 }),
212
213 const Test(const {
214 'main.dart': '''
215 class C {
216 const C();
217 }
218 main() => const C();'''
219 }),
212 ]; 220 ];
213 221
214 class Test { 222 class Test {
215 final Map sourceFiles; 223 final Map sourceFiles;
216 final int expectedErrorCount; 224 final int expectedErrorCount;
217 final int expectedWarningCount; 225 final int expectedWarningCount;
218 final int expectedHintCount; 226 final int expectedHintCount;
219 final int expectedInfoCount; 227 final int expectedInfoCount;
220 228
221 const Test(this.sourceFiles, { 229 const Test(this.sourceFiles, {
222 this.expectedErrorCount: 0, 230 this.expectedErrorCount: 0,
223 this.expectedWarningCount: 0, 231 this.expectedWarningCount: 0,
224 this.expectedHintCount: 0, 232 this.expectedHintCount: 0,
225 this.expectedInfoCount: 0}); 233 this.expectedInfoCount: 0});
226 } 234 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/compile_time_constants.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698