Class AbstractVisitorDiagnostic

All Implemented Interfaces:
BSLDiagnostic, BSLParserVisitor<ParseTree>, ParseTreeVisitor<ParseTree>
Direct Known Subclasses:
AbstractFindMethodDiagnostic, AbstractMagicValueDiagnostic, AbstractMultilingualStringDiagnostic, AllFunctionPathMustHaveReturnDiagnostic, AssignToReadOnlyPropertyDiagnostic, BeginTransactionBeforeTryCatchDiagnostic, CodeAfterAsyncCallDiagnostic, CodeBlockBeforeSubDiagnostic, CodeOutOfRegionDiagnostic, CognitiveComplexityDiagnostic, CommitTransactionOutsideTryCatchDiagnostic, CommonModuleAssignDiagnostic, CommonModuleVariablesDiagnostic, CompilationDirectiveLostDiagnostic, CompilationDirectiveNeedLessDiagnostic, CreateQueryInCycleDiagnostic, CyclomaticComplexityDiagnostic, DataExchangeLoadingDiagnostic, DeletingCollectionItemDiagnostic, DeprecatedAttributes8312Diagnostic, DeprecatedTypeManagedFormDiagnostic, DuplicatedInsertionIntoCollectionDiagnostic, DuplicateRegionDiagnostic, DuplicateStringLiteralDiagnostic, EmptyCodeBlockDiagnostic, EmptyStatementDiagnostic, ExcessiveAutoTestCheckDiagnostic, ExecuteExternalCodeDiagnostic, ExecuteExternalCodeInCommonModuleDiagnostic, ExtraCommasDiagnostic, FunctionNameStartsWithGetDiagnostic, FunctionOutParameterDiagnostic, FunctionReturnsSamePrimitiveDiagnostic, FunctionShouldHaveReturnDiagnostic, IfConditionComplexityDiagnostic, IfElseDuplicatedCodeBlockDiagnostic, IfElseDuplicatedConditionDiagnostic, IfElseIfEndsWithElseDiagnostic, InternetAccessDiagnostic, IsInRoleMethodDiagnostic, MethodSizeDiagnostic, MissedRequiredParameterDiagnostic, MissingCodeTryCatchExDiagnostic, MissingTemporaryFileDeletionDiagnostic, MissingVariablesDescriptionDiagnostic, NestedConstructorsInStructureDeclarationDiagnostic, NestedFunctionInParametersDiagnostic, NestedTernaryOperatorDiagnostic, NonExportMethodsInApiRegionDiagnostic, NumberOfOptionalParamsDiagnostic, NumberOfParamsDiagnostic, NumberOfValuesInStructureConstructorDiagnostic, OneStatementPerLineDiagnostic, OrderOfParamsDiagnostic, PairingBrokenTransactionDiagnostic, ProcedureReturnsValueDiagnostic, PublicMethodsDescriptionDiagnostic, RedundantAccessToObjectDiagnostic, SelfAssignDiagnostic, SelfInsertionDiagnostic, SemicolonPresenceDiagnostic, SeveralCompilerDirectivesDiagnostic, StyleElementConstructorsDiagnostic, TernaryOperatorUsageDiagnostic, ThisObjectAssignDiagnostic, TimeoutsInExternalResourcesDiagnostic, TooManyReturnsDiagnostic, TryNumberDiagnostic, UnaryPlusInConcatenationDiagnostic, UnknownMemberDiagnostic, UnknownPreprocessorSymbolDiagnostic, UnreachableCodeDiagnostic, UnsafeFindByCodeDiagnostic, UnusedLocalMethodDiagnostic, UnusedParametersDiagnostic, UsageWriteLogEventDiagnostic, UseLessForEachDiagnostic, UselessTernaryOperatorDiagnostic, UseSystemInformationDiagnostic, UsingCancelParameterDiagnostic, UsingExternalCodeToolsDiagnostic, UsingFindElementByStringDiagnostic, UsingGotoDiagnostic, UsingHardcodeNetworkAddressDiagnostic, UsingHardcodePathDiagnostic, UsingHardcodeSecretInformationDiagnostic, UsingModalWindowsDiagnostic, UsingObjectNotAvailableUnixDiagnostic, UsingSynchronousCallsDiagnostic, UsingThisFormDiagnostic

public abstract class AbstractVisitorDiagnostic extends BSLParserBaseVisitor<ParseTree> implements BSLDiagnostic
  • Field Details

  • Constructor Details

    • AbstractVisitorDiagnostic

      public AbstractVisitorDiagnostic()
  • Method Details

    • getDiagnostics

      public List<Diagnostic> getDiagnostics(DocumentContext documentContext)
      Description copied from interface: BSLDiagnostic
      Выполнить диагностику документа.
      Specified by:
      getDiagnostics in interface BSLDiagnostic
      Parameters:
      documentContext - Контекст документа, для которого выполняется диагностика
      Returns:
      Список найденных замечаний
    • getInfo

      public DiagnosticInfo getInfo()
      Description copied from interface: BSLDiagnostic
      Получить метаинформацию о диагностике.
      Specified by:
      getInfo in interface BSLDiagnostic
      Returns:
      Метаинформация о диагностике
    • setInfo

      public void setInfo(DiagnosticInfo info)
      Description copied from interface: BSLDiagnostic
      Установить метаинформацию о диагностике.
      Specified by:
      setInfo in interface BSLDiagnostic
      Parameters:
      info - Метаинформация о диагностике