| 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 13 matching lines...) Expand all Loading... |
| 24 import 'elements/modelx.dart' as modelx; | 24 import 'elements/modelx.dart' as modelx; |
| 25 import 'elements/visitor.dart' as elements_visitor; | 25 import 'elements/visitor.dart' as elements_visitor; |
| 26 import 'filenames.dart' as filenames; | 26 import 'filenames.dart' as filenames; |
| 27 import 'inferrer/concrete_types_inferrer.dart' as concrete_types_inferrer; | 27 import 'inferrer/concrete_types_inferrer.dart' as concrete_types_inferrer; |
| 28 import 'inferrer/type_graph_inferrer.dart' as type_graph_inferrer; | 28 import 'inferrer/type_graph_inferrer.dart' as type_graph_inferrer; |
| 29 import 'io/line_column_provider.dart' as io; | 29 import 'io/line_column_provider.dart' as io; |
| 30 import 'io/source_map_builder.dart' as io; | 30 import 'io/source_map_builder.dart' as io; |
| 31 import 'js/js.dart' as js; | 31 import 'js/js.dart' as js; |
| 32 import 'js_backend/js_backend.dart' as js_backend; | 32 import 'js_backend/js_backend.dart' as js_backend; |
| 33 import 'js_emitter/js_emitter.dart' as js_emitter; | 33 import 'js_emitter/js_emitter.dart' as js_emitter; |
| 34 import 'js_emitter/full_emitter/emitter.dart' as full; |
| 34 import 'js_emitter/program_builder/program_builder.dart' as program_builder; | 35 import 'js_emitter/program_builder/program_builder.dart' as program_builder; |
| 35 import 'resolution/semantic_visitor.dart' as semantic_visitor; | 36 import 'resolution/semantic_visitor.dart' as semantic_visitor; |
| 36 import 'resolution/operators.dart' as operators; | 37 import 'resolution/operators.dart' as operators; |
| 37 import 'source_file_provider.dart' as source_file_provider; | 38 import 'source_file_provider.dart' as source_file_provider; |
| 38 import 'ssa/ssa.dart' as ssa; | 39 import 'ssa/ssa.dart' as ssa; |
| 39 import 'tree/tree.dart' as tree; | 40 import 'tree/tree.dart' as tree; |
| 40 import 'util/util.dart' as util; | 41 import 'util/util.dart' as util; |
| 41 | 42 |
| 42 import 'scanner/scannerlib.dart' show | 43 import 'scanner/scannerlib.dart' show |
| 43 PartialClassElement, | 44 PartialClassElement, |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 ..lookupLibrary(null); | 295 ..lookupLibrary(null); |
| 295 compiler.forgetElement(null); | 296 compiler.forgetElement(null); |
| 296 compiler.backend.constantCompilerTask.copyConstantValues(null); | 297 compiler.backend.constantCompilerTask.copyConstantValues(null); |
| 297 } | 298 } |
| 298 | 299 |
| 299 useTypes() { | 300 useTypes() { |
| 300 new dart_types.ResolvedTypedefType(null, null, null).unalias(null); | 301 new dart_types.ResolvedTypedefType(null, null, null).unalias(null); |
| 301 } | 302 } |
| 302 | 303 |
| 303 useCodeEmitterTask(js_emitter.CodeEmitterTask codeEmitterTask) { | 304 useCodeEmitterTask(js_emitter.CodeEmitterTask codeEmitterTask) { |
| 304 js_emitter.OldEmitter fullEmitter = codeEmitterTask.emitter; | 305 full.Emitter fullEmitter = codeEmitterTask.emitter; |
| 305 fullEmitter.clearCspPrecompiledNodes(); | 306 fullEmitter.clearCspPrecompiledNodes(); |
| 306 fullEmitter.buildLazilyInitializedStaticField(null, isolateProperties: null); | 307 fullEmitter.buildLazilyInitializedStaticField(null, isolateProperties: null); |
| 307 } | 308 } |
| 308 | 309 |
| 309 useScript(dart2jslib.Script script) { | 310 useScript(dart2jslib.Script script) { |
| 310 script.copyWithFile(null); | 311 script.copyWithFile(null); |
| 311 } | 312 } |
| 312 | 313 |
| 313 useProgramBuilder(program_builder.ProgramBuilder builder) { | 314 useProgramBuilder(program_builder.ProgramBuilder builder) { |
| 314 builder.buildMethodHackForIncrementalCompilation(null); | 315 builder.buildMethodHackForIncrementalCompilation(null); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 327 | 328 |
| 328 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 | 329 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 |
| 329 with tree_ir.StatementVisitor1 { | 330 with tree_ir.StatementVisitor1 { |
| 330 noSuchMethod(inv) {} | 331 noSuchMethod(inv) {} |
| 331 } | 332 } |
| 332 | 333 |
| 333 useTreeVisitors() { | 334 useTreeVisitors() { |
| 334 new TreeVisitor1().visitExpression(null, null); | 335 new TreeVisitor1().visitExpression(null, null); |
| 335 new TreeVisitor1().visitStatement(null, null); | 336 new TreeVisitor1().visitStatement(null, null); |
| 336 } | 337 } |
| OLD | NEW |