| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 useJsNode(new js.ArrayHole()); | 62 useJsNode(new js.ArrayHole()); |
| 63 useJsOther(new js.SimpleJavaScriptPrintingContext()); | 63 useJsOther(new js.SimpleJavaScriptPrintingContext()); |
| 64 useJsBackend(null); | 64 useJsBackend(null); |
| 65 useConcreteTypesInferrer(null); | 65 useConcreteTypesInferrer(null); |
| 66 useColor(); | 66 useColor(); |
| 67 useFilenames(); | 67 useFilenames(); |
| 68 useSsa(null); | 68 useSsa(null); |
| 69 useIo(null, null); | 69 useIo(null, null); |
| 70 usedByTests(); | 70 usedByTests(); |
| 71 useElements(); | 71 useElements(); |
| 72 useIr(null, null); | 72 useIr(null); |
| 73 useCompiler(null); | 73 useCompiler(null); |
| 74 useTypes(); | 74 useTypes(); |
| 75 useCodeEmitterTask(null); | 75 useCodeEmitterTask(null); |
| 76 useScript(null); | 76 useScript(null); |
| 77 useProgramBuilder(null); | 77 useProgramBuilder(null); |
| 78 useSemanticVisitor(); | 78 useSemanticVisitor(); |
| 79 useTreeVisitors(); | 79 useTreeVisitors(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 useApi() { | 82 useApi() { |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 elements.LibraryElement l]) { | 253 elements.LibraryElement l]) { |
| 254 e.lookupClassMember(null); | 254 e.lookupClassMember(null); |
| 255 e.lookupInterfaceMember(null); | 255 e.lookupInterfaceMember(null); |
| 256 n.isAccessibleFrom(null); | 256 n.isAccessibleFrom(null); |
| 257 f.reuseElement(); | 257 f.reuseElement(); |
| 258 pce.copyWithEnclosing(null); | 258 pce.copyWithEnclosing(null); |
| 259 pfe.copyWithEnclosing(null); | 259 pfe.copyWithEnclosing(null); |
| 260 l.forEachImport(null); | 260 l.forEachImport(null); |
| 261 } | 261 } |
| 262 | 262 |
| 263 useIr(ir_builder.IrBuilderTask task, | 263 useIr(ir_builder.IrBuilder builder) { |
| 264 ir_builder.IrBuilder builder) { | |
| 265 task | |
| 266 ..hasIr(null) | |
| 267 ..getIr(null); | |
| 268 builder | 264 builder |
| 269 ..buildStringConstant(null) | 265 ..buildStringConstant(null) |
| 270 ..buildDynamicGet(null, null); | 266 ..buildDynamicGet(null, null); |
| 271 } | 267 } |
| 272 | 268 |
| 273 useCompiler(dart2jslib.Compiler compiler) { | 269 useCompiler(dart2jslib.Compiler compiler) { |
| 274 compiler.libraryLoader | 270 compiler.libraryLoader |
| 275 ..reset() | 271 ..reset() |
| 276 ..resetAsync(null) | 272 ..resetAsync(null) |
| 277 ..lookupLibrary(null); | 273 ..lookupLibrary(null); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 306 | 302 |
| 307 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 | 303 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 |
| 308 with tree_ir.StatementVisitor1 { | 304 with tree_ir.StatementVisitor1 { |
| 309 noSuchMethod(inv) {} | 305 noSuchMethod(inv) {} |
| 310 } | 306 } |
| 311 | 307 |
| 312 useTreeVisitors() { | 308 useTreeVisitors() { |
| 313 new TreeVisitor1().visitExpression(null, null); | 309 new TreeVisitor1().visitExpression(null, null); |
| 314 new TreeVisitor1().visitStatement(null, null); | 310 new TreeVisitor1().visitStatement(null, null); |
| 315 } | 311 } |
| OLD | NEW |