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

Side by Side Diff: pkg/front_end/lib/src/fasta/source/source_class_builder.dart

Issue 2830313002: Split up TypeInferrer class. (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.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/type_inference/type_inferrer.dart' 10 import 'package:front_end/src/fasta/type_inference/type_inference_engine.dart'
11 show TypeInferrer; 11 show TypeInferenceEngine;
12 12
13 import 'package:kernel/ast.dart' 13 import 'package:kernel/ast.dart'
14 show Class, Constructor, Supertype, TreeNode, setParents; 14 show Class, Constructor, Supertype, TreeNode, setParents;
15 15
16 import '../errors.dart' show internalError; 16 import '../errors.dart' show internalError;
17 17
18 import '../kernel/kernel_builder.dart' 18 import '../kernel/kernel_builder.dart'
19 show 19 show
20 Builder, 20 Builder,
21 ConstructorReferenceBuilder, 21 ConstructorReferenceBuilder,
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 void addSyntheticConstructor(Constructor constructor) { 148 void addSyntheticConstructor(Constructor constructor) {
149 String name = constructor.name.name; 149 String name = constructor.name.name;
150 cls.constructors.add(constructor); 150 cls.constructors.add(constructor);
151 constructor.parent = cls; 151 constructor.parent = cls;
152 DillMemberBuilder memberBuilder = new DillMemberBuilder(constructor, this); 152 DillMemberBuilder memberBuilder = new DillMemberBuilder(constructor, this);
153 memberBuilder.next = constructorScopeBuilder[name]; 153 memberBuilder.next = constructorScopeBuilder[name];
154 constructorScopeBuilder.addMember(name, memberBuilder); 154 constructorScopeBuilder.addMember(name, memberBuilder);
155 } 155 }
156 156
157 @override 157 @override
158 void prepareInitializerInference(TypeInferrer typeInferrer, 158 void prepareInitializerInference(TypeInferenceEngine typeInferenceEngine,
159 LibraryBuilder library, ClassBuilder currentClass) { 159 LibraryBuilder library, ClassBuilder currentClass) {
160 scope.forEach((name, builder) { 160 scope.forEach((name, builder) {
161 builder.prepareInitializerInference(typeInferrer, library, this); 161 builder.prepareInitializerInference(typeInferenceEngine, library, this);
162 }); 162 });
163 } 163 }
164 } 164 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/diet_listener.dart ('k') | pkg/front_end/lib/src/fasta/source/source_library_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698