| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 } | 65 } |
| 66 | 66 |
| 67 void useConstant(constants.ConstantValue constant, | 67 void useConstant(constants.ConstantValue constant, |
| 68 dart2jslib.ConstantSystem cs) { | 68 dart2jslib.ConstantSystem cs) { |
| 69 constant.isObject; | 69 constant.isObject; |
| 70 cs.isBool(constant); | 70 cs.isBool(constant); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void useNode(tree.Node node) { | 73 void useNode(tree.Node node) { |
| 74 node | 74 node |
| 75 ..asAsyncModifier() |
| 76 ..asAwait() |
| 75 ..asBreakStatement() | 77 ..asBreakStatement() |
| 76 ..asCascade() | 78 ..asCascade() |
| 77 ..asCatchBlock() | 79 ..asCatchBlock() |
| 78 ..asClassNode() | 80 ..asClassNode() |
| 79 ..asCombinator() | 81 ..asCombinator() |
| 80 ..asConditional() | 82 ..asConditional() |
| 81 ..asContinueStatement() | 83 ..asContinueStatement() |
| 82 ..asErrorExpression() | 84 ..asErrorExpression() |
| 83 ..asExport() | 85 ..asExport() |
| 84 ..asFor() | 86 ..asFor() |
| (...skipping 18 matching lines...) Expand all Loading... |
| 103 ..asStringInterpolation() | 105 ..asStringInterpolation() |
| 104 ..asStringInterpolationPart() | 106 ..asStringInterpolationPart() |
| 105 ..asStringJuxtaposition() | 107 ..asStringJuxtaposition() |
| 106 ..asStringNode() | 108 ..asStringNode() |
| 107 ..asSwitchCase() | 109 ..asSwitchCase() |
| 108 ..asSwitchStatement() | 110 ..asSwitchStatement() |
| 109 ..asTryStatement() | 111 ..asTryStatement() |
| 110 ..asTypeAnnotation() | 112 ..asTypeAnnotation() |
| 111 ..asTypeVariable() | 113 ..asTypeVariable() |
| 112 ..asTypedef() | 114 ..asTypedef() |
| 113 ..asWhile(); | 115 ..asWhile() |
| 116 ..asYield(); |
| 114 } | 117 } |
| 115 | 118 |
| 116 void useUtil(util.Link link) { | 119 void useUtil(util.Link link) { |
| 117 link.reversePrependAll(link); | 120 link.reversePrependAll(link); |
| 118 util.longestCommonPrefixLength(null, null); | 121 util.longestCommonPrefixLength(null, null); |
| 119 new util.Pair(null, null); | 122 new util.Pair(null, null); |
| 120 } | 123 } |
| 121 | 124 |
| 122 void useSetlet(util.Setlet setlet) { | 125 void useSetlet(util.Setlet setlet) { |
| 123 setlet.difference(setlet); | 126 setlet.difference(setlet); |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 compiler.forgetElement(null); | 248 compiler.forgetElement(null); |
| 246 } | 249 } |
| 247 | 250 |
| 248 useTypes() { | 251 useTypes() { |
| 249 new dart_types.ResolvedTypedefType(null, null, null).unalias(null); | 252 new dart_types.ResolvedTypedefType(null, null, null).unalias(null); |
| 250 } | 253 } |
| 251 | 254 |
| 252 useCodeEmitterTask(js_emitter.CodeEmitterTask codeEmitterTask) { | 255 useCodeEmitterTask(js_emitter.CodeEmitterTask codeEmitterTask) { |
| 253 codeEmitterTask.oldEmitter.clearCspPrecompiledNodes(); | 256 codeEmitterTask.oldEmitter.clearCspPrecompiledNodes(); |
| 254 } | 257 } |
| OLD | NEW |