| 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 import 'dart:mirrors'; | |
| 10 | 9 |
| 11 import 'package:analysis_server/plugin/protocol/protocol.dart' | 10 import 'package:analysis_server/plugin/protocol/protocol.dart' |
| 12 hide Element, ElementKind; | 11 hide Element, ElementKind; |
| 13 import 'package:analysis_server/src/analysis_server.dart'; | 12 import 'package:analysis_server/src/analysis_server.dart'; |
| 14 import 'package:analysis_server/src/channel/channel.dart'; | 13 import 'package:analysis_server/src/channel/channel.dart'; |
| 15 import 'package:analysis_server/src/operation/operation.dart'; | 14 import 'package:analysis_server/src/operation/operation.dart'; |
| 16 import 'package:analysis_server/src/operation/operation_analysis.dart'; | 15 import 'package:analysis_server/src/operation/operation_analysis.dart'; |
| 17 import 'package:analyzer/dart/element/element.dart'; | 16 import 'package:analyzer/dart/element/element.dart'; |
| 18 import 'package:analyzer/file_system/file_system.dart' as resource; | 17 import 'package:analyzer/file_system/file_system.dart' as resource; |
| 19 import 'package:analyzer/file_system/memory_file_system.dart' as resource; | 18 import 'package:analyzer/file_system/memory_file_system.dart' as resource; |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 } | 435 } |
| 437 return mismatchDescription; | 436 return mismatchDescription; |
| 438 } | 437 } |
| 439 | 438 |
| 440 @override | 439 @override |
| 441 bool matches(item, Map matchState) { | 440 bool matches(item, Map matchState) { |
| 442 Response response = item; | 441 Response response = item; |
| 443 return response != null && response.id == _id && response.error == null; | 442 return response != null && response.id == _id && response.error == null; |
| 444 } | 443 } |
| 445 } | 444 } |
| OLD | NEW |