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

Unified Diff: pkg/compiler/lib/src/use_unused_api.dart

Issue 929113002: Add SemanticVisitor to dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix indents and long lines. Created 5 years, 9 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/compiler/lib/src/use_unused_api.dart
diff --git a/pkg/compiler/lib/src/use_unused_api.dart b/pkg/compiler/lib/src/use_unused_api.dart
index 5eefc1a99fda206bcdfe5ebc3b44b7b62490813b..aee852942c478ed1929c909c341be5093cc99277 100644
--- a/pkg/compiler/lib/src/use_unused_api.dart
+++ b/pkg/compiler/lib/src/use_unused_api.dart
@@ -29,6 +29,7 @@ import 'js/js.dart' as js;
import 'js_backend/js_backend.dart' as js_backend;
import 'js_emitter/js_emitter.dart' as js_emitter;
import 'js_emitter/program_builder.dart' as program_builder;
+import 'resolution/semantic_visitor.dart' as semantic_visitor;
import 'source_file_provider.dart' as source_file_provider;
import 'ssa/ssa.dart' as ssa;
import 'tree/tree.dart' as tree;
@@ -70,6 +71,7 @@ void main(List<String> arguments) {
useCodeEmitterTask(null);
useScript(null);
useProgramBuilder(null);
+ useSemanticVisitor();
}
useApi() {
@@ -277,3 +279,8 @@ useProgramBuilder(program_builder.ProgramBuilder builder) {
builder.buildMethodHackForIncrementalCompilation(null);
builder.buildFieldsHackForIncrementalCompilation(null);
}
+
+useSemanticVisitor() {
+ new semantic_visitor.BulkVisitor().apply(null, null);
+ new semantic_visitor.TraversalVisitor(null).apply(null, null);
+}
« no previous file with comments | « pkg/compiler/lib/src/resolution/send_structure.dart ('k') | tests/compiler/dart2js/analyze_unused_dart2js_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698