public interface ISemanticHighlightingCalculator
ISemanticHighlightingCalculator
to compute
the mapping from ranges in the input to the appropriate highlighting style.Modifier and Type | Method and Description |
---|---|
void |
provideHighlightingFor(XtextResource resource,
IHighlightedPositionAcceptor acceptor,
CancelIndicator cancelIndicator) |
void provideHighlightingFor(XtextResource resource, IHighlightedPositionAcceptor acceptor, CancelIndicator cancelIndicator)
resource
- the resource that will be highlighted. May be null
in some rare cases.acceptor
- used to announce the mapping from text-range to the style's id. The acceptor will never be null
.cancelIndicator
- used to determine whether we should stop searching for highlighting positions
(use OperationCanceledManager
to check)