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

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

Issue 2980883003: Remove code associated with the old "kompile" functionality. (Closed)
Patch Set: Created 3 years, 5 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/analyzer/lib/src/fasta/analyzer.dart
diff --git a/pkg/analyzer/lib/src/fasta/analyzer.dart b/pkg/analyzer/lib/src/fasta/analyzer.dart
deleted file mode 100644
index 4f4f8ea44e11c8229e947204cca3cfabbd239c0c..0000000000000000000000000000000000000000
--- a/pkg/analyzer/lib/src/fasta/analyzer.dart
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) 2016, 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;
-
-import 'package:analyzer/analyzer.dart' show AstNode;
-
-import 'package:analyzer/dart/element/element.dart' show LocalElement;
-
-import 'package:analyzer/src/kernel/ast_from_analyzer.dart'
- show ExpressionScope;
-
-import 'package:kernel/ast.dart' show Library, TreeNode;
-
-import 'package:front_end/src/fasta/kernel/kernel_builder.dart'
- show Builder, KernelFormalParameterBuilder, Scope;
-
-import 'element_store.dart' show ElementStore;
-
-export 'ast_builder.dart' show AstBuilder;
-
-export 'element_store.dart' show ElementStore;
-
-TreeNode toKernel(
- AstNode node, ElementStore store, Library library, Scope scope) {
- ExpressionScope expressionScope = new ExpressionScope(store, library);
- scope.forEach((String name, Builder builder) {
- if (builder is KernelFormalParameterBuilder) {
- LocalElement local = store[builder];
- assert(local != null);
- assert(builder.declaration != null);
- expressionScope.localVariables[local] = builder.declaration;
- }
- });
- return expressionScope.buildStatement(node);
-}
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/file_state.dart ('k') | pkg/analyzer/lib/src/fasta/analyzer_diet_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698