Interface References

Language-specific service for finding references and declaration of a given CstNode.

interface References {
    findDeclaration(sourceCstNode: CstNode): undefined | AstNode;
    findDeclarationNode(sourceCstNode: CstNode): undefined | CstNode;
    findReferences(targetNode: AstNode, options: FindReferencesOptions): Stream<ReferenceDescription>;
}

Implemented by

Methods

  • If the CstNode is a reference node the target CstNode will be returned. If the CstNode is a significant node of the CstNode this CstNode will be returned.

    Parameters

    • sourceCstNode: CstNode

      CstNode that points to a AstNode

    Returns undefined | AstNode

  • If the CstNode is a reference node the target CstNode will be returned. If the CstNode is a significant node of the CstNode this CstNode will be returned.

    Parameters

    • sourceCstNode: CstNode

      CstNode that points to a AstNode

    Returns undefined | CstNode