Index: pkg/front_end/lib/src/fasta/compiler_context.dart |
diff --git a/pkg/front_end/lib/src/fasta/compiler_context.dart b/pkg/front_end/lib/src/fasta/compiler_context.dart |
index 3994f09381d18f905e5c222b938a69a642e6fa99..aba40fe5491a1ea521c6541e6aa2faa183136d10 100644 |
--- a/pkg/front_end/lib/src/fasta/compiler_context.dart |
+++ b/pkg/front_end/lib/src/fasta/compiler_context.dart |
@@ -29,6 +29,10 @@ class CompilerContext { |
CompilerContext(this.options); |
+ void disableColors() { |
+ enableColorsCached = false; |
+ } |
+ |
static CompilerContext get current { |
return Zone.current[compilerContextKey] ?? rootContext; |
} |