| OLD | NEW |
| 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 10 matching lines...) Expand all Loading... |
| 21 import 'cps_ir/cps_ir_builder_task.dart' as ir_builder; | 21 import 'cps_ir/cps_ir_builder_task.dart' as ir_builder; |
| 22 import 'tree_ir/tree_ir_nodes.dart' as tree_ir; | 22 import 'tree_ir/tree_ir_nodes.dart' as tree_ir; |
| 23 import 'dart_types.dart' as dart_types; | 23 import 'dart_types.dart' as dart_types; |
| 24 import 'dart2js.dart' as dart2js; | 24 import 'dart2js.dart' as dart2js; |
| 25 import 'compiler.dart' as dart2jslib; | 25 import 'compiler.dart' as dart2jslib; |
| 26 import 'diagnostics/source_span.dart' as diagnostics; | 26 import 'diagnostics/source_span.dart' as diagnostics; |
| 27 import 'elements/elements.dart' as elements; | 27 import 'elements/elements.dart' as elements; |
| 28 import 'elements/modelx.dart' as modelx; | 28 import 'elements/modelx.dart' as modelx; |
| 29 import 'elements/visitor.dart' as elements_visitor; | 29 import 'elements/visitor.dart' as elements_visitor; |
| 30 import 'filenames.dart' as filenames; | 30 import 'filenames.dart' as filenames; |
| 31 import 'inferrer/concrete_types_inferrer.dart' as concrete_types_inferrer; | |
| 32 import 'inferrer/type_graph_inferrer.dart' as type_graph_inferrer; | 31 import 'inferrer/type_graph_inferrer.dart' as type_graph_inferrer; |
| 33 import 'io/line_column_provider.dart' as io; | 32 import 'io/line_column_provider.dart' as io; |
| 34 import 'io/source_map_builder.dart' as io; | 33 import 'io/source_map_builder.dart' as io; |
| 35 import 'js/js.dart' as js; | 34 import 'js/js.dart' as js; |
| 36 import 'js_backend/js_backend.dart' as js_backend; | 35 import 'js_backend/js_backend.dart' as js_backend; |
| 37 import 'js_emitter/js_emitter.dart' as js_emitter; | 36 import 'js_emitter/js_emitter.dart' as js_emitter; |
| 38 import 'js_emitter/full_emitter/emitter.dart' as full; | 37 import 'js_emitter/full_emitter/emitter.dart' as full; |
| 39 import 'js_emitter/program_builder/program_builder.dart' as program_builder; | 38 import 'js_emitter/program_builder/program_builder.dart' as program_builder; |
| 40 import 'resolution/semantic_visitor.dart' as semantic_visitor; | 39 import 'resolution/semantic_visitor.dart' as semantic_visitor; |
| 41 import 'resolution/operators.dart' as operators; | 40 import 'resolution/operators.dart' as operators; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 62 useNode(null); | 61 useNode(null); |
| 63 useUtil(null); | 62 useUtil(null); |
| 64 useSetlet(null); | 63 useSetlet(null); |
| 65 useImmutableEmptySet(null); | 64 useImmutableEmptySet(null); |
| 66 useElementVisitor(new ElementVisitor()); | 65 useElementVisitor(new ElementVisitor()); |
| 67 useJsNode(new js.Program(null)); | 66 useJsNode(new js.Program(null)); |
| 68 useJsNode(new js.NamedFunction(null, null)); | 67 useJsNode(new js.NamedFunction(null, null)); |
| 69 useJsNode(new js.ArrayHole()); | 68 useJsNode(new js.ArrayHole()); |
| 70 useJsOther(new js.SimpleJavaScriptPrintingContext()); | 69 useJsOther(new js.SimpleJavaScriptPrintingContext()); |
| 71 useJsBackend(null); | 70 useJsBackend(null); |
| 72 useConcreteTypesInferrer(null); | |
| 73 useColor(); | 71 useColor(); |
| 74 useFilenames(); | 72 useFilenames(); |
| 75 useSsa(null); | 73 useSsa(null); |
| 76 useIo(); | 74 useIo(); |
| 77 usedByTests(); | 75 usedByTests(); |
| 78 useElements(); | 76 useElements(); |
| 79 useIr(null); | 77 useIr(null); |
| 80 useCompiler(null); | 78 useCompiler(null); |
| 81 useTypes(); | 79 useTypes(); |
| 82 useCodeEmitterTask(null); | 80 useCodeEmitterTask(null); |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 } | 221 } |
| 224 | 222 |
| 225 useJsOther(js.SimpleJavaScriptPrintingContext context) { | 223 useJsOther(js.SimpleJavaScriptPrintingContext context) { |
| 226 context.getText(); | 224 context.getText(); |
| 227 } | 225 } |
| 228 | 226 |
| 229 useJsBackend(js_backend.JavaScriptBackend backend) { | 227 useJsBackend(js_backend.JavaScriptBackend backend) { |
| 230 backend.getGeneratedCode(null); | 228 backend.getGeneratedCode(null); |
| 231 } | 229 } |
| 232 | 230 |
| 233 useConcreteTypesInferrer(concrete_types_inferrer.ConcreteTypesInferrer c) { | |
| 234 c.debug(); | |
| 235 } | |
| 236 | |
| 237 useColor() { | 231 useColor() { |
| 238 colors.white(null); | 232 colors.white(null); |
| 239 colors.blue(null); | 233 colors.blue(null); |
| 240 colors.yellow(null); | 234 colors.yellow(null); |
| 241 colors.black(null); | 235 colors.black(null); |
| 242 } | 236 } |
| 243 | 237 |
| 244 useFilenames() { | 238 useFilenames() { |
| 245 filenames.appendSlash(null); | 239 filenames.appendSlash(null); |
| 246 } | 240 } |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 | 333 |
| 340 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 | 334 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 |
| 341 with tree_ir.StatementVisitor1 { | 335 with tree_ir.StatementVisitor1 { |
| 342 noSuchMethod(inv) {} | 336 noSuchMethod(inv) {} |
| 343 } | 337 } |
| 344 | 338 |
| 345 useTreeVisitors() { | 339 useTreeVisitors() { |
| 346 new TreeVisitor1().visitExpression(null, null); | 340 new TreeVisitor1().visitExpression(null, null); |
| 347 new TreeVisitor1().visitStatement(null, null); | 341 new TreeVisitor1().visitStatement(null, null); |
| 348 } | 342 } |
| OLD | NEW |