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.named_mixin_application_builder; | 5 library fasta.named_mixin_application_builder; |
6 | 6 |
7 import 'builder.dart' | 7 import 'builder.dart' |
8 show | 8 show |
9 Builder, | |
10 ClassBuilder, | 9 ClassBuilder, |
11 LibraryBuilder, | 10 LibraryBuilder, |
| 11 MemberBuilder, |
12 MetadataBuilder, | 12 MetadataBuilder, |
| 13 Scope, |
13 TypeBuilder, | 14 TypeBuilder, |
14 TypeVariableBuilder; | 15 TypeVariableBuilder; |
15 | 16 |
16 abstract class NamedMixinApplicationBuilder<T extends TypeBuilder, R> | 17 abstract class NamedMixinApplicationBuilder<T extends TypeBuilder, R> |
17 extends ClassBuilder<T, R> { | 18 extends ClassBuilder<T, R> { |
18 NamedMixinApplicationBuilder( | 19 NamedMixinApplicationBuilder( |
19 List<MetadataBuilder> metadata, | 20 List<MetadataBuilder> metadata, |
20 String name, | 21 String name, |
21 List<TypeVariableBuilder> typeVariables, | 22 List<TypeVariableBuilder> typeVariables, |
22 int modifiers, | 23 int modifiers, |
23 T supertype, | 24 T supertype, |
24 List<T> interfaces, | 25 List<T> interfaces, |
25 LibraryBuilder parent, | 26 LibraryBuilder parent, |
26 int charOffset) | 27 int charOffset) |
27 : super(metadata, modifiers, name, typeVariables, supertype, interfaces, | 28 : super( |
28 <String, Builder>{}, parent, charOffset); | 29 metadata, |
| 30 modifiers, |
| 31 name, |
| 32 typeVariables, |
| 33 supertype, |
| 34 interfaces, |
| 35 new Scope(<String, MemberBuilder>{}, <String, MemberBuilder>{}, |
| 36 parent.scope.withTypeVariables(typeVariables), |
| 37 isModifiable: false), |
| 38 new Scope(<String, MemberBuilder>{}, null, null, |
| 39 isModifiable: false), |
| 40 parent, |
| 41 charOffset); |
29 | 42 |
30 T get mixinApplication => supertype; | 43 T get mixinApplication => supertype; |
31 } | 44 } |
OLD | NEW |