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