Class CognitiveComplexityComputer
java.lang.Object
com.github._1c_syntax.bsl.parser.BSLParserBaseListener
com.github._1c_syntax.bsl.languageserver.context.computer.CognitiveComplexityComputer
- All Implemented Interfaces:
Computer<ComplexityData>
,BSLParserListener
,ParseTreeListener
@Component
@Scope("prototype")
public class CognitiveComplexityComputer
extends BSLParserBaseListener
implements Computer<ComplexityData>
-
Constructor Summary
-
Method Summary
Methods inherited from class com.github._1c_syntax.bsl.parser.BSLParserBaseListener
enterAcceptor, enterAccessCall, enterAccessIndex, enterAccessProperty, enterAddHandlerStatement, enterAnnotation, enterAnnotationName, enterAnnotationParam, enterAnnotationParamName, enterAnnotationParams, enterAssignment, enterBoolOperation, enterBreakStatement, enterCallParam, enterCallParamList, enterCallStatement, enterCodeBlock, enterCompareOperation, enterCompilerDirective, enterCompilerDirectiveSymbol, enterComplexIdentifier, enterCompoundStatement, enterConstValue, enterContinueStatement, enterDefaultValue, enterDoCall, enterEvent, enterEveryRule, enterExecuteStatement, enterFile, enterFuncDeclaration, enterFunction, enterHandler, enterIfStatement, enterLabel, enterLabelName, enterLValue, enterMember, enterMethodCall, enterMethodName, enterModifier, enterModuleAnnotations, enterModuleVar, enterModuleVarDeclaration, enterModuleVars, enterModuleVarsList, enterMultilineString, enterNewExpression, enterNumeric, enterOperation, enterParam, enterParamList, enterPreproc_boolOperation, enterPreproc_else, enterPreproc_elsif, enterPreproc_endif, enterPreproc_expression, enterPreproc_if, enterPreproc_logicalExpression, enterPreproc_logicalOperand, enterPreproc_native, enterPreproc_symbol, enterPreproc_unknownSymbol, enterPreprocessor, enterProcDeclaration, enterProcedure, enterRaiseStatement, enterRegionEnd, enterRegionName, enterRegionStart, enterRemoveHandlerStatement, enterReturnStatement, enterShebang, enterStatement, enterString, enterSubCodeBlock, enterSubName, enterSubs, enterSubVar, enterSubVarDeclaration, enterSubVars, enterSubVarsList, enterTryCodeBlock, enterTryStatement, enterTypeName, enterUnaryModifier, enterUse, enterUsedLib, enterVar_name, enterWaitExpression, enterWaitStatement, exitAcceptor, exitAccessCall, exitAccessIndex, exitAccessProperty, exitAddHandlerStatement, exitAnnotation, exitAnnotationName, exitAnnotationParam, exitAnnotationParamName, exitAnnotationParams, exitAssignment, exitBoolOperation, exitBreakStatement, exitCallParam, exitCallParamList, exitCallStatement, exitCodeBlock, exitCompareOperation, exitCompilerDirective, exitCompilerDirectiveSymbol, exitComplexIdentifier, exitCompoundStatement, exitConstValue, exitContinueStatement, exitDefaultValue, exitDoCall, exitEvent, exitEveryRule, exitExecuteStatement, exitExpression, exitFile, exitFuncDeclaration, exitFunction, exitGlobalMethodCall, exitGotoStatement, exitHandler, exitIfStatement, exitLabel, exitLabelName, exitLValue, exitMember, exitMethodCall, exitMethodName, exitModifier, exitModuleAnnotations, exitModuleVar, exitModuleVarDeclaration, exitModuleVars, exitModuleVarsList, exitMultilineString, exitNewExpression, exitNumeric, exitOperation, exitParam, exitParamList, exitPreproc_boolOperation, exitPreproc_else, exitPreproc_elsif, exitPreproc_endif, exitPreproc_expression, exitPreproc_if, exitPreproc_logicalExpression, exitPreproc_logicalOperand, exitPreproc_native, exitPreproc_symbol, exitPreproc_unknownSymbol, exitPreprocessor, exitProcDeclaration, exitProcedure, exitRaiseStatement, exitRegionEnd, exitRegionName, exitRegionStart, exitRemoveHandlerStatement, exitReturnStatement, exitShebang, exitStatement, exitString, exitSubCodeBlock, exitSubName, exitSubs, exitSubVar, exitSubVarDeclaration, exitSubVars, exitSubVarsList, exitTryCodeBlock, exitTryStatement, exitTypeName, exitUnaryModifier, exitUse, exitUsedLib, exitVar_name, exitWaitExpression, exitWaitStatement, visitErrorNode, visitTerminal
-
Constructor Details
-
CognitiveComplexityComputer
@ConstructorProperties("documentContext") public CognitiveComplexityComputer(DocumentContext documentContext)
-
-
Method Details
-
init
-
compute
- Specified by:
compute
in interfaceComputer<ComplexityData>
-
enterSub
- Specified by:
enterSub
in interfaceBSLParserListener
- Overrides:
enterSub
in classBSLParserBaseListener
-
exitSub
- Specified by:
exitSub
in interfaceBSLParserListener
- Overrides:
exitSub
in classBSLParserBaseListener
-
enterFileCodeBlockBeforeSub
- Specified by:
enterFileCodeBlockBeforeSub
in interfaceBSLParserListener
- Overrides:
enterFileCodeBlockBeforeSub
in classBSLParserBaseListener
-
exitFileCodeBlockBeforeSub
- Specified by:
exitFileCodeBlockBeforeSub
in interfaceBSLParserListener
- Overrides:
exitFileCodeBlockBeforeSub
in classBSLParserBaseListener
-
enterFileCodeBlock
- Specified by:
enterFileCodeBlock
in interfaceBSLParserListener
- Overrides:
enterFileCodeBlock
in classBSLParserBaseListener
-
exitFileCodeBlock
- Specified by:
exitFileCodeBlock
in interfaceBSLParserListener
- Overrides:
exitFileCodeBlock
in classBSLParserBaseListener
-
enterIfBranch
- Specified by:
enterIfBranch
in interfaceBSLParserListener
- Overrides:
enterIfBranch
in classBSLParserBaseListener
-
exitIfBranch
- Specified by:
exitIfBranch
in interfaceBSLParserListener
- Overrides:
exitIfBranch
in classBSLParserBaseListener
-
enterElsifBranch
- Specified by:
enterElsifBranch
in interfaceBSLParserListener
- Overrides:
enterElsifBranch
in classBSLParserBaseListener
-
exitElsifBranch
- Specified by:
exitElsifBranch
in interfaceBSLParserListener
- Overrides:
exitElsifBranch
in classBSLParserBaseListener
-
enterElseBranch
- Specified by:
enterElseBranch
in interfaceBSLParserListener
- Overrides:
enterElseBranch
in classBSLParserBaseListener
-
exitElseBranch
- Specified by:
exitElseBranch
in interfaceBSLParserListener
- Overrides:
exitElseBranch
in classBSLParserBaseListener
-
enterTernaryOperator
- Specified by:
enterTernaryOperator
in interfaceBSLParserListener
- Overrides:
enterTernaryOperator
in classBSLParserBaseListener
-
exitTernaryOperator
- Specified by:
exitTernaryOperator
in interfaceBSLParserListener
- Overrides:
exitTernaryOperator
in classBSLParserBaseListener
-
enterForEachStatement
- Specified by:
enterForEachStatement
in interfaceBSLParserListener
- Overrides:
enterForEachStatement
in classBSLParserBaseListener
-
exitForEachStatement
- Specified by:
exitForEachStatement
in interfaceBSLParserListener
- Overrides:
exitForEachStatement
in classBSLParserBaseListener
-
enterForStatement
- Specified by:
enterForStatement
in interfaceBSLParserListener
- Overrides:
enterForStatement
in classBSLParserBaseListener
-
exitForStatement
- Specified by:
exitForStatement
in interfaceBSLParserListener
- Overrides:
exitForStatement
in classBSLParserBaseListener
-
enterWhileStatement
- Specified by:
enterWhileStatement
in interfaceBSLParserListener
- Overrides:
enterWhileStatement
in classBSLParserBaseListener
-
exitWhileStatement
- Specified by:
exitWhileStatement
in interfaceBSLParserListener
- Overrides:
exitWhileStatement
in classBSLParserBaseListener
-
enterExceptCodeBlock
- Specified by:
enterExceptCodeBlock
in interfaceBSLParserListener
- Overrides:
enterExceptCodeBlock
in classBSLParserBaseListener
-
exitExceptCodeBlock
- Specified by:
exitExceptCodeBlock
in interfaceBSLParserListener
- Overrides:
exitExceptCodeBlock
in classBSLParserBaseListener
-
enterGotoStatement
- Specified by:
enterGotoStatement
in interfaceBSLParserListener
- Overrides:
enterGotoStatement
in classBSLParserBaseListener
-
enterGlobalMethodCall
- Specified by:
enterGlobalMethodCall
in interfaceBSLParserListener
- Overrides:
enterGlobalMethodCall
in classBSLParserBaseListener
-
enterExpression
- Specified by:
enterExpression
in interfaceBSLParserListener
- Overrides:
enterExpression
in classBSLParserBaseListener
-