File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
pkg/dev_compiler/lib/src/kernel Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -304,6 +304,7 @@ Future<CompilerResult> _compile(List<String> args,
304304 if (useAnalyzer || ! useIncrementalCompiler) {
305305 result = await fe.compile (compilerState, inputs, diagnosticMessageHandler);
306306 } else {
307+ compilerState.options.onDiagnostic = diagnosticMessageHandler;
307308 Component incrementalComponent = await incrementalCompiler.computeDelta (
308309 entryPoints: inputs, fullComponent: true );
309310 hierarchy = incrementalCompiler.userCode.loader.hierarchy;
@@ -319,6 +320,8 @@ Future<CompilerResult> _compile(List<String> args,
319320 }
320321 }
321322 }
323+ compilerState.options.onDiagnostic = null ; // See http://dartbug.com/36983.
324+
322325 if (result == null || ! succeeded) {
323326 return CompilerResult (1 , kernelState: compilerState);
324327 }
You can’t perform that action at this time.
0 commit comments