| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 library fletchc.verbs.attach_verb; | 5 library fletchc.verbs.attach_verb; |
| 6 | 6 |
| 7 import 'infrastructure.dart'; | 7 import 'infrastructure.dart'; |
| 8 | 8 |
| 9 import 'documentation.dart' show | 9 import 'documentation.dart' show |
| 10 attachDocumentation; | 10 attachDocumentation; |
| 11 | 11 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 Future<int> attachTask(String host, int port) async { | 43 Future<int> attachTask(String host, int port) async { |
| 44 SessionState state = SessionState.current; | 44 SessionState state = SessionState.current; |
| 45 | 45 |
| 46 // Cleanup previous session if any. | 46 // Cleanup previous session if any. |
| 47 await state.terminateSession(); | 47 await state.terminateSession(); |
| 48 | 48 |
| 49 state.explicitAttach = true; | 49 state.explicitAttach = true; |
| 50 await attachToVm(host, port, state); | 50 await attachToVm(host, port, state); |
| 51 return 0; | 51 return 0; |
| 52 } | 52 } |
| OLD | NEW |