| 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 usedByTests() { | 253 usedByTests() { |
| 254 // TODO(ahe): We should try to avoid including API used only for tests. In | 254 // TODO(ahe): We should try to avoid including API used only for tests. In |
| 255 // most cases, such API can be moved to a test library. | 255 // most cases, such API can be moved to a test library. |
| 256 dart2jslib.World world = null; | 256 dart2jslib.World world = null; |
| 257 dart2jslib.Compiler compiler = null; | 257 dart2jslib.Compiler compiler = null; |
| 258 compiler.currentlyInUserCode(); | 258 compiler.currentlyInUserCode(); |
| 259 type_graph_inferrer.TypeGraphInferrer typeGraphInferrer = null; | 259 type_graph_inferrer.TypeGraphInferrer typeGraphInferrer = null; |
| 260 source_file_provider.SourceFileProvider sourceFileProvider = null; | 260 source_file_provider.SourceFileProvider sourceFileProvider = null; |
| 261 sourceFileProvider.getSourceFile(null); | 261 sourceFileProvider.getSourceFile(null); |
| 262 world.hasAnyUserDefinedGetter(null, null); | 262 world.hasAnyUserDefinedGetter(null, null); |
| 263 world.subclassesOf(null); |
| 264 world.classHierarchyNode(null); |
| 263 typeGraphInferrer.getCallersOf(null); | 265 typeGraphInferrer.getCallersOf(null); |
| 264 dart_types.Types.sorted(null); | 266 dart_types.Types.sorted(null); |
| 265 new dart_types.Types(compiler).copy(compiler); | 267 new dart_types.Types(compiler).copy(compiler); |
| 266 sourceFileProvider.readStringFromUri(null); | 268 sourceFileProvider.readStringFromUri(null); |
| 267 } | 269 } |
| 268 | 270 |
| 269 useElements( | 271 useElements( |
| 270 [elements.ClassElement e, | 272 [elements.ClassElement e, |
| 271 elements.Name n, | 273 elements.Name n, |
| 272 modelx.FieldElementX f, | 274 modelx.FieldElementX f, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 | 330 |
| 329 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 | 331 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 |
| 330 with tree_ir.StatementVisitor1 { | 332 with tree_ir.StatementVisitor1 { |
| 331 noSuchMethod(inv) {} | 333 noSuchMethod(inv) {} |
| 332 } | 334 } |
| 333 | 335 |
| 334 useTreeVisitors() { | 336 useTreeVisitors() { |
| 335 new TreeVisitor1().visitExpression(null, null); | 337 new TreeVisitor1().visitExpression(null, null); |
| 336 new TreeVisitor1().visitStatement(null, null); | 338 new TreeVisitor1().visitStatement(null, null); |
| 337 } | 339 } |
| OLD | NEW |