Class CognitiveComplexityCodeLensSupplier
java.lang.Object
com.github._1c_syntax.bsl.languageserver.codelenses.AbstractMethodComplexityCodeLensSupplier
com.github._1c_syntax.bsl.languageserver.codelenses.CognitiveComplexityCodeLensSupplier
- All Implemented Interfaces:
CodeLensSupplier
@Component
public class CognitiveComplexityCodeLensSupplier
extends AbstractMethodComplexityCodeLensSupplier
Сапплаер линз, показывающий когнитивную сложность методов.
-
Field Summary
Fields inherited from class com.github._1c_syntax.bsl.languageserver.codelenses.AbstractMethodComplexityCodeLensSupplier
configuration
-
Constructor Summary
ConstructorsConstructorDescriptionCognitiveComplexityCodeLensSupplier(LanguageServerConfiguration configuration)
-
Method Summary
Modifier and TypeMethodDescriptionprotected Map<MethodSymbol,Integer>
getMethodsComplexity(DocumentContext documentContext)
protected boolean
Methods inherited from class com.github._1c_syntax.bsl.languageserver.codelenses.AbstractMethodComplexityCodeLensSupplier
getCodeLenses
-
Constructor Details
-
CognitiveComplexityCodeLensSupplier
-
-
Method Details
-
supplierIsEnabled
protected boolean supplierIsEnabled()- Specified by:
supplierIsEnabled
in classAbstractMethodComplexityCodeLensSupplier
- Returns:
- Нужно ли применять конкретный сапплаер.
-
getMethodsComplexity
- Specified by:
getMethodsComplexity
in classAbstractMethodComplexityCodeLensSupplier
- Parameters:
documentContext
- Документ, для которого нужно рассчитать информацию о сложностях методов.- Returns:
- Данные о сложности методов.
-