OLD | NEW |
| (Empty) |
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 | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 library fasta.kernel_named_mixin_application_builder; | |
6 | |
7 import 'package:kernel/ast.dart' show InterfaceType; | |
8 | |
9 import '../source/source_class_builder.dart' show SourceClassBuilder; | |
10 | |
11 import 'kernel_builder.dart' | |
12 show | |
13 KernelTypeBuilder, | |
14 LibraryBuilder, | |
15 MemberBuilder, | |
16 MetadataBuilder, | |
17 NamedMixinApplicationBuilder, | |
18 Scope, | |
19 TypeVariableBuilder; | |
20 | |
21 class KernelNamedMixinApplicationBuilder extends SourceClassBuilder | |
22 implements NamedMixinApplicationBuilder<KernelTypeBuilder, InterfaceType> { | |
23 KernelNamedMixinApplicationBuilder( | |
24 List<MetadataBuilder> metadata, | |
25 String name, | |
26 List<TypeVariableBuilder> typeVariables, | |
27 int modifiers, | |
28 KernelTypeBuilder mixinApplication, | |
29 List<KernelTypeBuilder> interfaces, | |
30 LibraryBuilder parent, | |
31 int charOffset) | |
32 : super( | |
33 metadata, | |
34 modifiers, | |
35 name, | |
36 typeVariables, | |
37 mixinApplication, | |
38 interfaces, | |
39 new Scope(<String, MemberBuilder>{}, <String, MemberBuilder>{}, | |
40 parent.scope.withTypeVariables(typeVariables), | |
41 isModifiable: false), | |
42 new Scope(<String, MemberBuilder>{}, null, null, | |
43 isModifiable: false), | |
44 parent, | |
45 null, | |
46 charOffset); | |
47 | |
48 KernelTypeBuilder get mixinApplication => supertype; | |
49 | |
50 // TODO(ahe): This is a bit odd, as it means this answers false to | |
51 // [isMixinApplication], but its superclass is the mixin application. | |
52 KernelTypeBuilder get mixedInType => null; | |
53 } | |
OLD | NEW |