| Index: pkg/analysis_server/test/services/completion/optype_test.dart
|
| diff --git a/pkg/analysis_server/test/services/completion/optype_test.dart b/pkg/analysis_server/test/services/completion/optype_test.dart
|
| index 9f2ce434c19d8ee7c3957d0e5384c1c4db57a4ce..10ae92d9197a3cf8a24951811455488836c242c4 100644
|
| --- a/pkg/analysis_server/test/services/completion/optype_test.dart
|
| +++ b/pkg/analysis_server/test/services/completion/optype_test.dart
|
| @@ -9,13 +9,12 @@ import 'package:analysis_server/src/services/completion/optype.dart';
|
| import 'package:analyzer/src/generated/ast.dart';
|
| import 'package:analyzer/src/generated/engine.dart';
|
| import 'package:analyzer/src/generated/source.dart';
|
| +import 'package:plugin/manager.dart';
|
| import 'package:test_reflective_loader/test_reflective_loader.dart';
|
| import 'package:unittest/unittest.dart';
|
|
|
| import '../../abstract_context.dart';
|
| import '../../utils.dart';
|
| -import 'package:plugin/plugin.dart';
|
| -import 'package:plugin/manager.dart';
|
|
|
| main() {
|
| initializeTestEnvironment();
|
| @@ -26,16 +25,6 @@ main() {
|
| class OpTypeTest {
|
| OpType visitor;
|
|
|
| - void processRequiredPlugins() {
|
| - ExtensionManager manager = new ExtensionManager();
|
| - manager.processPlugins(AnalysisEngine.instance.requiredPlugins);
|
| - }
|
| -
|
| - @override
|
| - void setUp() {
|
| - processRequiredPlugins();
|
| - }
|
| -
|
| void addTestSource(String content, {bool resolved: false}) {
|
| int offset = content.indexOf('^');
|
| expect(offset, isNot(equals(-1)), reason: 'missing ^');
|
| @@ -79,6 +68,15 @@ class OpTypeTest {
|
| expect(visitor.isPrefixed, prefixed, reason: 'prefixed');
|
| }
|
|
|
| + void processRequiredPlugins() {
|
| + ExtensionManager manager = new ExtensionManager();
|
| + manager.processPlugins(AnalysisEngine.instance.requiredPlugins);
|
| + }
|
| +
|
| + void setUp() {
|
| + processRequiredPlugins();
|
| + }
|
| +
|
| test_Annotation() {
|
| // SimpleIdentifier Annotation MethodDeclaration ClassDeclaration
|
| addTestSource('class C { @A^ }');
|
|
|