Class CfgBuildingParseTreeVisitor
java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<Result>
com.github._1c_syntax.bsl.parser.BSLParserBaseVisitor<ParseTree>
com.github._1c_syntax.bsl.languageserver.cfg.CfgBuildingParseTreeVisitor
- All Implemented Interfaces:
BSLParserVisitor<ParseTree>
,ParseTreeVisitor<ParseTree>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
determineAdjacentDeadCode
(boolean enabled) void
produceLoopIterations
(boolean enable) void
producePreprocessorConditions
(boolean enable) Methods inherited from class com.github._1c_syntax.bsl.parser.BSLParserBaseVisitor
visitAcceptor, visitAccessCall, visitAccessIndex, visitAccessProperty, visitAnnotation, visitAnnotationName, visitAnnotationParam, visitAnnotationParamName, visitAnnotationParams, visitBoolOperation, visitCallParam, visitCallParamList, visitCompareOperation, visitCompilerDirective, visitCompilerDirectiveSymbol, visitComplexIdentifier, visitCompoundStatement, visitConstValue, visitDefaultValue, visitDoCall, visitEvent, visitExceptCodeBlock, visitExpression, visitFile, visitFileCodeBlock, visitFileCodeBlockBeforeSub, visitFuncDeclaration, visitFunction, visitGlobalMethodCall, visitHandler, visitIfBranch, visitLabelName, visitLValue, visitMember, visitMethodCall, visitMethodName, visitModifier, visitModuleAnnotations, visitModuleVar, visitModuleVarDeclaration, visitModuleVars, visitModuleVarsList, visitMultilineString, visitNewExpression, visitNumeric, visitOperation, visitParam, visitParamList, visitPreproc_boolOperation, visitPreproc_expression, visitPreproc_logicalExpression, visitPreproc_logicalOperand, visitPreproc_native, visitPreproc_symbol, visitPreproc_unknownSymbol, visitPreprocessor, visitProcDeclaration, visitProcedure, visitRegionEnd, visitRegionName, visitRegionStart, visitShebang, visitStatement, visitString, visitSub, visitSubCodeBlock, visitSubName, visitSubs, visitSubVar, visitSubVarDeclaration, visitSubVars, visitSubVarsList, visitTernaryOperator, visitTryCodeBlock, visitTypeName, visitUnaryModifier, visitUse, visitUsedLib, visitVar_name, visitWaitExpression
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
CfgBuildingParseTreeVisitor
public CfgBuildingParseTreeVisitor()
-
-
Method Details
-
produceLoopIterations
public void produceLoopIterations(boolean enable) -
producePreprocessorConditions
public void producePreprocessorConditions(boolean enable) -
determineAdjacentDeadCode
public void determineAdjacentDeadCode(boolean enabled) -
buildGraph
-
visitCallStatement
- Specified by:
visitCallStatement
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitCallStatement
in classBSLParserBaseVisitor<ParseTree>
-
visitWaitStatement
- Specified by:
visitWaitStatement
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitWaitStatement
in classBSLParserBaseVisitor<ParseTree>
-
visitAssignment
- Specified by:
visitAssignment
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitAssignment
in classBSLParserBaseVisitor<ParseTree>
-
visitIfStatement
- Specified by:
visitIfStatement
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitIfStatement
in classBSLParserBaseVisitor<ParseTree>
-
visitElsifBranch
- Specified by:
visitElsifBranch
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitElsifBranch
in classBSLParserBaseVisitor<ParseTree>
-
visitCodeBlock
- Specified by:
visitCodeBlock
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitCodeBlock
in classBSLParserBaseVisitor<ParseTree>
-
visitElseBranch
- Specified by:
visitElseBranch
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitElseBranch
in classBSLParserBaseVisitor<ParseTree>
-
visitWhileStatement
- Specified by:
visitWhileStatement
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitWhileStatement
in classBSLParserBaseVisitor<ParseTree>
-
visitForStatement
- Specified by:
visitForStatement
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitForStatement
in classBSLParserBaseVisitor<ParseTree>
-
visitForEachStatement
- Specified by:
visitForEachStatement
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitForEachStatement
in classBSLParserBaseVisitor<ParseTree>
-
visitExecuteStatement
- Specified by:
visitExecuteStatement
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitExecuteStatement
in classBSLParserBaseVisitor<ParseTree>
-
visitAddHandlerStatement
- Specified by:
visitAddHandlerStatement
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitAddHandlerStatement
in classBSLParserBaseVisitor<ParseTree>
-
visitRemoveHandlerStatement
- Specified by:
visitRemoveHandlerStatement
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitRemoveHandlerStatement
in classBSLParserBaseVisitor<ParseTree>
-
visitGotoStatement
- Specified by:
visitGotoStatement
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitGotoStatement
in classBSLParserBaseVisitor<ParseTree>
-
visitLabel
- Specified by:
visitLabel
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitLabel
in classBSLParserBaseVisitor<ParseTree>
-
visitContinueStatement
- Specified by:
visitContinueStatement
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitContinueStatement
in classBSLParserBaseVisitor<ParseTree>
-
visitReturnStatement
- Specified by:
visitReturnStatement
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitReturnStatement
in classBSLParserBaseVisitor<ParseTree>
-
visitBreakStatement
- Specified by:
visitBreakStatement
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitBreakStatement
in classBSLParserBaseVisitor<ParseTree>
-
visitTryStatement
- Specified by:
visitTryStatement
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitTryStatement
in classBSLParserBaseVisitor<ParseTree>
-
visitRaiseStatement
- Specified by:
visitRaiseStatement
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitRaiseStatement
in classBSLParserBaseVisitor<ParseTree>
-
visitPreproc_if
- Specified by:
visitPreproc_if
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitPreproc_if
in classBSLParserBaseVisitor<ParseTree>
-
visitPreproc_else
- Specified by:
visitPreproc_else
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitPreproc_else
in classBSLParserBaseVisitor<ParseTree>
-
visitPreproc_elsif
- Specified by:
visitPreproc_elsif
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitPreproc_elsif
in classBSLParserBaseVisitor<ParseTree>
-
visitPreproc_endif
- Specified by:
visitPreproc_endif
in interfaceBSLParserVisitor<ParseTree>
- Overrides:
visitPreproc_endif
in classBSLParserBaseVisitor<ParseTree>
-