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.mixin_application_builder; | 5 library fasta.mixin_application_builder; |
6 | 6 |
7 import '../errors.dart' show internalError; | 7 import '../errors.dart' show internalError; |
8 | 8 |
9 import 'builder.dart' | 9 import 'builder.dart' |
10 show TypeBuilder, TypeDeclarationBuilder, TypeVariableBuilder; | 10 show Scope, TypeBuilder, TypeDeclarationBuilder, TypeVariableBuilder; |
11 | |
12 import 'scope.dart' show Scope; | |
13 | 11 |
14 abstract class MixinApplicationBuilder<T extends TypeBuilder> | 12 abstract class MixinApplicationBuilder<T extends TypeBuilder> |
15 extends TypeBuilder { | 13 extends TypeBuilder { |
16 final T supertype; | 14 final T supertype; |
17 final List<T> mixins; | 15 final List<T> mixins; |
18 | 16 |
19 MixinApplicationBuilder( | 17 MixinApplicationBuilder( |
20 this.supertype, this.mixins, int charOffset, Uri fileUri) | 18 this.supertype, this.mixins, int charOffset, Uri fileUri) |
21 : super(charOffset, fileUri); | 19 : super(charOffset, fileUri); |
22 | 20 |
(...skipping 27 matching lines...) Expand all Loading... |
50 buffer.write(" with "); | 48 buffer.write(" with "); |
51 bool first = true; | 49 bool first = true; |
52 for (T t in mixins) { | 50 for (T t in mixins) { |
53 if (!first) buffer.write(", "); | 51 if (!first) buffer.write(", "); |
54 first = false; | 52 first = false; |
55 t.printOn(buffer); | 53 t.printOn(buffer); |
56 } | 54 } |
57 return buffer; | 55 return buffer; |
58 } | 56 } |
59 } | 57 } |
OLD | NEW |