Skip to content

Commit 81f3791

Browse files
committed
Document call hierarchy ADT.
1 parent 43bdb22 commit 81f3791

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

rascal-lsp/src/main/rascal/library/util/LanguageServer.rsc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,17 @@ data LanguageService
288288
loc defaultPrepareRenameService(Focus _:[Tree tr, *_]) = tr.src when tr.src?;
289289
default loc defaultPrepareRenameService(Focus focus) { throw IllegalArgument(focus, "Element under cursor does not have source location"); }
290290

291+
@synopsis{A node in a call hierarchy, either a caller or a callee.}
292+
@description{
293+
A ((CallHierarchyItem)) represents a single function, method, or procedure in the call hierarchy.
294+
* `name` is the name of the callable/calling entity.
295+
* `kind` is the ((DocumentSymbolKind)) of the callable/calling entity, e.g., function, method, constructor, etc.
296+
* `src` is the location of the definition of the callable/calling entity.
297+
* `selection` is the location of the name of the definition of the callable/calling entity, or another range within `src` to select when the hierarchy item is clicked.
298+
* `tags` are additional metadata tags for the item, e.g., `deprecated`.
299+
* `detail` has additional information about the callable/calling entity, e.g., the function signature.
300+
* `data` can be used to store state that is shared between the `prepareService` and `callsService`.
301+
}
291302
data CallHierarchyItem
292303
= callHierarchyItem(
293304
str name,

0 commit comments

Comments
 (0)