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

Unified Diff: pkg/fletchc/lib/src/verbs/export_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/documentation.dart ('k') | pkg/fletchc/lib/src/verbs/help_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/export_verb.dart
diff --git a/pkg/fletchc/lib/src/verbs/export_verb.dart b/pkg/fletchc/lib/src/verbs/export_verb.dart
deleted file mode 100644
index 393b3f38d73da33de0d0036e21d040a08d32b30a..0000000000000000000000000000000000000000
--- a/pkg/fletchc/lib/src/verbs/export_verb.dart
+++ /dev/null
@@ -1,63 +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.export_verb;
-
-import 'infrastructure.dart';
-
-import 'documentation.dart' show
- exportDocumentation;
-
-import '../worker/developer.dart' show
- compileAndAttachToVmThen;
-
-import '../worker/developer.dart' as developer;
-
-const Action exportAction =
- const Action(
- export, exportDocumentation, requiresSession: true,
- requiresToUri: true,
- supportedTargets: const <TargetKind>[TargetKind.FILE]);
-
-Future<int> export(AnalyzedSentence sentence, VerbContext context) {
- return context.performTaskInWorker(
- new ExportTask(sentence.targetUri, sentence.toTargetUri, sentence.base));
-}
-
-class ExportTask extends SharedTask {
- // Keep this class simple, see note in superclass.
-
- final Uri script;
-
- final Uri snapshot;
-
- final Uri base;
-
- const ExportTask(this.script, this.snapshot, this.base);
-
- Future<int> call(
- CommandSender commandSender,
- StreamIterator<ClientCommand> commandIterator) {
- return exportTask(
- commandSender, commandIterator, SessionState.current, script, snapshot,
- base);
- }
-}
-
-Future<int> exportTask(
- CommandSender commandSender,
- StreamIterator<ClientCommand> commandIterator,
- SessionState state,
- Uri script,
- Uri snapshot,
- Uri base) async {
- return compileAndAttachToVmThen(
- commandSender,
- commandIterator,
- state,
- script,
- base,
- true,
- () => developer.export(state, snapshot));
-}
« no previous file with comments | « pkg/fletchc/lib/src/verbs/documentation.dart ('k') | pkg/fletchc/lib/src/verbs/help_verb.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698