| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library domain.execution; | 5 library domain.execution; |
| 6 | 6 |
| 7 import 'dart:collection'; |
| 8 |
| 7 import 'package:analysis_server/src/analysis_server.dart'; | 9 import 'package:analysis_server/src/analysis_server.dart'; |
| 8 import 'package:analysis_server/src/constants.dart'; | 10 import 'package:analysis_server/src/constants.dart'; |
| 9 import 'package:analysis_server/src/protocol.dart'; | 11 import 'package:analysis_server/src/protocol.dart'; |
| 10 import 'dart:collection'; | |
| 11 import 'package:analyzer/src/generated/engine.dart'; | 12 import 'package:analyzer/src/generated/engine.dart'; |
| 12 import 'package:analyzer/src/generated/source.dart'; | 13 import 'package:analyzer/src/generated/source.dart'; |
| 13 | 14 |
| 14 /** | 15 /** |
| 15 * Instances of the class [ExecutionDomainHandler] implement a [RequestHandler] | 16 * Instances of the class [ExecutionDomainHandler] implement a [RequestHandler] |
| 16 * that handles requests in the `execution` domain. | 17 * that handles requests in the `execution` domain. |
| 17 */ | 18 */ |
| 18 class ExecutionDomainHandler implements RequestHandler { | 19 class ExecutionDomainHandler implements RequestHandler { |
| 19 /** | 20 /** |
| 20 * The analysis server that is using this handler to process requests. | 21 * The analysis server that is using this handler to process requests. |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 } | 197 } |
| 197 } | 198 } |
| 198 } | 199 } |
| 199 server.sendNotification( | 200 server.sendNotification( |
| 200 new ExecutionLaunchDataParams( | 201 new ExecutionLaunchDataParams( |
| 201 executables, | 202 executables, |
| 202 dartToHtml, | 203 dartToHtml, |
| 203 htmlToDart).toNotification()); | 204 htmlToDart).toNotification()); |
| 204 } | 205 } |
| 205 | 206 |
| 207 @override |
| 208 void analysisStarted(AnalysisContext context) { |
| 209 } |
| 210 |
| 206 List<String> getFullNames(List<Source> sources) { | 211 List<String> getFullNames(List<Source> sources) { |
| 207 return sources.map((Source source) => source.fullName).toList(); | 212 return sources.map((Source source) => source.fullName).toList(); |
| 208 } | 213 } |
| 209 } | 214 } |
| OLD | NEW |