Index: pkg/front_end/lib/src/fasta/analyzer/analyzer_diet_listener.dart |
diff --git a/pkg/front_end/lib/src/fasta/analyzer/analyzer_diet_listener.dart b/pkg/front_end/lib/src/fasta/analyzer/analyzer_diet_listener.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0c9c1b16b2e418c388da4b08a6d7d1c367d8df50 |
--- /dev/null |
+++ b/pkg/front_end/lib/src/fasta/analyzer/analyzer_diet_listener.dart |
@@ -0,0 +1,35 @@ |
+// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+library fasta.analyzer_diet_listener; |
+ |
+import '../source/stack_listener.dart' show StackListener; |
+ |
+import '../builder/builder.dart'; |
+ |
+import '../builder/scope.dart' show Scope; |
+ |
+import '../source/source_library_builder.dart' show SourceLibraryBuilder; |
+ |
+import '../source/diet_listener.dart' show DietListener; |
+ |
+import 'element_store.dart' show ElementStore; |
+ |
+import 'ast_builder.dart' show AstBuilder; |
+ |
+class AnalyzerDietListener extends DietListener { |
+ final ElementStore elementStore; |
+ |
+ AnalyzerDietListener(SourceLibraryBuilder library, this.elementStore) |
+ : super(library, null, null); |
+ |
+ StackListener createListener( |
+ MemberBuilder builder, Scope memberScope, bool isInstanceMember, |
+ [Scope formalParameterScope]) { |
+ return new AstBuilder(library, builder, elementStore, memberScope, uri); |
+ } |
+ |
+ @override |
+ AsyncMarker getAsyncMarker(StackListener listener) => null; |
+} |