Skip to main content

Module gdscript_layer

Module gdscript_layer 

Source
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§

BuiltinFn
A GDScript builtin function (preload, range, len, …) — distinct from the @GlobalScope utility functions, which come from the JSON.
GlobalConst
A @GlobalScope/@GDScript pseudo-constant (PI, TAU, INF, NAN).

Enums§

LayerTy
A coarse type tag for hand-authored symbols, mapped to a gdscript-hir Ty by the consumer.

Functions§

builtin_fns
The GDScript builtin functions (the @GDScript surface). 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.json reports as empty global_constants in 4.5.