Skip to main content

Module entry

Module entry 

Source
Expand description

#2695: the signatures of a unit’s entry handlers - every on call(...) of a service - described structurally from the checker’s resolved types, so a host (the playground’s Arguments row) never re-parses the source to learn what a run can be passed.

Each parameter’s declared TypeRef is resolved with resolve_type_ref (the checker’s own resolution, against the unit’s visible types) and the resulting Ty is walked into an EntryShape; a named type’s fields or variants come from its TypeDecl in the same table. Plain data: the consumer chooses the wire format (bynk-wasm renders JSON).

Crate-hygiene B3 (#2999, DECISION C): this was bynk_check::entry_signature until the signatures became system-model items. It moved verbatim, so its syntax-tree reads (the call handler filter, TypeBody’s records and sums) are now the model builder’s, which is where M-1 puts them.

EntryShape and crate::TypeShape both describe a record’s fields and a sum’s variants, from two builders. Rebuilding this one over TypeShape is deferred past 1.0 (crate-hygiene B4, #3012): build_output holds no CheckedProgram or type arena to lower it from. Trigger: a type-shape change that has to be made in both, or the model becoming public.

Structs§

EntryHandler
One service’s on call(...) handler.
EntryParam

Enums§

EntryShape
What a value of a parameter’s type looks like, resolved to its leaves.

Functions§

entry_handlers
The entry handlers of the unit unit’s services, ordered by service name then declaration order. Types are resolved in the entry unit’s scope; the fields of a named type in its declaring unit’s.