Class DefaultDiagnosticComputer
java.lang.Object
com.github._1c_syntax.bsl.languageserver.diagnostics.DefaultDiagnosticComputer
- All Implemented Interfaces:
DiagnosticComputer
@Component
public abstract class DefaultDiagnosticComputer
extends Object
implements DiagnosticComputer
Реализация
DiagnosticComputer по умолчанию.
Параллельно вычисляет диагностики всеми зарегистрированными анализаторами BSLDiagnostic
с обработкой ошибок и фильтрацией по правилам подавления и игнорируемым авторам.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultDiagnosticComputer(LanguageServerConfiguration configuration, ExecutorService executor) -
Method Summary
Modifier and TypeMethodDescriptioncompute(DocumentContext documentContext) Вычислить все диагностики для документа.protected abstract List<BSLDiagnostic> diagnostics(DocumentContext documentContext)
-
Constructor Details
-
DefaultDiagnosticComputer
@ConstructorProperties({"configuration","executor"}) public DefaultDiagnosticComputer(LanguageServerConfiguration configuration, @Qualifier("diagnosticComputerExecutor") ExecutorService executor)
-
-
Method Details
-
compute
Description copied from interface:DiagnosticComputerВычислить все диагностики для документа.- Specified by:
computein interfaceDiagnosticComputer- Parameters:
documentContext- контекст анализируемого документа- Returns:
- список найденных диагностик
-
diagnostics
@Lookup("diagnostics") protected abstract List<BSLDiagnostic> diagnostics(DocumentContext documentContext)
-