| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 filenames.appendSlash(null); | 185 filenames.appendSlash(null); |
| 186 } | 186 } |
| 187 | 187 |
| 188 useSsa(ssa.HInstruction instruction) { | 188 useSsa(ssa.HInstruction instruction) { |
| 189 instruction.isConstantNumber(); | 189 instruction.isConstantNumber(); |
| 190 new ssa.HAndOrBlockInformation(null, null, null); | 190 new ssa.HAndOrBlockInformation(null, null, null); |
| 191 new ssa.HStatementSequenceInformation(null); | 191 new ssa.HStatementSequenceInformation(null); |
| 192 } | 192 } |
| 193 | 193 |
| 194 useCodeBuffer(io.CodeBuffer buffer) { | 194 useCodeBuffer(io.CodeBuffer buffer) { |
| 195 buffer.writeln(); | |
| 196 new io.LineColumnCodeOutput(null); | |
| 197 } | 195 } |
| 198 | 196 |
| 199 usedByTests() { | 197 usedByTests() { |
| 200 // TODO(ahe): We should try to avoid including API used only for tests. In | 198 // TODO(ahe): We should try to avoid including API used only for tests. In |
| 201 // most cases, such API can be moved to a test library. | 199 // most cases, such API can be moved to a test library. |
| 202 dart2jslib.World world = null; | 200 dart2jslib.World world = null; |
| 203 dart2jslib.Compiler compiler = null; | 201 dart2jslib.Compiler compiler = null; |
| 204 compiler.currentlyInUserCode(); | 202 compiler.currentlyInUserCode(); |
| 205 type_graph_inferrer.TypeGraphInferrer typeGraphInferrer = null; | 203 type_graph_inferrer.TypeGraphInferrer typeGraphInferrer = null; |
| 206 source_file_provider.SourceFileProvider sourceFileProvider = null; | 204 source_file_provider.SourceFileProvider sourceFileProvider = null; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 new dart_types.ResolvedTypedefType(null, null, null).unalias(null); | 268 new dart_types.ResolvedTypedefType(null, null, null).unalias(null); |
| 271 } | 269 } |
| 272 | 270 |
| 273 useCodeEmitterTask(js_emitter.CodeEmitterTask codeEmitterTask) { | 271 useCodeEmitterTask(js_emitter.CodeEmitterTask codeEmitterTask) { |
| 274 codeEmitterTask.oldEmitter.clearCspPrecompiledNodes(); | 272 codeEmitterTask.oldEmitter.clearCspPrecompiledNodes(); |
| 275 } | 273 } |
| 276 | 274 |
| 277 useScript(dart2jslib.Script script) { | 275 useScript(dart2jslib.Script script) { |
| 278 script.copyWithFile(null); | 276 script.copyWithFile(null); |
| 279 } | 277 } |
| OLD | NEW |