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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/full_emitter/emitter.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
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 dart2js.js_emitter.full_emitter; 5 library dart2js.js_emitter.full_emitter;
6 6
7 import 'dart:collection' show HashMap;
7 import 'dart:convert'; 8 import 'dart:convert';
8 import 'dart:collection' show HashMap;
9 9
10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; 10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames;
11 import 'package:js_runtime/shared/embedded_names.dart' 11 import 'package:js_runtime/shared/embedded_names.dart'
12 show JsBuiltin, JsGetName; 12 show JsBuiltin, JsGetName;
13 13
14 import '../headers.dart';
15 import '../js_emitter.dart' hide Emitter;
16 import '../js_emitter.dart' as js_emitter show Emitter;
17 import '../model.dart';
18 import '../program_builder/program_builder.dart';
19 import '../constant_ordering.dart' show deepCompareConstants;
20
21 import '../../common.dart'; 14 import '../../common.dart';
22 import '../../common/names.dart' show Names; 15 import '../../common/names.dart' show Names;
23 import '../../compiler.dart' show Compiler; 16 import '../../compiler.dart' show Compiler;
24 import '../../constants/values.dart'; 17 import '../../constants/values.dart';
25 import '../../core_types.dart' show CoreClasses; 18 import '../../core_types.dart' show CoreClasses;
26 import '../../dart_types.dart' show DartType; 19 import '../../dart_types.dart' show DartType;
27 import '../../deferred_load.dart' show OutputUnit; 20 import '../../deferred_load.dart' show OutputUnit;
28 import '../../elements/elements.dart' 21 import '../../elements/elements.dart'
29 show 22 show
30 ClassElement, 23 ClassElement,
31 ConstructorBodyElement,
32 Element, 24 Element,
33 Elements, 25 Elements,
34 ElementKind,
35 FieldElement, 26 FieldElement,
36 FunctionElement, 27 FunctionElement,
37 FunctionSignature, 28 FunctionSignature,
38 LibraryElement, 29 LibraryElement,
39 MetadataAnnotation, 30 MetadataAnnotation,
40 MethodElement, 31 MethodElement,
41 MemberElement,
42 Name, 32 Name,
43 ParameterElement,
44 TypedefElement, 33 TypedefElement,
45 TypeVariableElement,
46 VariableElement; 34 VariableElement;
47 import '../../hash/sha1.dart' show Hasher; 35 import '../../hash/sha1.dart' show Hasher;
48 import '../../io/code_output.dart'; 36 import '../../io/code_output.dart';
49 import '../../io/line_column_provider.dart' 37 import '../../io/line_column_provider.dart'
50 show LineColumnCollector, LineColumnProvider; 38 show LineColumnCollector, LineColumnProvider;
51 import '../../io/source_map_builder.dart' show SourceMapBuilder; 39 import '../../io/source_map_builder.dart' show SourceMapBuilder;
52 import '../../js/js.dart' as jsAst; 40 import '../../js/js.dart' as jsAst;
53 import '../../js/js.dart' show js; 41 import '../../js/js.dart' show js;
54 import '../../js_backend/backend_helpers.dart' show BackendHelpers; 42 import '../../js_backend/backend_helpers.dart' show BackendHelpers;
55 import '../../js_backend/js_backend.dart' 43 import '../../js_backend/js_backend.dart'
56 show 44 show
57 CheckedModeHelper,
58 CompoundName, 45 CompoundName,
59 ConstantEmitter, 46 ConstantEmitter,
60 CustomElementsAnalysis,
61 GetterName, 47 GetterName,
62 JavaScriptBackend, 48 JavaScriptBackend,
63 JavaScriptConstantCompiler, 49 JavaScriptConstantCompiler,
64 Namer, 50 Namer,
65 RuntimeTypes,
66 SetterName, 51 SetterName,
67 Substitution,
68 TypeCheck,
69 TypeChecks,
70 TypeVariableHandler; 52 TypeVariableHandler;
71 import '../../universe/call_structure.dart' show CallStructure; 53 import '../../universe/call_structure.dart' show CallStructure;
72 import '../../universe/selector.dart' show Selector; 54 import '../../universe/selector.dart' show Selector;
73 import '../../util/characters.dart' show $$, $A, $HASH, $PERIOD, $Z, $a, $z; 55 import '../../util/characters.dart' show $$, $A, $HASH, $Z, $a, $z;
74 import '../../util/uri_extras.dart' show relativize; 56 import '../../util/uri_extras.dart' show relativize;
75 import '../../util/util.dart' show equalElements; 57 import '../../util/util.dart' show equalElements;
58 import '../constant_ordering.dart' show deepCompareConstants;
59 import '../headers.dart';
60 import '../js_emitter.dart' hide Emitter;
61 import '../js_emitter.dart' as js_emitter show Emitter;
62 import '../model.dart';
63 import '../program_builder/program_builder.dart';
76 64
77 part 'class_builder.dart'; 65 part 'class_builder.dart';
78 part 'class_emitter.dart'; 66 part 'class_emitter.dart';
79 part 'code_emitter_helper.dart'; 67 part 'code_emitter_helper.dart';
80 part 'container_builder.dart'; 68 part 'container_builder.dart';
81 part 'declarations.dart'; 69 part 'declarations.dart';
82 part 'deferred_output_unit_hash.dart'; 70 part 'deferred_output_unit_hash.dart';
83 part 'interceptor_emitter.dart'; 71 part 'interceptor_emitter.dart';
84 part 'nsm_emitter.dart'; 72 part 'nsm_emitter.dart';
85 part 'setup_program_builder.dart'; 73 part 'setup_program_builder.dart';
(...skipping 2057 matching lines...) Expand 10 before | Expand all | Expand 10 after
2143 if (cachedElements.isEmpty) return; 2131 if (cachedElements.isEmpty) return;
2144 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) { 2132 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) {
2145 if (element.isInstanceMember) { 2133 if (element.isInstanceMember) {
2146 cachedClassBuilders.remove(element.enclosingClass); 2134 cachedClassBuilders.remove(element.enclosingClass);
2147 2135
2148 nativeEmitter.cachedBuilders.remove(element.enclosingClass); 2136 nativeEmitter.cachedBuilders.remove(element.enclosingClass);
2149 } 2137 }
2150 } 2138 }
2151 } 2139 }
2152 } 2140 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/namer.dart ('k') | pkg/compiler/lib/src/js_emitter/js_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698