| Index: pkg/analysis_server/lib/plugin/analysis/navigation/navigation_core.dart
|
| diff --git a/pkg/analysis_server/lib/analysis/navigation_core.dart b/pkg/analysis_server/lib/plugin/analysis/navigation/navigation_core.dart
|
| similarity index 95%
|
| rename from pkg/analysis_server/lib/analysis/navigation_core.dart
|
| rename to pkg/analysis_server/lib/plugin/analysis/navigation/navigation_core.dart
|
| index 2e2623d90790072a7782942089f5efb1ebe30d27..ccfbafb1c3675139cd887ebaae3ce443321028a0 100644
|
| --- a/pkg/analysis_server/lib/analysis/navigation_core.dart
|
| +++ b/pkg/analysis_server/lib/plugin/analysis/navigation/navigation_core.dart
|
| @@ -2,7 +2,7 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -library analysis_server.analysis.navigation_core;
|
| +library analysis_server.plugin.analysis.navigation.navigation_core;
|
|
|
| import 'package:analysis_server/src/protocol.dart'
|
| show ElementKind, Location, NavigationRegion, NavigationTarget;
|
| @@ -10,6 +10,20 @@ import 'package:analyzer/src/generated/engine.dart' show AnalysisContext;
|
| import 'package:analyzer/src/generated/source.dart' show Source;
|
|
|
| /**
|
| + * An object that [NavigationContributor]s use to record navigation regions.
|
| + *
|
| + * Clients are not expected to subtype this class.
|
| + */
|
| +abstract class NavigationCollector {
|
| + /**
|
| + * Record a new navigation region with the given [offset] and [length] that
|
| + * should navigate to the given [targetLocation].
|
| + */
|
| + void addRegion(
|
| + int offset, int length, ElementKind targetKind, Location targetLocation);
|
| +}
|
| +
|
| +/**
|
| * An object used to produce navigation regions.
|
| *
|
| * Clients are expected to subtype this class when implementing plugins.
|
| @@ -23,17 +37,3 @@ abstract class NavigationContributor {
|
| void computeNavigation(NavigationCollector collector, AnalysisContext context,
|
| Source source, int offset, int length);
|
| }
|
| -
|
| -/**
|
| - * An object that [NavigationContributor]s use to record navigation regions.
|
| - *
|
| - * Clients are not expected to subtype this class.
|
| - */
|
| -abstract class NavigationCollector {
|
| - /**
|
| - * Record a new navigation region with the given [offset] and [length] that
|
| - * should navigate to the given [targetLocation].
|
| - */
|
| - void addRegion(
|
| - int offset, int length, ElementKind targetKind, Location targetLocation);
|
| -}
|
|
|