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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 void main(List<String> arguments) { | 45 void main(List<String> arguments) { |
46 useApi(); | 46 useApi(); |
47 dart2js.main(arguments); | 47 dart2js.main(arguments); |
48 useConstant(null, null); | 48 useConstant(null, null); |
49 useNode(null); | 49 useNode(null); |
50 useUtil(null); | 50 useUtil(null); |
51 useSetlet(null); | 51 useSetlet(null); |
52 useImmutableEmptySet(null); | 52 useImmutableEmptySet(null); |
53 useElementVisitor(new ElementVisitor()); | 53 useElementVisitor(new ElementVisitor()); |
54 useJsNode(new js.Program(null)); | 54 useJs(new js.Program(null)); |
55 useJsNode(new js.NamedFunction(null, null)); | 55 useJs(new js.Blob(null)); |
56 useJsNode(new js.ArrayHole()); | 56 useJs(new js.NamedFunction(null, null)); |
57 useJsOther(new js.SimpleJavaScriptPrintingContext()); | 57 useJs(new js.ArrayHole()); |
58 useJsBackend(null); | 58 useJsBackend(null); |
59 useConcreteTypesInferrer(null); | 59 useConcreteTypesInferrer(null); |
60 useColor(); | 60 useColor(); |
61 useFilenames(); | 61 useFilenames(); |
62 useSsa(null); | 62 useSsa(null); |
63 useCodeBuffer(null); | 63 useCodeBuffer(null); |
64 usedByTests(); | 64 usedByTests(); |
65 useElements(null, null, null, null, null); | 65 useElements(null, null, null, null, null); |
66 useIr(null, null, null); | 66 useIr(null, null, null); |
67 useCompiler(null); | 67 useCompiler(null); |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 ..visitMixinApplicationElement(null) | 163 ..visitMixinApplicationElement(null) |
164 ..visitPrefixElement(null) | 164 ..visitPrefixElement(null) |
165 ..visitScopeContainerElement(null) | 165 ..visitScopeContainerElement(null) |
166 ..visitTypeDeclarationElement(null) | 166 ..visitTypeDeclarationElement(null) |
167 ..visitTypeVariableElement(null) | 167 ..visitTypeVariableElement(null) |
168 ..visitTypedefElement(null) | 168 ..visitTypedefElement(null) |
169 ..visitVariableElement(null) | 169 ..visitVariableElement(null) |
170 ..visitWarnOnUseElement(null); | 170 ..visitWarnOnUseElement(null); |
171 } | 171 } |
172 | 172 |
173 useJsNode(js.Node node) { | 173 useJs(js.Node node) { |
174 node.asVariableUse(); | 174 node.asVariableUse(); |
175 } | 175 } |
176 | 176 |
177 useJsOther(js.SimpleJavaScriptPrintingContext context) { | |
178 context.getText(); | |
179 } | |
180 | |
181 useJsBackend(js_backend.JavaScriptBackend backend) { | 177 useJsBackend(js_backend.JavaScriptBackend backend) { |
182 backend.assembleCode(null); | 178 backend.assembleCode(null); |
183 backend.annotations.noInlining(null); | 179 backend.annotations.noInlining(null); |
184 backend.annotations.trustTypeAnnotations(null); | 180 backend.annotations.trustTypeAnnotations(null); |
185 backend.annotations.assumeDynamic(null); | 181 backend.annotations.assumeDynamic(null); |
186 } | 182 } |
187 | 183 |
188 useConcreteTypesInferrer(concrete_types_inferrer.ConcreteTypesInferrer c) { | 184 useConcreteTypesInferrer(concrete_types_inferrer.ConcreteTypesInferrer c) { |
189 c.debug(); | 185 c.debug(); |
190 } | 186 } |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 } | 283 } |
288 | 284 |
289 useScript(dart2jslib.Script script) { | 285 useScript(dart2jslib.Script script) { |
290 script.copyWithFile(null); | 286 script.copyWithFile(null); |
291 } | 287 } |
292 | 288 |
293 useProgramBuilder(program_builder.ProgramBuilder builder) { | 289 useProgramBuilder(program_builder.ProgramBuilder builder) { |
294 builder.buildMethodHackForIncrementalCompilation(null); | 290 builder.buildMethodHackForIncrementalCompilation(null); |
295 builder.buildFieldsHackForIncrementalCompilation(null); | 291 builder.buildFieldsHackForIncrementalCompilation(null); |
296 } | 292 } |
OLD | NEW |