| 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 /** | 5 /** |
| 6 * Support for interacting with an analysis server that is running in a separate | 6 * Support for interacting with an analysis server that is running in a separate |
| 7 * process. | 7 * process. |
| 8 */ | 8 */ |
| 9 import 'dart:async'; | 9 import 'dart:async'; |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| 11 import 'dart:convert' hide JsonDecoder; | 11 import 'dart:convert' hide JsonDecoder; |
| 12 import 'dart:io'; | 12 import 'dart:io'; |
| 13 import 'dart:math' as math; | 13 import 'dart:math' as math; |
| 14 | 14 |
| 15 import 'package:analysis_server/plugin/protocol/protocol.dart'; | 15 import 'package:analysis_server/protocol/protocol.dart'; |
| 16 import 'package:analysis_server/protocol/protocol_generated.dart'; |
| 16 import 'package:path/path.dart' as path; | 17 import 'package:path/path.dart' as path; |
| 17 | 18 |
| 18 import 'logger.dart'; | 19 import 'logger.dart'; |
| 19 | 20 |
| 20 /** | 21 /** |
| 21 * Return the current time expressed as milliseconds since the epoch. | 22 * Return the current time expressed as milliseconds since the epoch. |
| 22 */ | 23 */ |
| 23 int get currentTime => new DateTime.now().millisecondsSinceEpoch; | 24 int get currentTime => new DateTime.now().millisecondsSinceEpoch; |
| 24 | 25 |
| 25 /** | 26 /** |
| (...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1077 if (buffer.length > 0) { | 1078 if (buffer.length > 0) { |
| 1078 buffer.writeln(); | 1079 buffer.writeln(); |
| 1079 buffer.writeln(); | 1080 buffer.writeln(); |
| 1080 } | 1081 } |
| 1081 buffer.writeln(filePath); | 1082 buffer.writeln(filePath); |
| 1082 _writeErrors(' Expected ', expectedErrors); | 1083 _writeErrors(' Expected ', expectedErrors); |
| 1083 buffer.writeln(); | 1084 buffer.writeln(); |
| 1084 _writeErrors(' Found ', actualErrors); | 1085 _writeErrors(' Found ', actualErrors); |
| 1085 } | 1086 } |
| 1086 } | 1087 } |
| OLD | NEW |