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

Unified Diff: pkg/fletchc/lib/src/verbs/attach_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/actions.dart ('k') | pkg/fletchc/lib/src/verbs/compile_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/attach_verb.dart
diff --git a/pkg/fletchc/lib/src/verbs/attach_verb.dart b/pkg/fletchc/lib/src/verbs/attach_verb.dart
deleted file mode 100644
index c1a65204705d8a1596755cbc132dee33b32436e7..0000000000000000000000000000000000000000
--- a/pkg/fletchc/lib/src/verbs/attach_verb.dart
+++ /dev/null
@@ -1,52 +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.attach_verb;
-
-import 'infrastructure.dart';
-
-import 'documentation.dart' show
- attachDocumentation;
-
-import '../worker/developer.dart' show
- Address,
- attachToVm,
- parseAddress;
-
-const Action attachAction = const Action(
- attach, attachDocumentation, requiresSession: true,
- requiredTarget: TargetKind.TCP_SOCKET);
-
-Future<int> attach(AnalyzedSentence sentence, VerbContext context) {
- Address address = parseAddress(sentence.targetName);
- return context.performTaskInWorker(
- new AttachTask(address.host, address.port));
-}
-
-class AttachTask extends SharedTask {
- // Keep this class simple, see note in superclass.
-
- final String host;
-
- final int port;
-
- const AttachTask(this.host, this.port);
-
- Future<int> call(
- CommandSender commandSender,
- StreamIterator<ClientCommand> commandIterator) {
- return attachTask(host, port);
- }
-}
-
-Future<int> attachTask(String host, int port) async {
- SessionState state = SessionState.current;
-
- // Cleanup previous session if any.
- await state.terminateSession();
-
- state.explicitAttach = true;
- await attachToVm(host, port, state);
- return 0;
-}
« no previous file with comments | « pkg/fletchc/lib/src/verbs/actions.dart ('k') | pkg/fletchc/lib/src/verbs/compile_verb.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698