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<AbstractMethodComplexityCodeLensSupplier.ComplexityCodeLensData>
@Component
public class CognitiveComplexityCodeLensSupplier
extends AbstractMethodComplexityCodeLensSupplier
Сапплаер линз, показывающий когнитивную сложность методов.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.github._1c_syntax.bsl.languageserver.codelenses.AbstractMethodComplexityCodeLensSupplier
AbstractMethodComplexityCodeLensSupplier.ComplexityCodeLensData
-
Field Summary
Fields inherited from class com.github._1c_syntax.bsl.languageserver.codelenses.AbstractMethodComplexityCodeLensSupplier
configuration
Fields inherited from interface com.github._1c_syntax.bsl.languageserver.codelenses.CodeLensSupplier
CODE_LENS_SUPPLIER_SUFFIX
-
Constructor Summary
ConstructorDescriptionCognitiveComplexityCodeLensSupplier
(LanguageServerConfiguration configuration, ToggleCognitiveComplexityInlayHintsCommandSupplier commandSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<MethodSymbol,
Integer> getMethodsComplexity
(DocumentContext documentContext) Получить данные о сложности в разрезе символов.Methods inherited from class com.github._1c_syntax.bsl.languageserver.codelenses.AbstractMethodComplexityCodeLensSupplier
getCodeLensDataClass, getCodeLenses, resolve
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.codelenses.CodeLensSupplier
getId, isApplicable
-
Constructor Details
-
CognitiveComplexityCodeLensSupplier
public CognitiveComplexityCodeLensSupplier(LanguageServerConfiguration configuration, ToggleCognitiveComplexityInlayHintsCommandSupplier commandSupplier)
-
-
Method Details
-
getMethodsComplexity
Description copied from class:AbstractMethodComplexityCodeLensSupplier
Получить данные о сложности в разрезе символов.- Specified by:
getMethodsComplexity
in classAbstractMethodComplexityCodeLensSupplier
- Parameters:
documentContext
- Документ, для которого нужно рассчитать информацию о сложностях методов.- Returns:
- Данные о сложности методов.
-