Class ExportVariablesDiagnostic
java.lang.Object
com.github._1c_syntax.bsl.languageserver.diagnostics.AbstractDiagnostic
com.github._1c_syntax.bsl.languageserver.diagnostics.AbstractSymbolTreeDiagnostic
com.github._1c_syntax.bsl.languageserver.diagnostics.ExportVariablesDiagnostic
- All Implemented Interfaces:
SymbolTreeVisitor, BSLDiagnostic
@DiagnosticMetadata(type=CODE_SMELL,
severity=MAJOR,
minutesToFix=5,
scope=ALL,
tags={STANDARD,DESIGN,UNPREDICTABLE})
public class ExportVariablesDiagnostic
extends AbstractSymbolTreeDiagnostic
-
Field Summary
Fields inherited from class AbstractDiagnostic
diagnosticStorage, documentContext, info -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvisitMethod(MethodSymbol method) ДелегатыAbstractSymbolTreeDiagnostic.visitRegularMethod(RegularMethodSymbol)иAbstractSymbolTreeDiagnostic.visitConstructor(ConstructorSymbol)вызывают этот метод.voidvisitVariable(VariableSymbol variable) Посетить символ переменной.Methods inherited from class AbstractSymbolTreeDiagnostic
check, visitConstructor, visitModule, visitRegion, visitRegularMethodMethods inherited from class AbstractDiagnostic
getDiagnostics, getInfo, setInfoMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BSLDiagnostic
configure
-
Constructor Details
-
ExportVariablesDiagnostic
public ExportVariablesDiagnostic()
-
-
Method Details
-
visitVariable
Description copied from interface:SymbolTreeVisitorПосетить символ переменной.- Specified by:
visitVariablein interfaceSymbolTreeVisitor- Overrides:
visitVariablein classAbstractSymbolTreeDiagnostic- Parameters:
variable- Символ переменной
-
visitMethod
Description copied from class:AbstractSymbolTreeDiagnosticДелегатыAbstractSymbolTreeDiagnostic.visitRegularMethod(RegularMethodSymbol)иAbstractSymbolTreeDiagnostic.visitConstructor(ConstructorSymbol)вызывают этот метод. Диагностики, не различающие тип callable-символа, переопределяют только его. ПереопределениеAbstractSymbolTreeDiagnostic.visitConstructor(ConstructorSymbol)илиAbstractSymbolTreeDiagnostic.visitRegularMethod(RegularMethodSymbol)напрямую — путь для случаев, когда конструкторы (или обычные методы) надо обработать иначе либо вовсе пропустить.- Overrides:
visitMethodin classAbstractSymbolTreeDiagnostic
-