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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 useJsNode(new js.NamedFunction(null, null)); | 61 useJsNode(new js.NamedFunction(null, null)); |
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(null, null, null, null, null); | 71 useElements(); |
72 useIr(null, null); | 72 useIr(null, 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 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 typeGraphInferrer.getCallersOf(null); | 238 typeGraphInferrer.getCallersOf(null); |
239 dart_types.Types.sorted(null); | 239 dart_types.Types.sorted(null); |
240 new dart_types.Types(compiler).copy(compiler); | 240 new dart_types.Types(compiler).copy(compiler); |
241 new universe.TypedSelector.subclass(null, null, compiler.world); | 241 new universe.TypedSelector.subclass(null, null, compiler.world); |
242 new universe.TypedSelector.subtype(null, null, compiler.world); | 242 new universe.TypedSelector.subtype(null, null, compiler.world); |
243 new universe.TypedSelector.exact(null, null, compiler.world); | 243 new universe.TypedSelector.exact(null, null, compiler.world); |
244 sourceFileProvider.readStringFromUri(null); | 244 sourceFileProvider.readStringFromUri(null); |
245 } | 245 } |
246 | 246 |
247 useElements( | 247 useElements( |
248 elements.ClassElement e, | 248 [elements.ClassElement e, |
249 elements.Name n, | 249 elements.Name n, |
250 modelx.FieldElementX f, | 250 modelx.FieldElementX f, |
251 PartialClassElement pce, | 251 PartialClassElement pce, |
252 PartialFunctionElement pfe) { | 252 PartialFunctionElement pfe, |
| 253 elements.LibraryElement l]) { |
253 e.lookupClassMember(null); | 254 e.lookupClassMember(null); |
254 e.lookupInterfaceMember(null); | 255 e.lookupInterfaceMember(null); |
255 n.isAccessibleFrom(null); | 256 n.isAccessibleFrom(null); |
256 f.reuseElement(); | 257 f.reuseElement(); |
257 pce.copyWithEnclosing(null); | 258 pce.copyWithEnclosing(null); |
258 pfe.copyWithEnclosing(null); | 259 pfe.copyWithEnclosing(null); |
| 260 l.forEachImport(null); |
259 } | 261 } |
260 | 262 |
261 useIr(ir_builder.IrBuilderTask task, | 263 useIr(ir_builder.IrBuilderTask task, |
262 ir_builder.IrBuilder builder) { | 264 ir_builder.IrBuilder builder) { |
263 task | 265 task |
264 ..hasIr(null) | 266 ..hasIr(null) |
265 ..getIr(null); | 267 ..getIr(null); |
266 builder | 268 builder |
267 ..buildStringConstant(null) | 269 ..buildStringConstant(null) |
268 ..buildDynamicGet(null, null); | 270 ..buildDynamicGet(null, null); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 visitFieldDefinition(tree_ir.FieldDefinition node) {} | 310 visitFieldDefinition(tree_ir.FieldDefinition node) {} |
309 | 311 |
310 visitFieldInitializer(tree_ir.FieldInitializer node) {} | 312 visitFieldInitializer(tree_ir.FieldInitializer node) {} |
311 visitSuperInitializer(tree_ir.SuperInitializer node) {} | 313 visitSuperInitializer(tree_ir.SuperInitializer node) {} |
312 } | 314 } |
313 | 315 |
314 useTreeVisitors() { | 316 useTreeVisitors() { |
315 new DummyTreeVisitor().visitRootNode(null); | 317 new DummyTreeVisitor().visitRootNode(null); |
316 new DummyTreeVisitor().visitInitializer(null); | 318 new DummyTreeVisitor().visitInitializer(null); |
317 } | 319 } |
OLD | NEW |