Index: pkg/compiler/lib/src/js_emitter/code_emitter_task.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart |
index cdcc609c5384937fd5e7f1245222b0f0b4c33df6..4c4466694e85044d95936ee966baa24b3b566ed8 100644 |
--- a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart |
+++ b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart |
@@ -53,6 +53,10 @@ class CodeEmitterTask extends CompilerTask { |
String get name => 'Code emitter'; |
+ /// Returns the string that is used to find library patches that are |
+ /// specialized for the emitter. |
+ String get patchVersion => emitter.patchVersion; |
+ |
/// Returns the closure expression of a static function. |
jsAst.Expression isolateStaticClosureAccess(FunctionElement element) { |
return emitter.isolateStaticClosureAccess(element); |
@@ -148,6 +152,10 @@ class CodeEmitterTask extends CompilerTask { |
} |
abstract class Emitter { |
+ /// Returns the string that is used to find library patches that are |
+ /// specialized for this emitter. |
+ String get patchVersion; |
+ |
/// Uses the [programBuilder] to generate a model of the program, emits |
/// the program, and returns the size of the generated output. |
int emitProgram(ProgramBuilder programBuilder); |