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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/parameter_stub_generator.dart

Issue 2641813006: Change js_emitter parts into libraries (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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 part of dart2js.js_emitter; 5 library dart2js.js_emitter.parameter_stub_generator;
6
7 import '../closure.dart'
8 show ClosureClassElement;
9 import '../common.dart';
10 import '../compiler.dart' show Compiler;
11 import '../constants/values.dart';
12 import '../elements/elements.dart'
13 show
14 ClassElement,
15 FunctionElement,
16 FunctionSignature,
17 MethodElement,
18 ParameterElement;
19 import '../js/js.dart' as jsAst;
20 import '../js/js.dart' show js;
21 import '../js_backend/js_backend.dart'
22 show
23 JavaScriptBackend,
24 JavaScriptConstantCompiler,
25 Namer;
26 import '../universe/call_structure.dart' show CallStructure;
27 import '../universe/selector.dart' show Selector;
28 import '../universe/world_builder.dart'
29 show SelectorConstraints;
30 import '../world.dart' show ClosedWorld;
31
32 import 'model.dart';
33
34 import 'code_emitter_task.dart' show CodeEmitterTask, Emitter;
6 35
7 class ParameterStubGenerator { 36 class ParameterStubGenerator {
8 static final Set<Selector> emptySelectorSet = new Set<Selector>(); 37 static final Set<Selector> emptySelectorSet = new Set<Selector>();
9 38
10 final Namer namer; 39 final Namer namer;
11 final Compiler compiler; 40 final Compiler compiler;
12 final JavaScriptBackend backend; 41 final JavaScriptBackend backend;
13 final ClosedWorld closedWorld; 42 final ClosedWorld closedWorld;
14 43
15 ParameterStubGenerator( 44 ParameterStubGenerator(
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 generateParameterStub(member, selector, null); 307 generateParameterStub(member, selector, null);
279 if (stub != null) { 308 if (stub != null) {
280 stubs.add(stub); 309 stubs.add(stub);
281 } 310 }
282 } 311 }
283 } 312 }
284 313
285 return stubs; 314 return stubs;
286 } 315 }
287 } 316 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698