Skip to main content

resolve_type_ref

Function resolve_type_ref 

Source
pub fn resolve_type_ref(db: &dyn Db, api: &EngineApi, node: &GdNode) -> Ty
Expand description

Resolve a GDScript source type annotation (a TypeRef CST node) to a Ty. Handles void/Variant, builtins, engine classes, Array/Array[T], Dictionary/ Dictionary[K, V], global enums, and Class.Enum; an unknown bare name is treated as a (cross-file) class_name and funneled through the resolve_external seam.