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

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

Issue 2848553002: Include setters in KClassEnv.forEachClassMember (Closed)
Patch Set: Created 3 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/kernel/element_map.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) 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 // Partial test that the closed world computed from [WorldImpact]s derived from 5 // Partial test that the closed world computed from [WorldImpact]s derived from
6 // kernel is equivalent to the original computed from resolution. 6 // kernel is equivalent to the original computed from resolution.
7 library dart2js.kernel.closed_world2_test; 7 library dart2js.kernel.closed_world2_test;
8 8
9 import 'dart:async'; 9 import 'dart:async';
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 import '../serialization/test_helper.dart'; 50 import '../serialization/test_helper.dart';
51 51
52 import 'closed_world_test.dart' hide KernelWorkItemBuilder; 52 import 'closed_world_test.dart' hide KernelWorkItemBuilder;
53 import 'impact_test.dart'; 53 import 'impact_test.dart';
54 54
55 const SOURCE = const { 55 const SOURCE = const {
56 'main.dart': ''' 56 'main.dart': '''
57 import 'dart:html'; 57 import 'dart:html';
58 import 'package:expect/expect.dart'; 58 import 'package:expect/expect.dart';
59 59
60 class ClassWithSetter {
61 void set setter(_) {}
62 }
63
60 @NoInline() 64 @NoInline()
61 main() { 65 main() {
62 print('Hello World'); 66 print('Hello World');
63 ''.contains; // Trigger member closurization. 67 ''.contains; // Trigger member closurization.
64 new Element.div(); 68 new Element.div();
69 new ClassWithSetter().setter = null;
65 } 70 }
66 ''' 71 '''
67 }; 72 };
68 73
69 main(List<String> args) { 74 main(List<String> args) {
70 asyncTest(() async { 75 asyncTest(() async {
71 await mainInternal(args); 76 await mainInternal(args);
72 }); 77 });
73 } 78 }
74 79
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 299
295 MemoryDillLibraryLoaderTask(KernelToElementMap elementMap, 300 MemoryDillLibraryLoaderTask(KernelToElementMap elementMap,
296 DiagnosticReporter reporter, Measurer measurer, this.program) 301 DiagnosticReporter reporter, Measurer measurer, this.program)
297 : super(elementMap, null, null, reporter, measurer); 302 : super(elementMap, null, null, reporter, measurer);
298 303
299 Future<LoadedLibraries> loadLibrary(Uri resolvedUri, 304 Future<LoadedLibraries> loadLibrary(Uri resolvedUri,
300 {bool skipFileWithPartOfTag: false}) async { 305 {bool skipFileWithPartOfTag: false}) async {
301 return createLoadedLibraries(program); 306 return createLoadedLibraries(program);
302 } 307 }
303 } 308 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/element_map.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698