OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 world_builder; | 5 part of world_builder; |
6 | 6 |
7 /// World builder specific to codegen. | 7 /// World builder specific to codegen. |
8 /// | 8 /// |
9 /// This adds additional access to liveness of selectors and elements. | 9 /// This adds additional access to liveness of selectors and elements. |
10 abstract class CodegenWorldBuilder implements WorldBuilder { | 10 abstract class CodegenWorldBuilder implements WorldBuilder { |
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 | 609 |
610 @override | 610 @override |
611 void forEachParameter( | 611 void forEachParameter( |
612 FunctionEntity function, void f(DartType type, String name)) { | 612 FunctionEntity function, void f(DartType type, String name)) { |
613 throw new UnimplementedError('KernelCodegenWorldBuilder.forEachParameter'); | 613 throw new UnimplementedError('KernelCodegenWorldBuilder.forEachParameter'); |
614 } | 614 } |
615 | 615 |
616 @override | 616 @override |
617 void forEachInstanceField( | 617 void forEachInstanceField( |
618 ClassEntity cls, void f(ClassEntity declarer, FieldEntity field)) { | 618 ClassEntity cls, void f(ClassEntity declarer, FieldEntity field)) { |
619 throw new UnimplementedError( | 619 _elementEnvironment.forEachClassMember(cls, |
620 'KernelCodegenWorldBuilder.forEachInstanceField'); | 620 (ClassEntity declarer, MemberEntity member) { |
| 621 if (member.isField && member.isInstanceMember) f(declarer, member); |
| 622 }); |
621 } | 623 } |
622 } | 624 } |
OLD | NEW |