Class LoopStatementDocumentHighlightSupplier
java.lang.Object
com.github._1c_syntax.bsl.languageserver.documenthighlight.AbstractASTDocumentHighlightSupplier
com.github._1c_syntax.bsl.languageserver.documenthighlight.LoopStatementDocumentHighlightSupplier
- All Implemented Interfaces:
DocumentHighlightSupplier
@Component
public class LoopStatementDocumentHighlightSupplier
extends AbstractASTDocumentHighlightSupplier
Поставщик подсветки для циклов (For/While/Do/EndDo).
При клике на любое из ключевых слов цикла подсвечиваются все связанные ключевые слова того же цикла.
-
Nested Class Summary
Nested classes/interfaces inherited from interface DocumentHighlightSupplier
DocumentHighlightSupplier.TerminalNodeInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDocumentHighlight(DocumentHighlightParams params, DocumentContext documentContext, Optional<DocumentHighlightSupplier.TerminalNodeInfo> terminalNodeInfo) Получить список подсветок для элементов, связанных с позицией курсора.Methods inherited from class AbstractASTDocumentHighlightSupplier
addTokenHighlight
-
Constructor Details
-
LoopStatementDocumentHighlightSupplier
public LoopStatementDocumentHighlightSupplier()
-
-
Method Details
-
getDocumentHighlight
public List<DocumentHighlight> getDocumentHighlight(DocumentHighlightParams params, DocumentContext documentContext, Optional<DocumentHighlightSupplier.TerminalNodeInfo> terminalNodeInfo) Description copied from interface:DocumentHighlightSupplierПолучить список подсветок для элементов, связанных с позицией курсора.- Parameters:
params- Параметры запроса document highlightdocumentContext- Контекст документаterminalNodeInfo- Информация о терминальном узле на позиции курсора- Returns:
- Список подсветок связанных элементов, или пустой список если нет совпадений
-