Class CyclomaticComplexityInlayHintSupplier
java.lang.Object
com.github._1c_syntax.bsl.languageserver.inlayhints.AbstractComplexityInlayHintSupplier
com.github._1c_syntax.bsl.languageserver.inlayhints.CyclomaticComplexityInlayHintSupplier
- All Implemented Interfaces:
InlayHintSupplier
@Component
public class CyclomaticComplexityInlayHintSupplier
extends AbstractComplexityInlayHintSupplier
Поставщик подсказок о цикломатической сложности методов.
-
Field Summary
Fields inherited from interface com.github._1c_syntax.bsl.languageserver.inlayhints.InlayHintSupplier
INLAY_HINT_SUPPLIER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Map<MethodSymbol,
List<ComplexitySecondaryLocation>> getComplexityLocations
(DocumentContext documentContext) Получение мест увеличения сложности метода.Methods inherited from class com.github._1c_syntax.bsl.languageserver.inlayhints.AbstractComplexityInlayHintSupplier
getInlayHints, toggleHints
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.github._1c_syntax.bsl.languageserver.inlayhints.InlayHintSupplier
getId
-
Constructor Details
-
CyclomaticComplexityInlayHintSupplier
public CyclomaticComplexityInlayHintSupplier()
-
-
Method Details
-
getComplexityLocations
protected Map<MethodSymbol,List<ComplexitySecondaryLocation>> getComplexityLocations(DocumentContext documentContext) Получение мест увеличения сложности метода. Нужно переопределить в наследниках.- Specified by:
getComplexityLocations
in classAbstractComplexityInlayHintSupplier
- Parameters:
documentContext
- Контекст документа.- Returns:
- Места увеличения сложности метода.
-