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

Side by Side Diff: tests/compiler/dart2js/kernel/compile_from_dill_test_helper.dart

Issue 2968383002: Add ConstructorBodyEntity (Closed)
Patch Set: Skip non-live constructor bodies Created 3 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
« no previous file with comments | « pkg/compiler/lib/src/universe/use.dart ('k') | tests/compiler/dart2js/kernel/test_helpers.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 // Helper to test compilation equivalence between source and .dill based 5 // Helper to test compilation equivalence between source and .dill based
6 // compilation. 6 // compilation.
7 library dart2js.kernel.compile_from_dill_test_helper; 7 library dart2js.kernel.compile_from_dill_test_helper;
8 8
9 import 'dart:async'; 9 import 'dart:async';
10 import 'dart:io'; 10 import 'dart:io';
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 'main.dart': ''' 51 'main.dart': '''
52 import 'dart:html'; 52 import 'dart:html';
53 53
54 foo({named}) => 1; 54 foo({named}) => 1;
55 bar(a) => !a; 55 bar(a) => !a;
56 class Class { 56 class Class {
57 var field; 57 var field;
58 static var staticField; 58 static var staticField;
59 59
60 Class(); 60 Class();
61 Class.named(this.field); 61 Class.named(this.field) {
62 staticField = 42;
63 }
62 64
63 method() {} 65 method() {}
64 } 66 }
65 67
66 class SubClass extends Class { 68 class SubClass extends Class {
67 method() { 69 method() {
68 super.method(); 70 super.method();
69 } 71 }
70 } 72 }
71 73
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 Map<String, BufferedOutputSink> map2 = collector2.outputMap[outputType]; 306 Map<String, BufferedOutputSink> map2 = collector2.outputMap[outputType];
305 checkSets(map1.keys, map2.keys, 'output', equality); 307 checkSets(map1.keys, map2.keys, 'output', equality);
306 map1.forEach((String name, BufferedOutputSink output1) { 308 map1.forEach((String name, BufferedOutputSink output1) {
307 BufferedOutputSink output2 = map2[name]; 309 BufferedOutputSink output2 = map2[name];
308 Expect.stringEquals(output1.text, output2.text); 310 Expect.stringEquals(output1.text, output2.text);
309 }); 311 });
310 }); 312 });
311 } 313 }
312 return ResultKind.success; 314 return ResultKind.success;
313 } 315 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/universe/use.dart ('k') | tests/compiler/dart2js/kernel/test_helpers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698