| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 ..visitParameter(null); | 226 ..visitParameter(null); |
| 227 task | 227 task |
| 228 ..hasIr(null) | 228 ..hasIr(null) |
| 229 ..getIr(null); | 229 ..getIr(null); |
| 230 builder | 230 builder |
| 231 ..buildIntegerLiteral(null) | 231 ..buildIntegerLiteral(null) |
| 232 ..buildDoubleLiteral(null) | 232 ..buildDoubleLiteral(null) |
| 233 ..buildBooleanLiteral(null) | 233 ..buildBooleanLiteral(null) |
| 234 ..buildNullLiteral() | 234 ..buildNullLiteral() |
| 235 ..buildStringLiteral(null) | 235 ..buildStringLiteral(null) |
| 236 ..buildDynamicGet(null, null); | 236 ..buildDynamicGet(null, null) |
| 237 ..buildSuperGet(null); |
| 237 } | 238 } |
| 238 | 239 |
| 239 useCompiler(dart2jslib.Compiler compiler) { | 240 useCompiler(dart2jslib.Compiler compiler) { |
| 240 compiler.libraryLoader | 241 compiler.libraryLoader |
| 241 ..reset() | 242 ..reset() |
| 242 ..resetAsync(null) | 243 ..resetAsync(null) |
| 243 ..lookupLibrary(null); | 244 ..lookupLibrary(null); |
| 244 compiler.forgetElement(null); | 245 compiler.forgetElement(null); |
| 245 } | 246 } |
| 246 | 247 |
| 247 useTypes() { | 248 useTypes() { |
| 248 new dart_types.ResolvedTypedefType(null, null, null).unalias(null); | 249 new dart_types.ResolvedTypedefType(null, null, null).unalias(null); |
| 249 } | 250 } |
| 250 | 251 |
| 251 useCodeEmitterTask(js_emitter.CodeEmitterTask codeEmitterTask) { | 252 useCodeEmitterTask(js_emitter.CodeEmitterTask codeEmitterTask) { |
| 252 codeEmitterTask.oldEmitter.clearCspPrecompiledNodes(); | 253 codeEmitterTask.oldEmitter.clearCspPrecompiledNodes(); |
| 253 } | 254 } |
| OLD | NEW |