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

Unified Diff: pkg/front_end/lib/src/fasta/analyzer/analyzer_diet_listener.dart

Issue 2723113002: Consolidate analyzer dependencies. (Closed)
Patch Set: Remove new dependency on AsyncMarker. Created 3 years, 10 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/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;
+}
« no previous file with comments | « pkg/front_end/lib/src/fasta/analyzer/analyzer_compile.dart ('k') | pkg/front_end/lib/src/fasta/analyzer/analyzer_loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698