Class GlobalScopeSemanticTokensSupplier
java.lang.Object
com.github._1c_syntax.bsl.languageserver.semantictokens.GlobalScopeSemanticTokensSupplier
- All Implemented Interfaces:
SemanticTokensSupplier
@Component
public class GlobalScopeSemanticTokensSupplier
extends Object
implements SemanticTokensSupplier
Сапплаер семантических токенов для идентификаторов, разрешающихся через
global scope (
GlobalScopeProvider). Тип/модификатор токена выбираются
по SyntheticKind
найденного символа:
PLATFORM_GLOBAL_PROPERTY(Справочники,Метаданные,ОбщегоНазначения) →Class + DefaultLibrary;PLATFORM_GLOBAL_ENUM(КодировкаТекста) →Enum + DefaultLibrary; значение перечисления первого уровня (.UTF8) →EnumMember;LIBRARY_MODULE(ФС) →Namespace.
-
Constructor Summary
ConstructorsConstructorDescriptionGlobalScopeSemanticTokensSupplier(GlobalScopeProvider globalScopeProvider, TypeRegistry typeRegistry, SemanticTokensHelper helper) -
Method Summary
Modifier and TypeMethodDescriptiongetSemanticTokens(DocumentContext documentContext) Получить семантические токены для документа.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SemanticTokensSupplier
getSemanticTokens
-
Constructor Details
-
GlobalScopeSemanticTokensSupplier
@ConstructorProperties({"globalScopeProvider","typeRegistry","helper"}) public GlobalScopeSemanticTokensSupplier(GlobalScopeProvider globalScopeProvider, TypeRegistry typeRegistry, SemanticTokensHelper helper)
-
-
Method Details
-
getSemanticTokens
Description copied from interface:SemanticTokensSupplierПолучить семантические токены для документа.- Specified by:
getSemanticTokensin interfaceSemanticTokensSupplier- Parameters:
documentContext- Контекст документа- Returns:
- Список семантических токенов
-