| OLD | NEW |
| 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 part of dart2js.js_emitter.full_emitter; |
| 6 | 6 |
| 7 class ClassEmitter extends CodeEmitterHelper { | 7 class ClassEmitter extends CodeEmitterHelper { |
| 8 final ClosedWorld closedWorld; | 8 final ClosedWorld closedWorld; |
| 9 | 9 |
| 10 ClassEmitter(this.closedWorld); | 10 ClassEmitter(this.closedWorld); |
| 11 | 11 |
| 12 ClassStubGenerator get _stubGenerator => | 12 ClassStubGenerator get _stubGenerator => |
| 13 new ClassStubGenerator(namer, backend, codegenWorld, closedWorld, | 13 new ClassStubGenerator(namer, backend, codegenWorldBuilder, closedWorld, |
| 14 enableMinification: compiler.options.enableMinification); | 14 enableMinification: compiler.options.enableMinification); |
| 15 | 15 |
| 16 /** | 16 /** |
| 17 * Documentation wanted -- johnniwinther | 17 * Documentation wanted -- johnniwinther |
| 18 */ | 18 */ |
| 19 void emitClass(Class cls, ClassBuilder enclosingBuilder, Fragment fragment) { | 19 void emitClass(Class cls, ClassBuilder enclosingBuilder, Fragment fragment) { |
| 20 ClassElement classElement = cls.element; | 20 ClassElement classElement = cls.element; |
| 21 | 21 |
| 22 assert(invariant(classElement, classElement.isDeclaration)); | 22 assert(invariant(classElement, classElement.isDeclaration)); |
| 23 | 23 |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 : new Selector.setter( | 422 : new Selector.setter( |
| 423 new Name(member.name, member.library, isSetter: true)); | 423 new Name(member.name, member.library, isSetter: true)); |
| 424 String reflectionName = emitter.getReflectionName(selector, name); | 424 String reflectionName = emitter.getReflectionName(selector, name); |
| 425 if (reflectionName != null) { | 425 if (reflectionName != null) { |
| 426 var reflectable = | 426 var reflectable = |
| 427 js(backend.isAccessibleByReflection(member) ? '1' : '0'); | 427 js(backend.isAccessibleByReflection(member) ? '1' : '0'); |
| 428 builder.addPropertyByName('+$reflectionName', reflectable); | 428 builder.addPropertyByName('+$reflectionName', reflectable); |
| 429 } | 429 } |
| 430 } | 430 } |
| 431 } | 431 } |
| OLD | NEW |