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

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

Issue 2647043002: Fix hints reported by analyzer. (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
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 '../elements/resolution_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 'call_structure.dart' show CallStructure;
25 import 'selector.dart' show Selector; 24 import 'selector.dart' show Selector;
26 import 'use.dart' show DynamicUse, DynamicUseKind, StaticUse, StaticUseKind; 25 import 'use.dart' show DynamicUse, DynamicUseKind, StaticUse, StaticUseKind;
27 26
28 /// The known constraint on receiver for a dynamic call site. 27 /// The known constraint on receiver for a dynamic call site.
29 /// 28 ///
30 /// This can for instance be used to constrain this dynamic call to `foo` to 29 /// This can for instance be used to constrain this dynamic call to `foo` to
31 /// 'receivers of the exact instance `Bar`': 30 /// 'receivers of the exact instance `Bar`':
32 /// 31 ///
33 /// class Bar { 32 /// class Bar {
34 /// void foo() {} 33 /// void foo() {}
(...skipping 1932 matching lines...) Expand 10 before | Expand all | Expand 10 after
1967 @override 1966 @override
1968 EnumSet<MemberUse> get _originalUse => MemberUses.ALL_STATIC; 1967 EnumSet<MemberUse> get _originalUse => MemberUses.ALL_STATIC;
1969 } 1968 }
1970 1969
1971 void removeFromSet(Map<String, Set<_MemberUsage>> map, Element element) { 1970 void removeFromSet(Map<String, Set<_MemberUsage>> map, Element element) {
1972 Set<_MemberUsage> set = map[element.name]; 1971 Set<_MemberUsage> set = map[element.name];
1973 if (set == null) return; 1972 if (set == null) return;
1974 set.removeAll( 1973 set.removeAll(
1975 set.where((_MemberUsage usage) => usage.entity == element).toList()); 1974 set.where((_MemberUsage usage) => usage.entity == element).toList());
1976 } 1975 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698