Creates a cross reference node being aware of its containing AstNode, the corresponding CstNode, the cross reference text denoting the target AstNode being already extracted of the document text, as well as the unique cross reference identifier.
Default behavior:
the desired Reference node, whose behavior wrt. resolving the cross reference is implementation specific.
Determines a candidate AST node description for linking the given reference.
Information about the reference.
Links all cross-references within the specified document. The default implementation loads only target
elements from documents that are present in the LangiumDocuments
service. The linked references are
stored in the document's references
property.
A LangiumDocument that shall be linked.
Optional
cancelToken: CancellationTokenA token for cancelling the operation.
Unlinks all references within the specified document and removes them from the list of references
.
A LangiumDocument that shall be unlinked.
Language-specific service for resolving cross-references in the AST.