Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(655)

Side by Side Diff: pkg/front_end/lib/src/fasta/builder/mixin_application_builder.dart

Issue 2794533002: Move scope.dart. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/builder/library_builder.dart ('k') | pkg/front_end/lib/src/fasta/builder/named_type_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698