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

Unified Diff: pkg/analysis_server/lib/analysis/index_core.dart

Issue 1389713002: More documentation clean-up for server APIs (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/analysis/navigation_core.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/analysis/index_core.dart
diff --git a/pkg/analysis_server/lib/analysis/index_core.dart b/pkg/analysis_server/lib/analysis/index_core.dart
index 2cc4b01020fbb9c37aa766f0a11195b75ff4d664..58e996ed6590bf10fd56e5c9fcc3c13b614fe8c2 100644
--- a/pkg/analysis_server/lib/analysis/index_core.dart
+++ b/pkg/analysis_server/lib/analysis/index_core.dart
@@ -12,10 +12,14 @@ import 'package:analyzer/src/generated/engine.dart';
import 'package:analyzer/src/generated/source.dart';
/**
- * Return the integer value that corresponds to the given [str].
- * The value of [str] may be `null`.
+ * Return the integer value that corresponds to the given [string]. The value of
+ * [string] may be `null`.
+ *
+ * Clients are not expected to implement this signature. A function of this type
+ * is provided by the framework to clients in order to implement the method
+ * [IndexableObjectKind.encodeHash].
*/
-typedef int StringToInt(String str);
+typedef int StringToInt(String string);
/**
* An object that can have a [Relationship] with various [Location]s in a code
@@ -124,20 +128,6 @@ abstract class IndexableObjectKind {
}
}
-// A sketch of what the driver routine might look like:
-//
-//void buildIndexForSource(AnalysisContext context, Source source) {
-// IndexStoreImpl store;
-// store.aboutToIndex(context, source);
-// try {
-// for (IndexContributor contributor in contributors) {
-// contributor.contributeTo(store, context, source);
-// }
-// } finally {
-// store.doneIndexing();
-// }
-//}
-
/**
* An object used to add relationships to the index.
*
« no previous file with comments | « no previous file | pkg/analysis_server/lib/analysis/navigation_core.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698