Index: tools/dartinoc_blaze.dart |
diff --git a/tools/fletchc_blaze.dart b/tools/dartinoc_blaze.dart |
similarity index 81% |
rename from tools/fletchc_blaze.dart |
rename to tools/dartinoc_blaze.dart |
index 05a96e0815e0b34518f2f080c68067bf91fe19b0..ad1466fe0116dcd360bd52f63e267045af46fa77 100644 |
--- a/tools/fletchc_blaze.dart |
+++ b/tools/dartinoc_blaze.dart |
@@ -2,7 +2,7 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE.md file. |
-library fletchc_blaze; |
+library dartino_compiler_blaze; |
import 'dart:async'; |
@@ -12,25 +12,25 @@ import 'dart:convert' show |
import 'dart:io'; |
-import 'package:fletchc/session.dart' show |
+import 'package:dartino_compiler/session.dart' show |
Session; |
-import 'package:fletchc/src/hub/session_manager.dart'; |
+import 'package:dartino_compiler/src/hub/session_manager.dart'; |
-import 'package:fletchc/src/worker/developer.dart' show |
+import 'package:dartino_compiler/src/worker/developer.dart' show |
Address, |
Settings, |
SessionState; |
-import 'package:fletchc/src/worker/developer.dart' as developer; |
+import 'package:dartino_compiler/src/worker/developer.dart' as developer; |
-import 'package:fletchc/src/verbs/infrastructure.dart' show |
+import 'package:dartino_compiler/src/verbs/infrastructure.dart' show |
fileUri; |
import 'package:compiler/src/filenames.dart' show |
appendSlash; |
-class FletchRunner { |
+class DartinoRunner { |
Future<int> run(List<String> arguments) async { |
int debugPort; |
@@ -38,7 +38,7 @@ class FletchRunner { |
String snapshot; |
String script; |
Uri libraryRoot; |
- Uri fletchVm; |
+ Uri dartinoVm; |
Uri nativesJson; |
for (int i = 0; i < arguments.length; ++i) { |
@@ -57,9 +57,9 @@ class FletchRunner { |
libraryRoot = Uri.base.resolve(appendSlash(arguments[++i])); |
} else if (arg == "--patch-root") { |
throw "--patch-root not supported anymore"; |
- } else if (arg == "--fletch-vm") { |
- if (fletchVm != null) throw "Cannot use multiple Fletch VMs"; |
- fletchVm = Uri.base.resolve(arguments[++i]); |
+ } else if (arg == "--dartino-vm") { |
+ if (dartinoVm != null) throw "Cannot use multiple Dartino VMs"; |
+ dartinoVm = Uri.base.resolve(arguments[++i]); |
} else if (arg == "--natives-json") { |
if (nativesJson != null) throw "Cannot use multiple natives json files"; |
nativesJson = Uri.base.resolve(arguments[++i]); |
@@ -86,10 +86,10 @@ class FletchRunner { |
fileUri(packages, Uri.base), <String>["--verbose"], null, device, null); |
SessionState state = developer.createSessionState( |
- "fletchc-blaze", |
+ "dartino_compiler-blaze", |
settings, |
libraryRoot: libraryRoot, |
- fletchVm: fletchVm, |
+ dartinoVm: dartinoVm, |
nativesJson: nativesJson); |
int result = await developer.compile(fileUri(script, Uri.base), state); |
@@ -105,7 +105,7 @@ class FletchRunner { |
state.stderrSink.attachCommandSender(stderr.add); |
Session session = state.session; |
- for (FletchDelta delta in state.compilationResults) { |
+ for (DartinoDelta delta in state.compilationResults) { |
await session.applyDelta(delta); |
} |
@@ -128,5 +128,5 @@ class FletchRunner { |
} |
main(List<String> arguments) async { |
- return await new FletchRunner().run(arguments); |
+ return await new DartinoRunner().run(arguments); |
} |