| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 190 |
| 191 usedByTests() { | 191 usedByTests() { |
| 192 // TODO(ahe): We should try to avoid including API used only for tests. In | 192 // TODO(ahe): We should try to avoid including API used only for tests. In |
| 193 // most cases, such API can be moved to a test library. | 193 // most cases, such API can be moved to a test library. |
| 194 dart2jslib.World world = null; | 194 dart2jslib.World world = null; |
| 195 dart2jslib.Compiler compiler = null; | 195 dart2jslib.Compiler compiler = null; |
| 196 compiler.currentlyInUserCode(); | 196 compiler.currentlyInUserCode(); |
| 197 type_graph_inferrer.TypeGraphInferrer typeGraphInferrer = null; | 197 type_graph_inferrer.TypeGraphInferrer typeGraphInferrer = null; |
| 198 source_file_provider.SourceFileProvider sourceFileProvider = null; | 198 source_file_provider.SourceFileProvider sourceFileProvider = null; |
| 199 world.hasAnyUserDefinedGetter(null); | 199 world.hasAnyUserDefinedGetter(null); |
| 200 compiler.importHelperLibrary(null); | |
| 201 typeGraphInferrer.getCallersOf(null); | 200 typeGraphInferrer.getCallersOf(null); |
| 202 dart_types.Types.sorted(null); | 201 dart_types.Types.sorted(null); |
| 203 new dart_types.Types(compiler).copy(compiler); | 202 new dart_types.Types(compiler).copy(compiler); |
| 204 new universe.TypedSelector.subclass(null, null); | 203 new universe.TypedSelector.subclass(null, null); |
| 205 new universe.TypedSelector.subtype(null, null); | 204 new universe.TypedSelector.subtype(null, null); |
| 206 new universe.TypedSelector.exact(null, null); | 205 new universe.TypedSelector.exact(null, null); |
| 207 sourceFileProvider.readStringFromUri(null); | 206 sourceFileProvider.readStringFromUri(null); |
| 208 } | 207 } |
| 209 | 208 |
| 210 useElements(elements.ClassElement e, elements.Name n) { | 209 useElements(elements.ClassElement e, elements.Name n) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 225 ..visitExpression(null) | 224 ..visitExpression(null) |
| 226 ..visitFunctionDefinition(null) | 225 ..visitFunctionDefinition(null) |
| 227 ..visitInvokeStatic(null) | 226 ..visitInvokeStatic(null) |
| 228 ..visitLetCont(null) | 227 ..visitLetCont(null) |
| 229 ..visitNode(null) | 228 ..visitNode(null) |
| 230 ..visitParameter(null); | 229 ..visitParameter(null); |
| 231 task | 230 task |
| 232 ..hasIr(null) | 231 ..hasIr(null) |
| 233 ..getIr(null); | 232 ..getIr(null); |
| 234 } | 233 } |
| OLD | NEW |