| 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 ..addFirst(null, null, null) | 240 ..addFirst(null, null, null) |
| 241 ..forEachLine(null) | 241 ..forEachLine(null) |
| 242 ..getFirstElementsInLine(null) | 242 ..getFirstElementsInLine(null) |
| 243 ..forEachColumn(null, null); | 243 ..forEachColumn(null, null); |
| 244 provider.getOffset(null, null); | 244 provider.getOffset(null, null); |
| 245 } | 245 } |
| 246 | 246 |
| 247 usedByTests() { | 247 usedByTests() { |
| 248 // TODO(ahe): We should try to avoid including API used only for tests. In | 248 // TODO(ahe): We should try to avoid including API used only for tests. In |
| 249 // most cases, such API can be moved to a test library. | 249 // most cases, such API can be moved to a test library. |
| 250 World world = null; | 250 WorldImpl world = null; |
| 251 type_graph_inferrer.TypeGraphInferrer typeGraphInferrer = null; | 251 type_graph_inferrer.TypeGraphInferrer typeGraphInferrer = null; |
| 252 source_file_provider.SourceFileProvider sourceFileProvider = null; | 252 source_file_provider.SourceFileProvider sourceFileProvider = null; |
| 253 sourceFileProvider.getSourceFile(null); | 253 sourceFileProvider.getSourceFile(null); |
| 254 world.hasAnyUserDefinedGetter(null, null); | 254 world.hasAnyUserDefinedGetter(null, null); |
| 255 world.subclassesOf(null); | 255 world.subclassesOf(null); |
| 256 world.getClassHierarchyNode(null); | 256 world.getClassHierarchyNode(null); |
| 257 world.getClassSet(null); | 257 world.getClassSet(null); |
| 258 world.haveAnyCommonSubtypes(null, null); | 258 world.haveAnyCommonSubtypes(null, null); |
| 259 typeGraphInferrer.getCallersOf(null); | 259 typeGraphInferrer.getCallersOf(null); |
| 260 dart_types.Types.sorted(null); | 260 dart_types.Types.sorted(null); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 operators.UnaryOperator.fromKind(null); | 309 operators.UnaryOperator.fromKind(null); |
| 310 operators.BinaryOperator.fromKind(null); | 310 operators.BinaryOperator.fromKind(null); |
| 311 new semantic_visitor.BulkSendVisitor()..apply(null, null); | 311 new semantic_visitor.BulkSendVisitor()..apply(null, null); |
| 312 new semantic_visitor.TraversalVisitor(null).apply(null, null); | 312 new semantic_visitor.TraversalVisitor(null).apply(null, null); |
| 313 new semantic_visitor.BulkDeclarationVisitor().apply(null, null); | 313 new semantic_visitor.BulkDeclarationVisitor().apply(null, null); |
| 314 } | 314 } |
| 315 | 315 |
| 316 useDeferred([deferred.DeferredLoadTask task]) { | 316 useDeferred([deferred.DeferredLoadTask task]) { |
| 317 task.dump(); | 317 task.dump(); |
| 318 } | 318 } |
| OLD | NEW |