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 29 matching lines...) Expand all Loading... |
40 PartialClassElement, | 40 PartialClassElement, |
41 PartialFunctionElement; | 41 PartialFunctionElement; |
42 | 42 |
43 class ElementVisitor extends elements_visitor.ElementVisitor { | 43 class ElementVisitor extends elements_visitor.ElementVisitor { |
44 visitElement(e) {} | 44 visitElement(e) {} |
45 } | 45 } |
46 | 46 |
47 void main(List<String> arguments) { | 47 void main(List<String> arguments) { |
48 useApi(); | 48 useApi(); |
49 dart2js.main(arguments); | 49 dart2js.main(arguments); |
| 50 dart2jslib.isPublicName(null); |
50 useConstant(null, null); | 51 useConstant(null, null); |
51 useNode(null); | 52 useNode(null); |
52 useUtil(null); | 53 useUtil(null); |
53 useSetlet(null); | 54 useSetlet(null); |
54 useImmutableEmptySet(null); | 55 useImmutableEmptySet(null); |
55 useElementVisitor(new ElementVisitor()); | 56 useElementVisitor(new ElementVisitor()); |
56 useJsNode(new js.Program(null)); | 57 useJsNode(new js.Program(null)); |
57 useJsNode(new js.NamedFunction(null, null)); | 58 useJsNode(new js.NamedFunction(null, null)); |
58 useJsNode(new js.ArrayHole()); | 59 useJsNode(new js.ArrayHole()); |
59 useJsOther(new js.SimpleJavaScriptPrintingContext()); | 60 useJsOther(new js.SimpleJavaScriptPrintingContext()); |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 | 280 |
280 useProgramBuilder(program_builder.ProgramBuilder builder) { | 281 useProgramBuilder(program_builder.ProgramBuilder builder) { |
281 builder.buildMethodHackForIncrementalCompilation(null); | 282 builder.buildMethodHackForIncrementalCompilation(null); |
282 builder.buildFieldsHackForIncrementalCompilation(null); | 283 builder.buildFieldsHackForIncrementalCompilation(null); |
283 } | 284 } |
284 | 285 |
285 useSemanticVisitor() { | 286 useSemanticVisitor() { |
286 new semantic_visitor.BulkVisitor().apply(null, null); | 287 new semantic_visitor.BulkVisitor().apply(null, null); |
287 new semantic_visitor.TraversalVisitor(null).apply(null, null); | 288 new semantic_visitor.TraversalVisitor(null).apply(null, null); |
288 } | 289 } |
OLD | NEW |