Class AbstractASTDocumentHighlightSupplier
java.lang.Object
com.github._1c_syntax.bsl.languageserver.documenthighlight.AbstractASTDocumentHighlightSupplier
- All Implemented Interfaces:
DocumentHighlightSupplier
- Direct Known Subclasses:
IfStatementDocumentHighlightSupplier, LoopStatementDocumentHighlightSupplier, SubroutineDocumentHighlightSupplier, TryStatementDocumentHighlightSupplier
public abstract class AbstractASTDocumentHighlightSupplier
extends Object
implements DocumentHighlightSupplier
Базовый класс для поставщиков подсветки на основе AST.
Предоставляет общую функциональность для подсветки токенов, полученных через геттеры ANTLR-контекста.
-
Nested Class Summary
Nested classes/interfaces inherited from interface DocumentHighlightSupplier
DocumentHighlightSupplier.TerminalNodeInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddTokenHighlight(List<DocumentHighlight> highlights, @Nullable TerminalNode terminalNode) Добавляет подсветку для токена, полученного из TerminalNode.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DocumentHighlightSupplier
getDocumentHighlight
-
Constructor Details
-
AbstractASTDocumentHighlightSupplier
public AbstractASTDocumentHighlightSupplier()
-
-
Method Details
-
addTokenHighlight
protected void addTokenHighlight(List<DocumentHighlight> highlights, @Nullable TerminalNode terminalNode) Добавляет подсветку для токена, полученного из TerminalNode.Используется для прямого доступа к токенам через геттеры ANTLR-контекста.
- Parameters:
highlights- Список подсветок, в который будет добавлена подсветка токенаterminalNode- Терминальный узел с токеном (может быть null)
-