Index: lib/src/compiler.dart |
diff --git a/lib/src/compiler.dart b/lib/src/compiler.dart |
index 926e87412b204a59918612b9e9f1c033f0a7c6f5..6a97b1bd55801639e58daabf64712d34f5ce5c1f 100644 |
--- a/lib/src/compiler.dart |
+++ b/lib/src/compiler.dart |
@@ -34,7 +34,6 @@ import 'codegen/html_codegen.dart' as html_codegen; |
import 'codegen/js_codegen.dart'; |
import 'info.dart' |
show AnalyzerMessage, CheckerResults, LibraryInfo, LibraryUnit; |
-import 'server/server.dart' show DevServer; |
import 'options.dart'; |
import 'report.dart'; |
@@ -64,18 +63,12 @@ CompilerOptions validateOptions(List<String> args, {bool forceOutDir: false}) { |
return options; |
} |
-Future<bool> compile(CompilerOptions options) async { |
- setupLogger(options.logLevel, print); |
- |
- if (options.serverMode) { |
- return new DevServer(options).start(); |
- } else { |
- var context = createAnalysisContextWithSources( |
- options.strongOptions, options.sourceOptions); |
- var reporter = createErrorReporter(context, options); |
- // Note: run returns a bool, turned into a future since this function is async. |
- return new BatchCompiler(context, options, reporter: reporter).run(); |
- } |
+bool compile(CompilerOptions options) { |
+ assert(!options.serverMode); |
+ var context = createAnalysisContextWithSources( |
+ options.strongOptions, options.sourceOptions); |
+ var reporter = createErrorReporter(context, options); |
+ return new BatchCompiler(context, options, reporter: reporter).run(); |
} |
class BatchCompiler extends AbstractCompiler { |