Protected
Readonly
astProtected
Readonly
langiumProtected
Readonly
reflectionProtected
Readonly
scopeCreates 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.
Protected
createOptional
targetDescription: AstNodeDescriptionProtected
doDetermines a candidate AST node description for linking the given reference.
Information about the reference.
Protected
getOptional
descr?: AstNodeDescriptionOptional
error?: LinkingErrorOptional
node?: AstNodeLinks 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.
A token for cancelling the operation.
Protected
loadUnlinks 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.