Expand description
The hand-authored GDScript layer the engine dump omits (Playbook §4.4).
extension_api.json describes the engine (classes, builtins, @GlobalScope utilities) but
not the language surface GDScript adds on top: the @GlobalScope/@GDScript
pseudo-constants (PI/TAU/INF/NAN) and the GDScript builtin functions
(preload/load/range/len/…), whose return types are decided here rather than read
from any dump. gdscript-hir consults these during global name resolution.
Types are tagged with the coarse, model-independent LayerTy (resolved to a gdscript-hir
Ty by the consumer) because real crate::BuiltinIds only exist after the model loads.
Structs§
- Builtin
Fn - A GDScript builtin function (
preload,range,len, …) — distinct from the@GlobalScopeutility functions, which come from the JSON. - Global
Const - A
@GlobalScope/@GDScriptpseudo-constant (PI,TAU,INF,NAN).
Enums§
- LayerTy
- A coarse type tag for hand-authored symbols, mapped to a
gdscript-hirTyby the consumer.
Functions§
- builtin_
fns - The GDScript builtin functions (the
@GDScriptsurface). The list grows as features need it; these are the ones inference and completion rely on in Phase 2. - global_
consts - The pseudo-constants
extension_api.jsonreports as emptyglobal_constantsin 4.5.