Skip to main content

Crate glua_code_analysis

Crate glua_code_analysis 

Source

Structs§

AccessorFuncAnnotation
AccessorFuncAnnotationIndex
AccessorFuncCallIndex
AccessorFuncCallMetadata
AnalyzeError
BranchLabelInfo
Metadata for BranchLabel nodes that enables the merge-skip optimisation.
CacheOptions
CallConstraintContext
CodeStyleDiagnostic
DbIndex
DeclFeatureFlag
DeclReference
DeclReferenceCell
DeferredVfsDrop
DiagnosticAction
DiagnosticIndex
DocTypeInferContext
DynamicFieldIndex
Index tracking dynamically-assigned fields on typed variables.
EmmyLibraryConfig
EmmyLuaAnalysis
Emmyrc
EmmyrcCodeAction
EmmyrcCodeLens
EmmyrcCompletion
Configuration for EmmyLua code completion.
EmmyrcDiagnostic
Represents the diagnostic configuration for Emmyrc.
EmmyrcDoc
EmmyrcDocumentColor
EmmyrcExternalTool
EmmyrcFormatStyleOverrides
EmmyrcGmod
EmmyrcGmodHookMappings
EmmyrcGmodNetwork
EmmyrcGmodNetworkCompletion
EmmyrcGmodNetworkDiagnostics
EmmyrcGmodOutline
EmmyrcGmodScriptedClassDefinition
EmmyrcGmodScriptedClassScaffold
EmmyrcGmodScriptedClassScaffoldFile
EmmyrcGmodScriptedClassScopes
EmmyrcHover
EmmyrcInlayHint
EmmyrcInlineValues
EmmyrcReference
EmmyrcReformat
EmmyrcResource
EmmyrcRuntime
EmmyrcSemanticToken
EmmyrcStrict
EmmyrcWorkspace
EmmyrcWorkspaceModuleMap
FileId
FileNetworkData
FileReference
FlowId
Unique identifier for flow nodes
FlowNode
Main flow node structure containing all flow analysis information
FlowTree
FormattingOptions
GenericParam
GenericTpl
GlobalId
GmodCallbackSiteMetadata
GmodClassCallArg
GmodClassMetadataIndex
GmodConVarSiteMetadata
GmodConcommandSiteMetadata
GmodHookFileMetadata
GmodHookSiteMetadata
GmodInferIndex
GmodNamedSiteMetadata
GmodNetReceiveSiteMetadata
GmodNetworkIndex
GmodRealmFileMetadata
GmodRealmRange
A range within a file that has a narrowed realm (from if CLIENT then etc).
GmodScopedClassInfo
Cached scoped class detection result: (class_name, global_name).
GmodScriptedClassCallMetadata
GmodScriptedClassFileMetadata
GmodSystemAggregate
GmodSystemFileMetadata
GmodTimerSiteMetadata
InFiled
InferGuard
Guard to prevent infinite recursion with optimized lazy allocation
JsonSchemaIndex
LuaAliasCallType
LuaArrayType
LuaAttributeType
LuaAttributeUse
LuaClosureId
LuaCommonProperty
LuaCompilation
LuaConditionalType
LuaDecl
LuaDeclId
LuaDeclIndex
LuaDeclLocation
LuaDeclarationTree
LuaDependencyIndex
LuaDiagnostic
LuaDiagnosticConfig
LuaDocParamInfo
LuaDocReturnInfo
LuaDocument
LuaExport
LuaFileInfo
LuaFlowIndex
LuaFunctionType
LuaGenericParamInfo
LuaGenericType
LuaGlobalIndex
LuaInferCache
LuaInferCacheCell
LuaInstanceType
LuaIntersectionType
LuaMappedType
LuaMember
LuaMemberId
LuaMemberIndex
LuaMemberInfo
LuaMetatableIndex
LuaModuleIndex
LuaMultiLineUnion
LuaObjectType
LuaOperator
LuaOperatorId
LuaOperatorIndex
LuaPropertyId
LuaPropertyIndex
LuaReferenceIndex
LuaScope
LuaScopeId
LuaSignature
LuaSignatureCast
LuaSignatureId
LuaSignatureIndex
LuaStringTplType
LuaTupleType
LuaTypeDecl
LuaTypeDeclId
LuaTypeIndex
ModuleInfo
ModuleNode
ModuleNodeId
NetOpEntry
NetReceiveFlow
NetSendFlow
PendingStrTplTypeDecl
Profile
RangeFormatResult
ResolvedGmodScriptedClassDefinition
ResolvedGmodScriptedClassMatch
SemanticInfo
SemanticModel
SharedDiagnosticData
Precomputed data shared across all diagnostic files in a batch run. Computing this once instead of per-file saves ~60s on large workspaces.
TplContext
TypeSubstitutor
Vfs
VirtualUrlGenerator
VirtualWorkspace
A virtual workspace for testing.
Workspace
WorkspaceFolder
WorkspaceId

Enums§

AssignVarHint
Lightweight hint about which kinds of LHS variables appear in an assignment. Used to skip non-matching assignments in flow analysis without AST reconstruction.
AsyncState
CacheEntry
DiagnosticActionKind
DiagnosticCode
DiagnosticSeveritySetting
DocSyntax
EmmyLibraryItem
EmmyrcFilenameConvention
EmmyrcFormatConfigPrecedence
EmmyrcFormatPreset
EmmyrcGmodOutlineVerbosity
EmmyrcGmodRealm
EmmyrcGmodScriptedClassScopeEntry
EmmyrcLuaVersion
FlowAntecedent
Represents how flow nodes are connected
FlowNodeKind
Different types of flow nodes in the control flow graph
GenericTplId
GmodClassCallLiteral
GmodConVarKind
GmodHookKind
GmodHookNameIssue
GmodRealm
GmodScriptedClassCallKind
GmodTimerKind
InferFailReason
JsonSchemaFile
LocalAttribute
LuaAliasCallKind
LuaAnalysisPhase
LuaArrayLen
LuaDeclExtra
LuaDeclOrMemberId
LuaDeclTypeKind
LuaDependencyKind
LuaDeprecated
LuaExportScope
LuaIndexAccessKey
LuaMemberFeature
LuaMemberIndexItem
LuaMemberKey
LuaMemberOwner
LuaNoDiscard
LuaOperatorMetaMethod
LuaOperatorOwner
LuaScopeKind
LuaSemanticDeclId
LuaTupleStatus
LuaType
LuaTypeCache
LuaTypeFlag
LuaTypeOwner
LuaUnionType
NetOpKind
NetSendKind
OperatorFunction
PropertyDeclFeature
RenderLevel
ReturnTypeKind
ScopeOrDeclId
SemanticDeclLevel
SignatureReturnStatus
TypeCheckFailReason
TypeOps
VariadicType
WorkspaceImport
WorkspaceKind

Traits§

LuaIndex
TypeVisitTrait

Functions§

build_call_constraint_context
build_self_type
calculate_include_and_exclude
check_code_style
check_export_visibility
检查模块是否可见.
collect_workspace_files
enum_variable_is_param
extract_hook_name
fetch_schema_urls
file_path_to_uri
find_index_operations
find_member_origin_owner_at_offset
find_members_with_key
find_members_with_key_in_workspace_for_file
find_members_with_key_in_workspace_for_file_at_offset
first_param_may_not_self
format_union_type
get_best_resources_dir
get_keyof_members
get_locale_code
get_member_map
get_real_type
get_schema_short_name
get_scripted_class_info_for_file
Returns the scripted class info (class_name, global_name) for a file, if it belongs to a GMod scripted class scope. global_name is the well-known table name used in the file (e.g. "ENT", "SWEP", "TOOL", "EFFECT", "PLUGIN"). Uses cached scoped class info when available, falling back to path detection.
get_tpl_ref_extend_type
humanize_type
infer_call_expr_func
infer_doc_type
infer_index_expr
infer_param
infer_self_type
infer_table_field_value_should_be
infer_table_should_be
instantiate_alias_call
instantiate_doc_function
instantiate_func_generic
instantiate_generic
instantiate_type_generic
load_configs
load_configs_raw
load_resource_from_include_dir
load_workspace_files
normalize_constraint_type
parse_require_module_info
解析 require 调用表达式并获取模块信息
range_format_code
read_file_with_encoding
reformat_code
remove_code_style
resolve_gmod_hook_add_callback_doc_function
set_locale
tpl_pattern_match_args
try_extract_signature_id_from_field
尝试从 @field 定义中提取函数类型的位置信息
update_code_style
uri_to_file_path

Type Aliases§

InferGuardRef
TypeCheckResult