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

Unified Diff: pkg/front_end/lib/src/fasta/source/diet_listener.dart

Issue 2904673003: Remove AstFactory from the front end. (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/lib/src/fasta/source/diet_listener.dart
diff --git a/pkg/front_end/lib/src/fasta/source/diet_listener.dart b/pkg/front_end/lib/src/fasta/source/diet_listener.dart
index 1c55c6ea42041591ca83e1db3a599335e3ad1a0b..ee46b5b1861fc5f6a2959a4f6625f3efa2aa8cce 100644
--- a/pkg/front_end/lib/src/fasta/source/diet_listener.dart
+++ b/pkg/front_end/lib/src/fasta/source/diet_listener.dart
@@ -4,9 +4,6 @@
library fasta.diet_listener;
-import 'package:front_end/src/fasta/kernel/kernel_ast_factory.dart'
- show KernelAstFactory;
-
import 'package:front_end/src/fasta/type_inference/type_inference_engine.dart'
show TypeInferenceEngine;
@@ -410,18 +407,8 @@ class DietListener extends StackListener {
var listener = new TypeInferenceListener();
var typeInferrer =
typeInferenceEngine.createLocalTypeInferrer(uri, listener);
- return new BodyBuilder(
- library,
- builder,
- memberScope,
- formalParameterScope,
- hierarchy,
- coreTypes,
- currentClass,
- isInstanceMember,
- uri,
- typeInferrer,
- new KernelAstFactory())
+ return new BodyBuilder(library, builder, memberScope, formalParameterScope,
+ hierarchy, coreTypes, currentClass, isInstanceMember, uri, typeInferrer)
..constantExpressionRequired = builder.isConstructor && builder.isConst;
}

Powered by Google App Engine
This is Rietveld 408576698