OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 fasta.dill_class_builder; | 5 library fasta.dill_class_builder; |
6 | 6 |
7 import 'package:kernel/ast.dart' show Class, Member; | 7 import 'package:kernel/ast.dart' show Class, Member; |
8 | 8 |
9 import '../errors.dart' show internalError; | 9 import '../deprecated_problems.dart' show deprecated_internalProblem; |
10 | 10 |
11 import '../kernel/kernel_builder.dart' | 11 import '../kernel/kernel_builder.dart' |
12 show MemberBuilder, KernelClassBuilder, KernelTypeBuilder, Scope; | 12 show MemberBuilder, KernelClassBuilder, KernelTypeBuilder, Scope; |
13 | 13 |
14 import '../modifier.dart' show abstractMask; | 14 import '../modifier.dart' show abstractMask; |
15 | 15 |
16 import 'dill_member_builder.dart' show DillMemberBuilder; | 16 import 'dill_member_builder.dart' show DillMemberBuilder; |
17 | 17 |
18 import 'dill_library_builder.dart' show DillLibraryBuilder; | 18 import 'dill_library_builder.dart' show DillLibraryBuilder; |
19 | 19 |
(...skipping 25 matching lines...) Expand all Loading... |
45 scopeBuilder.addSetter(name, builder); | 45 scopeBuilder.addSetter(name, builder); |
46 } else { | 46 } else { |
47 scopeBuilder.addMember(name, builder); | 47 scopeBuilder.addMember(name, builder); |
48 } | 48 } |
49 } | 49 } |
50 | 50 |
51 /// Returns true if this class is the result of applying a mixin to its | 51 /// Returns true if this class is the result of applying a mixin to its |
52 /// superclass. | 52 /// superclass. |
53 bool get isMixinApplication => cls.isMixinApplication; | 53 bool get isMixinApplication => cls.isMixinApplication; |
54 | 54 |
55 KernelTypeBuilder get mixedInType => internalError("Not implemented."); | 55 KernelTypeBuilder get mixedInType => |
| 56 deprecated_internalProblem("Not implemented."); |
56 | 57 |
57 void set mixedInType(KernelTypeBuilder mixin) { | 58 void set mixedInType(KernelTypeBuilder mixin) { |
58 internalError("Not implemented."); | 59 deprecated_internalProblem("Not implemented."); |
59 } | 60 } |
60 } | 61 } |
61 | 62 |
62 int computeModifiers(Class cls) { | 63 int computeModifiers(Class cls) { |
63 return cls.isAbstract ? abstractMask : 0; | 64 return cls.isAbstract ? abstractMask : 0; |
64 } | 65 } |
OLD | NEW |