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.source_class_builder; | 5 library fasta.source_class_builder; |
6 | 6 |
7 import 'package:front_end/src/fasta/builder/class_builder.dart' | 7 import 'package:front_end/src/fasta/builder/class_builder.dart' |
8 show ClassBuilder; | 8 show ClassBuilder; |
9 | 9 |
10 import 'package:front_end/src/fasta/source/source_library_builder.dart' | 10 import 'package:front_end/src/fasta/source/source_library_builder.dart' |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 cls.fileOffset = charOffset; | 43 cls.fileOffset = charOffset; |
44 } | 44 } |
45 return cls; | 45 return cls; |
46 } | 46 } |
47 | 47 |
48 class SourceClassBuilder extends KernelClassBuilder { | 48 class SourceClassBuilder extends KernelClassBuilder { |
49 final Class cls; | 49 final Class cls; |
50 | 50 |
51 final List<ConstructorReferenceBuilder> constructorReferences; | 51 final List<ConstructorReferenceBuilder> constructorReferences; |
52 | 52 |
53 final KernelTypeBuilder mixedInType; | 53 KernelTypeBuilder mixedInType; |
54 | 54 |
55 SourceClassBuilder( | 55 SourceClassBuilder( |
56 List<MetadataBuilder> metadata, | 56 List<MetadataBuilder> metadata, |
57 int modifiers, | 57 int modifiers, |
58 String name, | 58 String name, |
59 List<TypeVariableBuilder> typeVariables, | 59 List<TypeVariableBuilder> typeVariables, |
60 KernelTypeBuilder supertype, | 60 KernelTypeBuilder supertype, |
61 List<KernelTypeBuilder> interfaces, | 61 List<KernelTypeBuilder> interfaces, |
62 Scope scope, | 62 Scope scope, |
63 Scope constructors, | 63 Scope constructors, |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 } | 155 } |
156 | 156 |
157 @override | 157 @override |
158 void prepareInitializerInference( | 158 void prepareInitializerInference( |
159 SourceLibraryBuilder library, ClassBuilder currentClass) { | 159 SourceLibraryBuilder library, ClassBuilder currentClass) { |
160 scope.forEach((name, builder) { | 160 scope.forEach((name, builder) { |
161 builder.prepareInitializerInference(library, this); | 161 builder.prepareInitializerInference(library, this); |
162 }); | 162 }); |
163 } | 163 } |
164 } | 164 } |
OLD | NEW |