Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1742)

Unified Diff: bin/devc.dart

Issue 973433003: Initial cut for a development server (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/devc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/devc.dart
diff --git a/bin/devc.dart b/bin/devc.dart
index ac1919afc00e3093b17ce999448f7df830473bba..425128be76509a6f66fcc91f3a7a09bc8e698a54 100755
--- a/bin/devc.dart
+++ b/bin/devc.dart
@@ -9,8 +9,6 @@ library ddc.bin.checker;
import 'dart:io';
import 'package:dev_compiler/devc.dart';
-import 'package:dev_compiler/src/checker/dart_sdk.dart' show mockSdkSources;
-import 'package:dev_compiler/src/checker/resolver.dart' show TypeResolver;
import 'package:dev_compiler/src/options.dart';
void _showUsageAndExit() {
@@ -38,9 +36,10 @@ void main(List<String> args) {
if (!options.dumpInfo) setupLogger(options.logLevel, print);
- var typeResolver = options.useMockSdk
- ? new TypeResolver.fromMock(mockSdkSources, options)
- : new TypeResolver.fromDir(options.dartSdkPath, options);
- var result = compile(options.entryPointFile, typeResolver, options);
- exit(result.failure ? 1 : 0);
+ if (options.serverMode) {
+ new CompilerServer(options).start();
+ } else {
+ var result = new Compiler(options).run();
+ exit(result.failure ? 1 : 0);
+ }
}
« no previous file with comments | « no previous file | lib/devc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698