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.globalProperty(String, FileType)). Тип/модификатор
токена выводится из типа-значения глобального свойства
(а не из отдельного флага):
- обычное платформенное свойство/коллекция (
Справочники,Метаданные,ОбщегоНазначения) →Class + DefaultLibrary; - системное перечисление — тип-значение проходит
isEnumType(КодировкаТекста) →Enum + DefaultLibrary; значение перечисления первого уровня (.UTF8) →EnumMember; - модульный тип (общий/library-модуль, есть в URI-индексе) →
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:
- Список семантических токенов
-