Expand description
TypeScript type rendering: ts_type_ref*, ts_ty, and the TsType builders.
Functions§
- ts_
type_ of - The TypeScript type of a Bynk type reference, as a node (1A.39a, Decision G). A caller that needs text prints it itself: the driver’s test harness does, at its own boundary.
- ts_
type_ ref_ qualified_ multi_ ts_ type TsType-returning sibling ofts_type_ref, likets_type_ref_qualifiedbut with each in-scope name carrying its own namespace viatype_nsrather than one sharedns— needed when a signature mixes names owned by the target unit with names reached only through ausesd commons (e.g. a stub class implementing an adapter-sourced capability whose return type lives in a commons the capability’s own unituses, never in the target context itself — Locale capability track, slice 1, #844). Qualifying such a name under the target’s own namespace would reference an exportemit_context_rebrandsnever emits (it only rebrands names the target’s own lowered body references), so each name is qualified under the namespace that actually exports it. Used byemit_stub_class(project/tests_emit.rs) for its own method params/return-type.- ts_
type_ ref_ qualified_ ts_ type TsType-returning sibling ofts_type_ref, qualifying named types that live inscopewith the namespacens(Order→Ns.Order). Used byobservation_call_record_types(project/tests_emit.rs) for mock method signatures that sit outside the destructuring that brings a namespace’s value-side names into local scope, so the types must be referenced fully qualified. Qualification recurses through generic arguments; base/unit types are unaffected.