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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 // TODO(ahe): We should try to avoid including API used only for tests. In | 263 // TODO(ahe): We should try to avoid including API used only for tests. In |
264 // most cases, such API can be moved to a test library. | 264 // most cases, such API can be moved to a test library. |
265 World world = null; | 265 World world = null; |
266 dart2jslib.Compiler compiler = null; | 266 dart2jslib.Compiler compiler = null; |
267 compiler.currentlyInUserCode(); | 267 compiler.currentlyInUserCode(); |
268 type_graph_inferrer.TypeGraphInferrer typeGraphInferrer = null; | 268 type_graph_inferrer.TypeGraphInferrer typeGraphInferrer = null; |
269 source_file_provider.SourceFileProvider sourceFileProvider = null; | 269 source_file_provider.SourceFileProvider sourceFileProvider = null; |
270 sourceFileProvider.getSourceFile(null); | 270 sourceFileProvider.getSourceFile(null); |
271 world.hasAnyUserDefinedGetter(null, null); | 271 world.hasAnyUserDefinedGetter(null, null); |
272 world.subclassesOf(null); | 272 world.subclassesOf(null); |
273 world.classHierarchyNode(null); | 273 world.getClassHierarchyNode(null); |
| 274 world.getClassSet(null); |
274 typeGraphInferrer.getCallersOf(null); | 275 typeGraphInferrer.getCallersOf(null); |
275 dart_types.Types.sorted(null); | 276 dart_types.Types.sorted(null); |
276 new dart_types.Types(compiler).copy(compiler); | 277 new dart_types.Types(compiler).copy(compiler); |
277 sourceFileProvider.readStringFromUri(null); | 278 sourceFileProvider.readStringFromUri(null); |
278 } | 279 } |
279 | 280 |
280 useElements( | 281 useElements( |
281 [elements.ClassElement e, | 282 [elements.ClassElement e, |
282 elements.Name n, | 283 elements.Name n, |
283 modelx.FieldElementX f, | 284 modelx.FieldElementX f, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 | 337 |
337 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 | 338 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 |
338 with tree_ir.StatementVisitor1 { | 339 with tree_ir.StatementVisitor1 { |
339 noSuchMethod(inv) {} | 340 noSuchMethod(inv) {} |
340 } | 341 } |
341 | 342 |
342 useTreeVisitors() { | 343 useTreeVisitors() { |
343 new TreeVisitor1().visitExpression(null, null); | 344 new TreeVisitor1().visitExpression(null, null); |
344 new TreeVisitor1().visitStatement(null, null); | 345 new TreeVisitor1().visitStatement(null, null); |
345 } | 346 } |
OLD | NEW |