| 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 ac7e74f78de0824c22ddf4d6fb897aff07869295..23236d5725569f30e7db13db1ff9c904df9c0fc1 100644
|
| --- a/pkg/front_end/lib/src/fasta/source/diet_listener.dart
|
| +++ b/pkg/front_end/lib/src/fasta/source/diet_listener.dart
|
| @@ -29,12 +29,8 @@ import '../kernel/body_builder.dart' show BodyBuilder;
|
|
|
| import '../builder/builder.dart';
|
|
|
| -import '../analyzer/analyzer.dart';
|
| -
|
| import '../builder/scope.dart' show Scope;
|
|
|
| -import '../ast_kind.dart' show AstKind;
|
| -
|
| import 'source_library_builder.dart' show SourceLibraryBuilder;
|
|
|
| import '../kernel/kernel_library_builder.dart' show isConstructorName;
|
| @@ -42,14 +38,10 @@ import '../kernel/kernel_library_builder.dart' show isConstructorName;
|
| class DietListener extends StackListener {
|
| final SourceLibraryBuilder library;
|
|
|
| - final ElementStore elementStore;
|
| -
|
| final ClassHierarchy hierarchy;
|
|
|
| final CoreTypes coreTypes;
|
|
|
| - final AstKind astKind;
|
| -
|
| final bool isDartLibrary;
|
|
|
| ClassBuilder currentClass;
|
| @@ -61,8 +53,7 @@ class DietListener extends StackListener {
|
| @override
|
| Uri uri;
|
|
|
| - DietListener(SourceLibraryBuilder library, this.elementStore, this.hierarchy,
|
| - this.coreTypes, this.astKind)
|
| + DietListener(SourceLibraryBuilder library, this.hierarchy, this.coreTypes)
|
| : library = library,
|
| uri = library.fileUri,
|
| memberScope = library.scope,
|
| @@ -374,24 +365,8 @@ class DietListener extends StackListener {
|
| StackListener createListener(
|
| MemberBuilder builder, Scope memberScope, bool isInstanceMember,
|
| [Scope formalParameterScope]) {
|
| - switch (astKind) {
|
| - case AstKind.Kernel:
|
| - return new BodyBuilder(
|
| - library,
|
| - builder,
|
| - memberScope,
|
| - formalParameterScope,
|
| - hierarchy,
|
| - coreTypes,
|
| - currentClass,
|
| - isInstanceMember,
|
| - uri);
|
| -
|
| - case AstKind.Analyzer:
|
| - return new AstBuilder(library, builder, elementStore, memberScope, uri);
|
| - }
|
| -
|
| - return internalError("Unknown $astKind");
|
| + return new BodyBuilder(library, builder, memberScope, formalParameterScope,
|
| + hierarchy, coreTypes, currentClass, isInstanceMember, uri);
|
| }
|
|
|
| void buildFunctionBody(Token token, ProcedureBuilder builder) {
|
|
|