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

Side by Side Diff: pkg/compiler/lib/src/use_unused_api.dart

Issue 1155463005: dart2js cps: Remove dart2dart from cps pipeline and clean up. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// This file use methods that aren't used by dart2js.dart, but that we wish to 5 /// This file use methods that aren't used by dart2js.dart, but that we wish to
6 /// keep anyway. This might be general API that isn't currently in use, 6 /// keep anyway. This might be general API that isn't currently in use,
7 /// debugging aids, or API only used for testing (see TODO below). 7 /// debugging aids, or API only used for testing (see TODO below).
8 8
9 library dart2js.use_unused_api; 9 library dart2js.use_unused_api;
10 10
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 useProgramBuilder(program_builder.ProgramBuilder builder) { 293 useProgramBuilder(program_builder.ProgramBuilder builder) {
294 builder.buildMethodHackForIncrementalCompilation(null); 294 builder.buildMethodHackForIncrementalCompilation(null);
295 builder.buildFieldsHackForIncrementalCompilation(null); 295 builder.buildFieldsHackForIncrementalCompilation(null);
296 } 296 }
297 297
298 useSemanticVisitor() { 298 useSemanticVisitor() {
299 new semantic_visitor.BulkSendVisitor().apply(null, null); 299 new semantic_visitor.BulkSendVisitor().apply(null, null);
300 new semantic_visitor.TraversalVisitor(null).apply(null, null); 300 new semantic_visitor.TraversalVisitor(null).apply(null, null);
301 new semantic_visitor.BulkDeclarationVisitor().apply(null, null); 301 new semantic_visitor.BulkDeclarationVisitor().apply(null, null);
302 } 302 }
303
304 class DummyTreeVisitor extends tree_ir.RootVisitor
305 with tree_ir.InitializerVisitor {
306 visitFunctionDefinition(tree_ir.FunctionDefinition node) {}
307 visitConstructorDefinition(tree_ir.ConstructorDefinition node) {}
308 visitFieldDefinition(tree_ir.FieldDefinition node) {}
309
310 visitFieldInitializer(tree_ir.FieldInitializer node) {}
311 visitSuperInitializer(tree_ir.SuperInitializer node) {}
312 }
313
314 useTreeVisitors() {
315 new DummyTreeVisitor().visitRootNode(null);
316 new DummyTreeVisitor().visitInitializer(null);
317 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698