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

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

Issue 1880323002: dart2js cleanup: remove unused imports and variables (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge master Created 4 years, 8 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/dart_types.dart ('k') | pkg/compiler/lib/src/dump_info.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 deferred_load; 5 library deferred_load;
6 6
7 import 'common.dart';
8 import 'common/backend_api.dart' show Backend; 7 import 'common/backend_api.dart' show Backend;
9 import 'common/tasks.dart' show CompilerTask; 8 import 'common/tasks.dart' show CompilerTask;
9 import 'common.dart';
10 import 'compiler.dart' show Compiler; 10 import 'compiler.dart' show Compiler;
11 import 'constants/values.dart' 11 import 'constants/values.dart'
12 show 12 show
13 ConstantValue, 13 ConstantValue,
14 ConstructedConstantValue, 14 ConstructedConstantValue,
15 DeferredConstantValue, 15 DeferredConstantValue,
16 StringConstantValue; 16 StringConstantValue;
17 import 'dart_types.dart'; 17 import 'dart_types.dart';
18 import 'elements/elements.dart' 18 import 'elements/elements.dart'
19 show 19 show
20 AccessorElement, 20 AccessorElement,
21 AstElement, 21 AstElement,
22 ClassElement, 22 ClassElement,
23 Element, 23 Element,
24 ElementKind,
25 Elements, 24 Elements,
26 ExportElement, 25 ExportElement,
27 FunctionElement, 26 FunctionElement,
28 ImportElement, 27 ImportElement,
29 LibraryElement, 28 LibraryElement,
30 LocalFunctionElement,
31 MetadataAnnotation, 29 MetadataAnnotation,
32 PrefixElement, 30 PrefixElement,
33 ResolvedAstKind, 31 ResolvedAstKind,
34 ScopeContainerElement,
35 TypedefElement; 32 TypedefElement;
36 import 'js_backend/js_backend.dart' show JavaScriptBackend; 33 import 'js_backend/js_backend.dart' show JavaScriptBackend;
37 import 'resolution/resolution.dart' show AnalyzableElementX; 34 import 'resolution/resolution.dart' show AnalyzableElementX;
38 import 'resolution/tree_elements.dart' show TreeElements; 35 import 'resolution/tree_elements.dart' show TreeElements;
39 import 'tree/tree.dart' as ast; 36 import 'tree/tree.dart' as ast;
40 import 'tree/tree.dart' 37 import 'tree/tree.dart' show Import, Node;
41 show 38 import 'universe/use.dart' show StaticUse, TypeUse, TypeUseKind;
42 Import,
43 LibraryTag,
44 LibraryDependency,
45 LiteralDartString,
46 LiteralString,
47 NewExpression,
48 Node;
49 import 'universe/use.dart' show DynamicUse, StaticUse, TypeUse, TypeUseKind;
50 import 'universe/world_impact.dart' 39 import 'universe/world_impact.dart'
51 show ImpactUseCase, WorldImpact, WorldImpactVisitorImpl; 40 show ImpactUseCase, WorldImpact, WorldImpactVisitorImpl;
52 import 'util/setlet.dart' show Setlet; 41 import 'util/setlet.dart' show Setlet;
53 import 'util/uri_extras.dart' as uri_extras; 42 import 'util/uri_extras.dart' as uri_extras;
54 import 'util/util.dart' show Link, makeUnique; 43 import 'util/util.dart' show Link, makeUnique;
55 44
56 /// A "hunk" of the program that will be loaded whenever one of its [imports] 45 /// A "hunk" of the program that will be loaded whenever one of its [imports]
57 /// are loaded. 46 /// are loaded.
58 /// 47 ///
59 /// Elements that are only used in one deferred import, is in an OutputUnit with 48 /// Elements that are only used in one deferred import, is in an OutputUnit with
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 return result; 982 return result;
994 } 983 }
995 984
996 bool operator ==(other) { 985 bool operator ==(other) {
997 if (other is! _DeclaredDeferredImport) return false; 986 if (other is! _DeclaredDeferredImport) return false;
998 return declaration == other.declaration; 987 return declaration == other.declaration;
999 } 988 }
1000 989
1001 int get hashCode => declaration.hashCode * 17; 990 int get hashCode => declaration.hashCode * 17;
1002 } 991 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/dart_types.dart ('k') | pkg/compiler/lib/src/dump_info.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698