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

Side by Side Diff: pkg/compiler/lib/src/universe/world_builder.dart

Issue 2606253002: Move dart_types to elements/resolution_types (Closed)
Patch Set: Created 3 years, 11 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') | pkg/compiler/lib/src/use_unused_api.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 universe; 5 library universe;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import '../cache_strategy.dart'; 9 import '../cache_strategy.dart';
10 import '../common.dart'; 10 import '../common.dart';
11 import '../common/backend_api.dart' show Backend; 11 import '../common/backend_api.dart' show Backend;
12 import '../common/names.dart' show Identifiers; 12 import '../common/names.dart' show Identifiers;
13 import '../common/resolution.dart' show Resolution; 13 import '../common/resolution.dart' show Resolution;
14 import '../compiler.dart' show Compiler; 14 import '../compiler.dart' show Compiler;
15 import '../core_types.dart'; 15 import '../core_types.dart';
16 import '../dart_types.dart'; 16 import '../elements/resolution_types.dart';
17 import '../elements/elements.dart'; 17 import '../elements/elements.dart';
18 import '../elements/entities.dart'; 18 import '../elements/entities.dart';
19 import '../universe/class_set.dart'; 19 import '../universe/class_set.dart';
20 import '../universe/function_set.dart' show FunctionSetBuilder; 20 import '../universe/function_set.dart' show FunctionSetBuilder;
21 import '../util/enumset.dart'; 21 import '../util/enumset.dart';
22 import '../util/util.dart'; 22 import '../util/util.dart';
23 import '../world.dart' show World, ClosedWorld, ClosedWorldImpl, OpenWorld; 23 import '../world.dart' show World, ClosedWorld, ClosedWorldImpl, OpenWorld;
24 import 'selector.dart' show Selector; 24 import 'selector.dart' show Selector;
25 import 'use.dart' show DynamicUse, DynamicUseKind, StaticUse, StaticUseKind; 25 import 'use.dart' show DynamicUse, DynamicUseKind, StaticUse, StaticUseKind;
26 26
(...skipping 1912 matching lines...) Expand 10 before | Expand all | Expand 10 after
1939 @override 1939 @override
1940 EnumSet<MemberUse> get _originalUse => MemberUses.ALL_STATIC; 1940 EnumSet<MemberUse> get _originalUse => MemberUses.ALL_STATIC;
1941 } 1941 }
1942 1942
1943 void removeFromSet(Map<String, Set<_MemberUsage>> map, Element element) { 1943 void removeFromSet(Map<String, Set<_MemberUsage>> map, Element element) {
1944 Set<_MemberUsage> set = map[element.name]; 1944 Set<_MemberUsage> set = map[element.name];
1945 if (set == null) return; 1945 if (set == null) return;
1946 set.removeAll( 1946 set.removeAll(
1947 set.where((_MemberUsage usage) => usage.entity == element).toList()); 1947 set.where((_MemberUsage usage) => usage.entity == element).toList());
1948 } 1948 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/universe/use.dart ('k') | pkg/compiler/lib/src/use_unused_api.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698