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/protocol/protocol.dart'; | 15 import 'package:analysis_server/protocol/protocol.dart'; |
16 import 'package:analysis_server/protocol/protocol_generated.dart'; | 16 import 'package:analysis_server/protocol/protocol_generated.dart'; |
| 17 import 'package:analyzer_plugin/protocol/protocol_common.dart'; |
17 import 'package:path/path.dart' as path; | 18 import 'package:path/path.dart' as path; |
18 | 19 |
19 import 'logger.dart'; | 20 import 'logger.dart'; |
20 | 21 |
21 /** | 22 /** |
22 * Return the current time expressed as milliseconds since the epoch. | 23 * Return the current time expressed as milliseconds since the epoch. |
23 */ | 24 */ |
24 int get currentTime => new DateTime.now().millisecondsSinceEpoch; | 25 int get currentTime => new DateTime.now().millisecondsSinceEpoch; |
25 | 26 |
26 /** | 27 /** |
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 if (buffer.length > 0) { | 1075 if (buffer.length > 0) { |
1075 buffer.writeln(); | 1076 buffer.writeln(); |
1076 buffer.writeln(); | 1077 buffer.writeln(); |
1077 } | 1078 } |
1078 buffer.writeln(filePath); | 1079 buffer.writeln(filePath); |
1079 _writeErrors(' Expected ', expectedErrors); | 1080 _writeErrors(' Expected ', expectedErrors); |
1080 buffer.writeln(); | 1081 buffer.writeln(); |
1081 _writeErrors(' Found ', actualErrors); | 1082 _writeErrors(' Found ', actualErrors); |
1082 } | 1083 } |
1083 } | 1084 } |
OLD | NEW |