Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: pkg/analyzer_plugin/lib/src/utilities/navigation/navigation.dart

Issue 2919293002: Make navigation support consistent with completion support (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer_plugin/lib/src/utilities/navigation/navigation.dart
diff --git a/pkg/analyzer_plugin/lib/src/utilities/navigation.dart b/pkg/analyzer_plugin/lib/src/utilities/navigation/navigation.dart
similarity index 80%
rename from pkg/analyzer_plugin/lib/src/utilities/navigation.dart
rename to pkg/analyzer_plugin/lib/src/utilities/navigation/navigation.dart
index 08560cba8995fee7b61604c801191387ec845e6b..2ea06db019e9b83432daf98b20d344282d85b821 100644
--- a/pkg/analyzer_plugin/lib/src/utilities/navigation.dart
+++ b/pkg/analyzer_plugin/lib/src/utilities/navigation/navigation.dart
@@ -2,9 +2,11 @@
// 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.
+import 'package:analyzer/dart/analysis/results.dart';
+import 'package:analyzer/file_system/file_system.dart';
import 'package:analyzer/src/generated/source.dart' show SourceRange;
import 'package:analyzer_plugin/protocol/protocol_common.dart';
-import 'package:analyzer_plugin/utilities/navigation.dart';
+import 'package:analyzer_plugin/utilities/navigation/navigation.dart';
import 'package:analyzer_plugin/utilities/pair.dart';
/**
@@ -81,3 +83,26 @@ class NavigationCollectorImpl implements NavigationCollector {
return index;
}
}
+
+/**
+ * A concrete implementation of [NavigationRequest].
+ */
+class NavigationRequestImpl implements NavigationRequest {
+ @override
+ final ResourceProvider resourceProvider;
+
+ @override
+ final int length;
+
+ @override
+ final int offset;
+
+ @override
+ final ResolveResult result;
+
+ /**
+ * Initialize a newly create request with the given data.
+ */
+ NavigationRequestImpl(
+ this.resourceProvider, this.offset, this.length, this.result);
+}
« no previous file with comments | « pkg/analyzer_plugin/lib/src/utilities/navigation.dart ('k') | pkg/analyzer_plugin/lib/utilities/navigation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698