Interface ISemanticHighlightingCalculator

    • Method Detail

      • provideHighlightingFor

        void provideHighlightingFor​(org.eclipse.xtext.resource.XtextResource resource,
                                    IHighlightedPositionAcceptor acceptor,
                                    org.eclipse.xtext.util.CancelIndicator cancelIndicator)
        Parameters:
        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)