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

Side by Side Diff: pkg/compiler/lib/src/enqueue.dart

Issue 2613213003: Use entities in ClosedWorld interface (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 | « no previous file | pkg/compiler/lib/src/inferrer/simple_types_inferrer.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 dart2js.enqueue; 5 library dart2js.enqueue;
6 6
7 import 'dart:collection' show Queue; 7 import 'dart:collection' show Queue;
8 8
9 import 'cache_strategy.dart'; 9 import 'cache_strategy.dart';
10 import 'common/backend_api.dart' show Backend; 10 import 'common/backend_api.dart' show Backend;
11 import 'common/resolution.dart' show Resolution; 11 import 'common/resolution.dart' show Resolution;
12 import 'common/tasks.dart' show CompilerTask; 12 import 'common/tasks.dart' show CompilerTask;
13 import 'common/work.dart' show WorkItem; 13 import 'common/work.dart' show WorkItem;
14 import 'common.dart'; 14 import 'common.dart';
15 import 'compiler.dart' show Compiler, GlobalDependencyRegistry; 15 import 'compiler.dart' show Compiler, GlobalDependencyRegistry;
16 import 'options.dart'; 16 import 'options.dart';
17 import 'elements/resolution_types.dart' show DartType, InterfaceType;
18 import 'elements/elements.dart' 17 import 'elements/elements.dart'
19 show 18 show
20 AnalyzableElement, 19 AnalyzableElement,
21 ClassElement, 20 ClassElement,
22 ConstructorElement, 21 ConstructorElement,
23 Element, 22 Element,
24 Entity, 23 Entity,
25 MemberElement; 24 MemberElement;
26 import 'elements/entities.dart'; 25 import 'elements/entities.dart';
26 import 'elements/resolution_types.dart' show DartType, InterfaceType;
27 import 'native/native.dart' as native; 27 import 'native/native.dart' as native;
28 import 'types/types.dart' show TypeMaskStrategy;
29 import 'universe/world_builder.dart'; 28 import 'universe/world_builder.dart';
30 import 'universe/use.dart' 29 import 'universe/use.dart'
31 show DynamicUse, StaticUse, StaticUseKind, TypeUse, TypeUseKind; 30 show DynamicUse, StaticUse, StaticUseKind, TypeUse, TypeUseKind;
32 import 'universe/world_impact.dart' 31 import 'universe/world_impact.dart'
33 show ImpactStrategy, ImpactUseCase, WorldImpact, WorldImpactVisitor; 32 show ImpactStrategy, ImpactUseCase, WorldImpact, WorldImpactVisitor;
34 import 'util/enumset.dart'; 33 import 'util/enumset.dart';
35 import 'util/util.dart' show Setlet; 34 import 'util/util.dart' show Setlet;
36 import 'world.dart' show OpenWorld; 35 import 'world.dart' show OpenWorld;
37 36
38 class EnqueueTask extends CompilerTask { 37 class EnqueueTask extends CompilerTask {
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 @override 540 @override
542 WorkItem createWorkItem(MemberElement element) { 541 WorkItem createWorkItem(MemberElement element) {
543 assert(invariant(element, element.isDeclaration)); 542 assert(invariant(element, element.isDeclaration));
544 if (element.isMalformed) return null; 543 if (element.isMalformed) return null;
545 544
546 assert(invariant(element, element is AnalyzableElement, 545 assert(invariant(element, element is AnalyzableElement,
547 message: 'Element $element is not analyzable.')); 546 message: 'Element $element is not analyzable.'));
548 return _resolution.createWorkItem(element); 547 return _resolution.createWorkItem(element);
549 } 548 }
550 } 549 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698