Class EmptyRegionDiagnostic
java.lang.Object
com.github._1c_syntax.bsl.parser.BSLParserBaseListener
com.github._1c_syntax.bsl.languageserver.diagnostics.AbstractListenerDiagnostic
com.github._1c_syntax.bsl.languageserver.diagnostics.EmptyRegionDiagnostic
- All Implemented Interfaces:
BSLDiagnostic
,QuickFixProvider
,BSLParserListener
,ParseTreeListener
@DiagnosticMetadata(type=CODE_SMELL,
severity=INFO,
minutesToFix=1,
tags=STANDARD)
public class EmptyRegionDiagnostic
extends AbstractListenerDiagnostic
implements QuickFixProvider
-
Field Summary
Fields inherited from class com.github._1c_syntax.bsl.languageserver.diagnostics.AbstractListenerDiagnostic
diagnosticStorage, documentContext, info
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
getQuickFixes
(List<Diagnostic> diagnostics, CodeActionParams params, DocumentContext documentContext) Methods inherited from class com.github._1c_syntax.bsl.languageserver.diagnostics.AbstractListenerDiagnostic
getDiagnostics, getInfo, setInfo
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, enterElseBranch, enterElsifBranch, enterEvent, enterExceptCodeBlock, enterExecuteStatement, enterExpression, enterFile, enterFileCodeBlock, enterFileCodeBlockBeforeSub, enterForEachStatement, enterForStatement, enterFuncDeclaration, enterFunction, enterGlobalMethodCall, enterGotoStatement, enterHandler, enterIfBranch, 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, enterSub, enterSubCodeBlock, enterSubName, enterSubs, enterSubVar, enterSubVarDeclaration, enterSubVars, enterSubVarsList, enterTernaryOperator, enterTryCodeBlock, enterTryStatement, enterTypeName, enterUnaryModifier, enterUse, enterUsedLib, enterVar_name, enterWaitExpression, enterWaitStatement, enterWhileStatement, 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, exitElseBranch, exitElsifBranch, exitEvent, exitExceptCodeBlock, exitExecuteStatement, exitExpression, exitFile, exitFileCodeBlock, exitFileCodeBlockBeforeSub, exitForEachStatement, exitForStatement, exitFuncDeclaration, exitFunction, exitGlobalMethodCall, exitGotoStatement, exitHandler, exitIfBranch, 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, exitSub, exitSubCodeBlock, exitSubName, exitSubs, exitSubVar, exitSubVarDeclaration, exitSubVars, exitSubVarsList, exitTernaryOperator, exitTryCodeBlock, exitTryStatement, exitTypeName, exitUnaryModifier, exitUse, exitUsedLib, exitVar_name, exitWaitExpression, exitWaitStatement, exitWhileStatement, visitErrorNode, visitTerminal
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.diagnostics.BSLDiagnostic
configure
-
Constructor Details
-
EmptyRegionDiagnostic
public EmptyRegionDiagnostic()
-
-
Method Details
-
enterEveryRule
- Specified by:
enterEveryRule
in interfaceParseTreeListener
- Overrides:
enterEveryRule
in classBSLParserBaseListener
-
exitEveryRule
- Specified by:
exitEveryRule
in interfaceParseTreeListener
- Overrides:
exitEveryRule
in classBSLParserBaseListener
-
getQuickFixes
public List<CodeAction> getQuickFixes(List<Diagnostic> diagnostics, CodeActionParams params, DocumentContext documentContext) - Specified by:
getQuickFixes
in interfaceQuickFixProvider
-