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 library test.src.task.dart_test; | 5 library test.src.task.dart_test; |
6 | 6 |
7 import 'package:analyzer/file_system/file_system.dart'; | 7 import 'package:analyzer/file_system/file_system.dart'; |
8 import 'package:analyzer/file_system/memory_file_system.dart'; | 8 import 'package:analyzer/file_system/memory_file_system.dart'; |
9 import 'package:analyzer/plugin/plugin.dart'; | |
10 import 'package:analyzer/plugin/task.dart'; | |
11 import 'package:analyzer/src/context/cache.dart'; | 9 import 'package:analyzer/src/context/cache.dart'; |
12 import 'package:analyzer/src/generated/ast.dart'; | 10 import 'package:analyzer/src/generated/ast.dart'; |
13 import 'package:analyzer/src/generated/element.dart'; | 11 import 'package:analyzer/src/generated/element.dart'; |
14 import 'package:analyzer/src/generated/engine.dart' | 12 import 'package:analyzer/src/generated/engine.dart' |
15 hide AnalysisTask, GetContentTask, ParseDartTask, ScanDartTask; | 13 hide AnalysisTask, GetContentTask, ParseDartTask, ScanDartTask; |
16 import 'package:analyzer/src/generated/error.dart'; | 14 import 'package:analyzer/src/generated/error.dart'; |
17 import 'package:analyzer/src/generated/resolver.dart'; | 15 import 'package:analyzer/src/generated/resolver.dart'; |
18 import 'package:analyzer/src/generated/sdk.dart'; | 16 import 'package:analyzer/src/generated/sdk.dart'; |
19 import 'package:analyzer/src/generated/source.dart'; | 17 import 'package:analyzer/src/generated/source.dart'; |
20 import 'package:analyzer/src/plugin/engine_plugin.dart'; | 18 import 'package:analyzer/src/plugin/engine_plugin.dart'; |
21 import 'package:analyzer/src/plugin/plugin_impl.dart'; | |
22 import 'package:analyzer/src/task/dart.dart'; | 19 import 'package:analyzer/src/task/dart.dart'; |
23 import 'package:analyzer/src/task/driver.dart'; | 20 import 'package:analyzer/src/task/driver.dart'; |
24 import 'package:analyzer/src/task/manager.dart'; | 21 import 'package:analyzer/src/task/manager.dart'; |
25 import 'package:analyzer/task/dart.dart'; | 22 import 'package:analyzer/task/dart.dart'; |
26 import 'package:analyzer/task/general.dart'; | 23 import 'package:analyzer/task/general.dart'; |
27 import 'package:analyzer/task/model.dart'; | 24 import 'package:analyzer/task/model.dart'; |
| 25 import 'package:plugin/manager.dart'; |
28 import 'package:typed_mock/typed_mock.dart'; | 26 import 'package:typed_mock/typed_mock.dart'; |
29 import 'package:unittest/unittest.dart'; | 27 import 'package:unittest/unittest.dart'; |
30 | 28 |
31 import '../../generated/test_support.dart'; | 29 import '../../generated/test_support.dart'; |
32 import '../../reflective_tests.dart'; | 30 import '../../reflective_tests.dart'; |
33 import '../mock_sdk.dart'; | 31 import '../mock_sdk.dart'; |
34 | 32 |
35 main() { | 33 main() { |
36 groupSep = ' | '; | 34 groupSep = ' | '; |
37 runReflectiveTests(BuildClassConstructorsTaskTest); | 35 runReflectiveTests(BuildClassConstructorsTaskTest); |
(...skipping 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1915 return entryMap.putIfAbsent(target, () => new CacheEntry()); | 1913 return entryMap.putIfAbsent(target, () => new CacheEntry()); |
1916 } | 1914 } |
1917 | 1915 |
1918 TimestampedData<String> getContents(Source source) => source.contents; | 1916 TimestampedData<String> getContents(Source source) => source.contents; |
1919 | 1917 |
1920 noSuchMethod(Invocation invocation) { | 1918 noSuchMethod(Invocation invocation) { |
1921 print('noSuchMethod: ${invocation.memberName}'); | 1919 print('noSuchMethod: ${invocation.memberName}'); |
1922 return super.noSuchMethod(invocation); | 1920 return super.noSuchMethod(invocation); |
1923 } | 1921 } |
1924 } | 1922 } |
OLD | NEW |