| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 import 'dart:async'; | 5 import 'dart:async'; |
| 6 import 'dart:convert'; | 6 import 'dart:convert'; |
| 7 import 'dart:io'; | 7 import 'dart:io'; |
| 8 | 8 |
| 9 import 'package:analysis_server/protocol/protocol.dart'; | 9 import 'package:analysis_server/protocol/protocol.dart'; |
| 10 import 'package:analysis_server/protocol/protocol_generated.dart'; | 10 import 'package:analysis_server/protocol/protocol_generated.dart'; |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 }); | 262 }); |
| 263 return result; | 263 return result; |
| 264 } | 264 } |
| 265 return json; | 265 return json; |
| 266 } | 266 } |
| 267 } | 267 } |
| 268 | 268 |
| 269 /** | 269 /** |
| 270 * [InputConverter] converts an input stream | 270 * [InputConverter] converts an input stream |
| 271 * into a series of operations to be sent to the analysis server. | 271 * into a series of operations to be sent to the analysis server. |
| 272 * The input stream can be either an instrumenation or log file. | 272 * The input stream can be either an instrumentation or log file. |
| 273 */ | 273 */ |
| 274 class InputConverter extends Converter<String, Operation> { | 274 class InputConverter extends Converter<String, Operation> { |
| 275 final Logger logger = new Logger('InputConverter'); | 275 final Logger logger = new Logger('InputConverter'); |
| 276 | 276 |
| 277 /** | 277 /** |
| 278 * A mapping of source path prefixes | 278 * A mapping of source path prefixes |
| 279 * from location where instrumentation or log file was generated | 279 * from location where instrumentation or log file was generated |
| 280 * to the target location of the source using during performance measurement. | 280 * to the target location of the source using during performance measurement. |
| 281 */ | 281 */ |
| 282 final PathMap srcPathMap; | 282 final PathMap srcPathMap; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 if (op != null) { | 390 if (op != null) { |
| 391 outSink.add(op); | 391 outSink.add(op); |
| 392 } | 392 } |
| 393 } | 393 } |
| 394 | 394 |
| 395 @override | 395 @override |
| 396 void close() { | 396 void close() { |
| 397 outSink.close(); | 397 outSink.close(); |
| 398 } | 398 } |
| 399 } | 399 } |
| OLD | NEW |