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 mocks; | 5 library mocks; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 @MirrorsUsed(targets: 'mocks', override: '*') | 9 @MirrorsUsed(targets: 'mocks', override: '*') |
10 import 'dart:mirrors'; | 10 import 'dart:mirrors'; |
11 | 11 |
12 import 'package:analysis_server/plugin/protocol/protocol.dart' | 12 import 'package:analysis_server/plugin/protocol/protocol.dart' |
13 hide Element, ElementKind; | 13 hide Element, ElementKind; |
14 import 'package:analysis_server/src/analysis_server.dart'; | 14 import 'package:analysis_server/src/analysis_server.dart'; |
15 import 'package:analysis_server/src/channel/channel.dart'; | 15 import 'package:analysis_server/src/channel/channel.dart'; |
16 import 'package:analysis_server/src/operation/operation.dart'; | 16 import 'package:analysis_server/src/operation/operation.dart'; |
17 import 'package:analysis_server/src/operation/operation_analysis.dart'; | 17 import 'package:analysis_server/src/operation/operation_analysis.dart'; |
| 18 import 'package:analyzer/dart/element/element.dart'; |
18 import 'package:analyzer/file_system/file_system.dart' as resource; | 19 import 'package:analyzer/file_system/file_system.dart' as resource; |
19 import 'package:analyzer/file_system/memory_file_system.dart' as resource; | 20 import 'package:analyzer/file_system/memory_file_system.dart' as resource; |
20 import 'package:analyzer/source/package_map_provider.dart'; | 21 import 'package:analyzer/source/package_map_provider.dart'; |
21 import 'package:analyzer/source/pub_package_map_provider.dart'; | 22 import 'package:analyzer/source/pub_package_map_provider.dart'; |
22 import 'package:analyzer/src/generated/element.dart'; | |
23 import 'package:analyzer/src/generated/engine.dart'; | 23 import 'package:analyzer/src/generated/engine.dart'; |
24 import 'package:analyzer/src/generated/source.dart'; | 24 import 'package:analyzer/src/generated/source.dart'; |
25 import 'package:typed_mock/typed_mock.dart'; | 25 import 'package:typed_mock/typed_mock.dart'; |
26 import 'package:unittest/unittest.dart'; | 26 import 'package:unittest/unittest.dart'; |
27 | 27 |
28 /** | 28 /** |
29 * Answer the absolute path the the SDK relative to the currently running | 29 * Answer the absolute path the the SDK relative to the currently running |
30 * script or throw an exception if it cannot be found. | 30 * script or throw an exception if it cannot be found. |
31 */ | 31 */ |
32 String get sdkPath { | 32 String get sdkPath { |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 } | 437 } |
438 return mismatchDescription; | 438 return mismatchDescription; |
439 } | 439 } |
440 | 440 |
441 @override | 441 @override |
442 bool matches(item, Map matchState) { | 442 bool matches(item, Map matchState) { |
443 Response response = item; | 443 Response response = item; |
444 return response != null && response.id == _id && response.error == null; | 444 return response != null && response.id == _id && response.error == null; |
445 } | 445 } |
446 } | 446 } |
OLD | NEW |