Class UnavailableMemberCallDiagnostic
java.lang.Object
com.github._1c_syntax.bsl.languageserver.diagnostics.AbstractDiagnostic
com.github._1c_syntax.bsl.languageserver.diagnostics.UnavailableMemberCallDiagnostic
- All Implemented Interfaces:
BSLDiagnostic
@DiagnosticMetadata(type=ERROR,
severity=MAJOR,
minutesToFix=5,
scope=BSL,
tags=SUSPICIOUS)
public class UnavailableMemberCallDiagnostic
extends AbstractDiagnostic
Подсвечивает вызов метода или обращение к свойству платформенного типа,
недоступного в целевой версии платформы: член появился в версии новее, чем
режим совместимости проекта (
target < sinceVersion).
Источник версий — синтакс-помощник установленной платформы 1С (через
bsl-context) или встроенный справочник. Срабатывает, если хотя бы
один из возможных типов-владельцев ресивера делает член недоступным. Если
режим совместимости проекта не задан, считается «самая свежая платформа» —
тогда проверка не срабатывает.
- See Also:
-
Field Summary
Fields inherited from class AbstractDiagnostic
diagnosticStorage, documentContext, info -
Constructor Summary
ConstructorsConstructorDescriptionUnavailableMemberCallDiagnostic(TypeService typeService, TypeRegistry typeRegistry, LanguageServerConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheck()Выполняет проверку документа и наполняетAbstractDiagnostic.diagnosticStorageнайденными замечаниями.Methods 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
-
UnavailableMemberCallDiagnostic
@ConstructorProperties({"typeService","typeRegistry","configuration"}) public UnavailableMemberCallDiagnostic(TypeService typeService, TypeRegistry typeRegistry, LanguageServerConfiguration configuration)
-
-
Method Details
-
check
public void check()Description copied from class:AbstractDiagnosticВыполняет проверку документа и наполняетAbstractDiagnostic.diagnosticStorageнайденными замечаниями.- Specified by:
checkin classAbstractDiagnostic
-