public abstract class AbstractReferenceParticipant extends Object implements IReferenceParticipant
Constructor and Description |
---|
AbstractReferenceParticipant() |
Modifier and Type | Method and Description |
---|---|
void |
findReference(DOMDocument document,
org.eclipse.lsp4j.Position position,
org.eclipse.lsp4j.ReferenceContext context,
List<org.eclipse.lsp4j.Location> locations,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
protected abstract void |
findReferences(DOMNode node,
org.eclipse.lsp4j.Position position,
int offset,
org.eclipse.lsp4j.ReferenceContext context,
List<org.eclipse.lsp4j.Location> locations,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
Find the references
|
protected abstract boolean |
match(DOMDocument document)
Returns true if the reference support is applicable for the given document
and false otherwise.
|
public void findReference(DOMDocument document, org.eclipse.lsp4j.Position position, org.eclipse.lsp4j.ReferenceContext context, List<org.eclipse.lsp4j.Location> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
findReference
in interface IReferenceParticipant
protected abstract boolean match(DOMDocument document)
document
- protected abstract void findReferences(DOMNode node, org.eclipse.lsp4j.Position position, int offset, org.eclipse.lsp4j.ReferenceContext context, List<org.eclipse.lsp4j.Location> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
node
- position
- offset
- locations
- cancelChecker
- Copyright © 2021. All rights reserved.