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

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

Issue 2641353002: Make full_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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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.full_emitter; 5 library dart2js.js_emitter.full_emitter.class_emitter;
6
7 import '../../common.dart';
8 import '../../common/names.dart' show Names;
9 import '../../elements/resolution_types.dart' show ResolutionDartType;
10 import '../../deferred_load.dart' show OutputUnit;
11 import '../../elements/elements.dart'
12 show
13 ClassElement,
14 Element,
15 FieldElement,
16 MemberElement,
17 Name;
18 import '../../js/js.dart' as jsAst;
19 import '../../js/js.dart' show js;
20 import '../../js_backend/js_backend.dart'
21 show
22 CompoundName,
23 Namer;
24 import '../../universe/selector.dart' show Selector;
25 import '../../util/util.dart' show equalElements;
26 import '../../world.dart' show ClosedWorld;
27 import '../js_emitter.dart' hide Emitter, EmitterFactory;
28 import '../model.dart';
29 import 'emitter.dart';
6 30
7 class ClassEmitter extends CodeEmitterHelper { 31 class ClassEmitter extends CodeEmitterHelper {
8 final ClosedWorld closedWorld; 32 final ClosedWorld closedWorld;
9 33
10 ClassEmitter(this.closedWorld); 34 ClassEmitter(this.closedWorld);
11 35
12 ClassStubGenerator get _stubGenerator => 36 ClassStubGenerator get _stubGenerator =>
13 new ClassStubGenerator(namer, backend, codegenWorldBuilder, closedWorld, 37 new ClassStubGenerator(namer, backend, codegenWorldBuilder, closedWorld,
14 enableMinification: compiler.options.enableMinification); 38 enableMinification: compiler.options.enableMinification);
15 39
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 : new Selector.setter( 445 : new Selector.setter(
422 new Name(member.name, member.library, isSetter: true)); 446 new Name(member.name, member.library, isSetter: true));
423 String reflectionName = emitter.getReflectionName(selector, name); 447 String reflectionName = emitter.getReflectionName(selector, name);
424 if (reflectionName != null) { 448 if (reflectionName != null) {
425 var reflectable = 449 var reflectable =
426 js(backend.isAccessibleByReflection(member) ? '1' : '0'); 450 js(backend.isAccessibleByReflection(member) ? '1' : '0');
427 builder.addPropertyByName('+$reflectionName', reflectable); 451 builder.addPropertyByName('+$reflectionName', reflectable);
428 } 452 }
429 } 453 }
430 } 454 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698