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

Unified Diff: pkg/fletchc/lib/src/verbs/run_verb.dart

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 11 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 | « pkg/fletchc/lib/src/verbs/quit_verb.dart ('k') | pkg/fletchc/lib/src/verbs/show_verb.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/fletchc/lib/src/verbs/run_verb.dart
diff --git a/pkg/fletchc/lib/src/verbs/run_verb.dart b/pkg/fletchc/lib/src/verbs/run_verb.dart
deleted file mode 100644
index a5e59032a8e397a1c75d9f41d9f779f4325c7873..0000000000000000000000000000000000000000
--- a/pkg/fletchc/lib/src/verbs/run_verb.dart
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
-// 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.verbs.run_verb;
-
-import 'infrastructure.dart';
-
-import 'documentation.dart' show
- runDocumentation;
-
-import '../worker/developer.dart' show
- compileAndAttachToVmThen;
-
-import '../worker/developer.dart' as developer;
-
-const Action runAction =
- const Action(
- run, runDocumentation, requiresSession: true,
- supportedTargets: const <TargetKind>[TargetKind.FILE]);
-
-Future<int> run(AnalyzedSentence sentence, VerbContext context) {
- bool terminateDebugger = sentence.options.terminateDebugger;
- List<String> testDebuggerCommands = sentence.options.testDebuggerCommands;
- return context.performTaskInWorker(
- new RunTask(
- sentence.targetUri, sentence.base, terminateDebugger,
- testDebuggerCommands));
-}
-
-class RunTask extends SharedTask {
- // Keep this class simple, see note in superclass.
-
- final Uri script;
-
- final Uri base;
-
- /// When true, terminate the debugger session before returning from
- /// [runTask]. Otherwise, the debugger session will be available after
- /// [runTask] completes.
- final bool terminateDebugger;
-
- final List<String> testDebuggerCommands;
-
- const RunTask(
- this.script,
- this.base,
- this.terminateDebugger,
- this.testDebuggerCommands);
-
- Future<int> call(
- CommandSender commandSender,
- StreamIterator<ClientCommand> commandIterator) {
- return runTask(
- commandSender, commandIterator, SessionState.current, script, base,
- terminateDebugger, testDebuggerCommands);
- }
-}
-
-Future<int> runTask(
- CommandSender commandSender,
- StreamIterator<ClientCommand> commandIterator,
- SessionState state,
- Uri script,
- Uri base,
- bool terminateDebugger,
- List<String> testDebuggerCommands) {
- return compileAndAttachToVmThen(
- commandSender,
- commandIterator,
- state,
- script,
- base,
- terminateDebugger,
- () => developer.run(
- state, testDebuggerCommands: testDebuggerCommands,
- terminateDebugger: terminateDebugger));
-}
« no previous file with comments | « pkg/fletchc/lib/src/verbs/quit_verb.dart ('k') | pkg/fletchc/lib/src/verbs/show_verb.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698