| 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 library dart2js.js_emitter.full_emitter.class_emitter; | 5 library dart2js.js_emitter.full_emitter.class_emitter; |
| 6 | 6 |
| 7 import '../../common.dart'; | 7 import '../../common.dart'; |
| 8 import '../../common/names.dart' show Names; | 8 import '../../common/names.dart' show Names; |
| 9 import '../../elements/resolution_types.dart' show ResolutionDartType; | 9 import '../../elements/resolution_types.dart' show ResolutionDartType; |
| 10 import '../../deferred_load.dart' show OutputUnit; | 10 import '../../deferred_load.dart' show OutputUnit; |
| 11 import '../../elements/elements.dart' | 11 import '../../elements/elements.dart' |
| 12 show ClassElement, FieldElement, MemberElement, Name; | 12 show ClassElement, FieldElement, MemberElement; |
| 13 import '../../elements/names.dart'; |
| 13 import '../../js/js.dart' as jsAst; | 14 import '../../js/js.dart' as jsAst; |
| 14 import '../../js/js.dart' show js; | 15 import '../../js/js.dart' show js; |
| 15 import '../../js_backend/js_backend.dart' show CompoundName, Namer; | 16 import '../../js_backend/js_backend.dart' show CompoundName, Namer; |
| 16 import '../../universe/selector.dart' show Selector; | 17 import '../../universe/selector.dart' show Selector; |
| 17 import '../../util/util.dart' show equalElements; | 18 import '../../util/util.dart' show equalElements; |
| 18 import '../../world.dart' show ClosedWorld; | 19 import '../../world.dart' show ClosedWorld; |
| 19 import '../js_emitter.dart' hide Emitter, EmitterFactory; | 20 import '../js_emitter.dart' hide Emitter, EmitterFactory; |
| 20 import '../model.dart'; | 21 import '../model.dart'; |
| 21 import 'emitter.dart'; | 22 import 'emitter.dart'; |
| 22 | 23 |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 String reflectionName = emitter.getReflectionName(selector, name); | 447 String reflectionName = emitter.getReflectionName(selector, name); |
| 447 if (reflectionName != null) { | 448 if (reflectionName != null) { |
| 448 var reflectable = js( | 449 var reflectable = js( |
| 449 backend.mirrorsData.isMemberAccessibleByReflection(member) | 450 backend.mirrorsData.isMemberAccessibleByReflection(member) |
| 450 ? '1' | 451 ? '1' |
| 451 : '0'); | 452 : '0'); |
| 452 builder.addPropertyByName('+$reflectionName', reflectable); | 453 builder.addPropertyByName('+$reflectionName', reflectable); |
| 453 } | 454 } |
| 454 } | 455 } |
| 455 } | 456 } |
| OLD | NEW |