Expand description
Project-wide orchestration: discovery → parse → group → resolve, shared
between bynk-emit’s run_checks (both Mode::Build and Mode::Analyse)
and this crate’s own crate::analysis::analyse_project.
P4.1 (#1115), second scope finding on the tracking issue: this pipeline —
phase_discovery through assemble_unit_info, plus the per-unit symbol
composition (compose_unit_symbols/merge_consumed_exports/
collect_unit_methods) — used to live only in bynk-emit/src/project.rs,
inline in run_checks. A literal no-indirection bynk-check-side analysis
entry point needs the identical sequence, so rather than write a second,
independently-maintained copy (the mistake this whole design track’s
extract, don't duplicate principle exists to prevent — see
lower_field_default_wire, build_capability_op_info for the same move
made earlier in this track), it moved here. bynk-emit’s run_checks
becomes a caller of these functions instead of owning the logic, the same
way P4.0 turned project.rs into a caller of bynk-project.
What stayed in bynk-emit (not shared, because only the Mode::Build path
needs it, or because it’s genuinely emission-shaped): the Mode::Build
bail gate and everything from emission onward (EmitUnitCtx, emit_unit,
collect_history_target_agents). The whole-project messages/locale-
ambiguity/event-subscription checks (P5.0/P5.1), the function-type-
boundary check (P5.2, phase_function_type_boundaries), and
schema-registry reconciliation/platform-lock enforcement (P5.3,
crate::schema_registry::reconcile/phase_platform_lock) have since
moved here too — the P5.2 move closed phase_group’s optional
boundary-check hook, which used to be the only way run_checks and the
new entry point could reach it without duplicating the diagnostic-ordering
logic (see analysis.rs for the residual-gap accounting that remains).
Structs§
- Adapter
Binding - v0.17: a resolved adapter binding — the user-authored
.binding.tsmodule that supplies an adapter’s external provider symbols. Copied verbatim into the output beside the adapter’s emitted interface module so thattscchecks theimplementscontract and compose can import the symbols. - Error
Sink - Collection-point error sink (ADR 0052). Helpers keep their plain
&mut Vec<CompileError>signatures; call sites attribute viaextend_forwith the file in scope at that point. - FnDecl
- P6.49 (design/tracks/the-ir.md §6b), following P6.27’s
ExprIdprecedent (checker.rs:39): re-exported because this module’s own public API —compose_unit_symbols’scombined_types/combined_fns,collect_unit_methods’s return, andUnitInfo::exports’s value type — is already parameterised by these three types.bynk-emitonly ever plumbs the resulting tables through to otherbynk-checkcalls; it never matches a variant of any of the three. - Included
File - #2321: one file an adapter binding includes, copied byte for byte.
- Reached
Types - What
close_reachable_typesfinds beyond the unit’s composed table. - Shadowed
Reaches - #1824: the reached type names a unit’s own declaration shadows, keyed by the declaring unit whose scope resolves the name and the name.
- Shadowed
Type - #1824: a type an imported declaration names, which this unit resolves to a different declaration of the same name.
- Type
Decl - P6.49 (design/tracks/the-ir.md §6b), following P6.27’s
ExprIdprecedent (checker.rs:39): re-exported because this module’s own public API —compose_unit_symbols’scombined_types/combined_fns,collect_unit_methods’s return, andUnitInfo::exports’s value type — is already parameterised by these three types.bynk-emitonly ever plumbs the resulting tables through to otherbynk-checkcalls; it never matches a variant of any of the three. - Unit
Info - v0.29.4: the per-unit facets that the producer phases build as nine parallel
HashMap<String, _>s, all keyed on unit name. Assembling one record per unit makes the “all these maps share one keyset” invariant structural: a single lookup yields every facet as a field, so the per-column.unwrap()s on the shared keyset disappear. Fields are total —exports/aliases/flatteneddefault to an empty map for a unit with no entry, reproducing the old.unwrap_or(empty)read semantics without the dance. - View
Conflict - #1814 review: a type an imported declaration of a suite view names, which the view binds to a different declaration of the same name.
- View
Reach - #1814: what
close_view_typesfound.
Enums§
- Build
Target - The build target. Determines how cross-context calls and per-context modules are emitted (v0.8). Bundle mode is the default — all contexts emit into one TypeScript bundle and cross-context calls are direct function invocations. Workers mode produces per-context Cloudflare Worker bundles that communicate via Service Bindings.
- Unprovided
Reason - Why a context’s required local capability has to have a provider in it,
which is what the
bynk.capability.not_providedmessage and note say. - Visibility
- P6.49 (design/tracks/the-ir.md §6b), following P6.27’s
ExprIdprecedent (checker.rs:39): re-exported because this module’s own public API —compose_unit_symbols’scombined_types/combined_fns,collect_unit_methods’s return, andUnitInfo::exports’s value type — is already parameterised by these three types.bynk-emitonly ever plumbs the resulting tables through to otherbynk-checkcalls; it never matches a variant of any of the three. Visibility level for an exports clause (v0.4 §3.3).
Constants§
- FIRSTPARTY_
FILE_ ID_ BASE - #1956: the first
FileIdreserved for first-party synthetic units. Each unit’s spans carryFIRSTPARTY_FILE_ID_BASE + id_block(firstparty_file_id), fixed for the same reason as itsExprIdblock: the parse is cached per process, so the id can’t come from any one project’s interner. The range sits just belowFileId::UNKNOWN(u32::MAX), far above any idparse_cache::file_id_forhands a real file. Without an identity of their own, a first-party span counted as the error’s own file, and a “declared here” label intobynk.bynkwas drawn at the same offsets in the user’s. - FIRSTPARTY_
ID_ BASE - FIRSTPARTY_
ID_ BLOCK - A memoized parse of one first-party synthetic source, keyed by the
caller’s
cache—inject_firstpartypasses one per registry entry. Finding #55/#65: the source text is a fixedinclude_str!constant, so its parse is a pure function of that constant and only needs computing once per process, not once per compile/analyse round. Which units a project injects is still decided fresh for every project from its own parseduses/consumes; only the parse result is cached. T3.4 (R2.4): each first-party synthetic unit reserves its own 1M-wideExprIdblock, spaced far above anything a real project’s own file count could ever reach — seefirstparty_parsed’s doc comment for why a fixed reservation, not a threaded counter, is the right shape here.
Functions§
- assemble_
unit_ info - v0.29.4: fold the nine parallel per-unit maps into one
HashMap<String, UnitInfo>. Assembly is driven by thegroupskeyset (the authority), so every group yields exactly one record. Facets that are genuinely optional in the producer maps (exports/aliases/flattened, andfile_indexfor a unit with no declarations) default to empty — reproducing the old.unwrap_or(empty)read semantics as a total field. - check_
discovered_ files - The checks every tree’s file list must pass regardless of where it came
from — a real disk walk (
phase_discovery) or a caller-supplieddiscovered/CompileOptions.sourceslist (#1077/#1081 review). An empty project (bynk.project.no_sources) signals a bail viaErr(()); a file/directory name conflict is a non-fatal diagnostic. - check_
function_ type_ boundary_ items - Item-level body of the boundary confinement, shared with the single-file
(legacy) compile path in
bynk-emit’slib.rs. Relocated alongsidephase_function_type_boundaries(P5.2). - close_
reachable_ types - #1807: close a unit’s composed type table over the types its imported declarations reach.
- close_
view_ types - #1814: close a test suite’s composed view over the types its imported
declarations reach, as
close_reachable_typescloses a unit’s table. - collect_
type_ decls - v0.174 (#592): a
name -> TypeDecltable over a set of items, for the recursive-generic boundary walk. Relocated alongsidephase_function_type_boundaries(P5.2) — public sincebynk-emit’s single-file compile path (lib.rs) also needs it, across the crate boundary this relocation now draws. - collect_
unit_ methods - Phase 8c: collect every method authored anywhere in one unit, keyed by its
attached type’s name — so a type’s methods surface in the file that declares
the type even when the method lives in a sibling file. The collection loop
has no
continues, so it lifts out whole. - compose_
unit_ symbols - Phase 8a: compose one unit’s symbol space — its local table plus a
one-level
usesmixin (commons identity preserved). Returns the combined type/fn/method tables and theimported_fromprovenance maps; the mixin loop has nocontinues, so it lifts out whole. - composed_
in_ bundle_ root - Whether a bundle’s composition root builds this context:
composeAppmakes a deps object only to feed a context’s__makeSurface, so a context with no services (agents, capabilities or providers only) is left to the host. Shared by the driver’semit_composition_rootandphase_unprovided_capabilities, so the check refuses exactly the contexts the root builds. - composition_
root_ trigger - The context that makes a bundle emit its composition root (
compose.ts,composeApp) and what it does that needs one, phrased to follow the context’s name, orNonewhen the bundle has no root. Shared by the driver’semit_composition_rootandphase_bundle_composition_unprovided(which bothbynk checkand the editor’s analysis run), so the check and the emitter cannot disagree about whether there is a root:composeAppbuilds every context’s deps itself, so once there is one the host cannot supply a capability through__makeSurface(deps), and a required local capability needs a provider, as it does on Workers. - consume_
selections - #3536: each context’s or adapter’s
consumesclauses as(target, listed names)—Nonefor the whole-module form (no braces),Some(names)for a braced list — across all the unit’s files, forcrate::symbols::record_unselected_consumed_types. - firstparty_
file_ id - The
FileIdevery span of first-partyunitcarries. - firstparty_
parsed - handler_
cross_ caps - v0.15: the cross-context capabilities a context’s handlers reference,
as
deps_key → consumed_context. Shared withbynk-emit, not duplicated — seeresolve_consume_prefix’s doc. - inject_
service_ defaults - Inject a single service’s
by/givendefaults into its handlers. A handler that names its ownby(orgiven) overrides the default outright — the default fills only an absent clause, never merges. A service with no default is left untouched (byte-for-byte the pre-v0.155 behaviour). - is_
events_ emit - Whether a resolved call is
Events.emit, the one calleeunit_table_uses_emitlooks for.Events.emit[...]dispatches through the ordinary capability-call path (checker/calls.rs). - merge_
consumed_ exports - Phase 8b: merge one context’s
consumesexports into the composed symbol space, recording visibility metadata in the returnedconsumed_types. The per-exportcontinues (missing decl, name conflict) stay internal to the loop, which lifts out whole; name conflicts are pushed intoerrorsand the caller’sgroup_error_baselineguard reacts to them after this returns. - normalize_
service_ defaults - phase_
bundle_ composition_ unprovided - On the bundle target a context’s required local capability may be left to
the host, which supplies it through
__makeSurface(deps), but only while the bundle has no composition root (composition_root_trigger):composeAppbuilds the deps of every context it composes (composed_in_bundle_root), so once a context brings a root in, a capability with no provider is the Workers gap again. Raised at thegivenrather than left totscagainstcompose.ts(bynk.codegen.tsc_failed). Called by the driver’srun_checksand bycrate::analysis, after the per-unit checks (it readsunit_callees), and only on an otherwise-clean program: a unit that failed to check has no callee map, and the root is only emitted for a clean one. - phase_
consumes_ aliases - Phases 5b’/5b’‘: collect each context’s
consumesaliases (alias → consumed-context name), reporting alias-vs-alias conflicts (5b’), then report any alias that clashes with a locally-declared type/fn/capability/service/agent (5b’’). Returns the per-context alias maps; diagnostics go intoerrors. - phase_
detect_ consumes_ cycles - Phase 5c: detect
consumescycles. #696: record eachconsumes-clause site (file + span) keyed by(consumer, target)so a detected cycle anchors on the exact clause that forms the closing edge — a real span in a real file — and renders with source context. Synthetic units are left out so their (snapshot-less) files never claim a diagnostic. - phase_
discovery - Phase 1: discover the
.bynkfiles under the source (and, in split mode, the tests) root by walking the filesystem. Pushes any discovery error intoerrorsand signals a pipeline bail viaErr(())(the caller terminates withfinish); otherwise returns the discovered(src_files, tests_files). - phase_
edge_ cache_ reach - L7 (#2414, Decision D): an
EdgeCachepurge reaches the cache only from the Worker’s ownfetch, so the instance is refused where anything else runs: an agent handler (a Durable Object,bynk.cloudflare.edge_cache_in_agent), a queue consumer (bynk.cloudflare.edge_cache_in_queue), anon schedulehandler (bynk.cloudflare.edge_cache_in_schedule: deployed, its purge answerssuccessand clears nothing), and an exported capability, which a consumer builds in its own Worker (bynk.cloudflare.edge_cache_exported). A handler reaches the instance through its owngiven, or through a local capability whose provider’sgivendoes, at any depth. - phase_
event_ subscriptions - Events track, slice 0 (spine #936): a
from Events(E)subscription must name a real, declared event — owned either by this context or by a context itconsumes(mirroringdiscover_event_subscribers’s own ownership resolution,project.rs, which silently drops an unresolvable subscription rather than diagnosing it). Runs at the project-wide phase (needsunit_tables+unit_consumestogether, unlike the local, per- contextcheck_service_protocols), alongside the other cross-unit checks that need the same two maps. - phase_
file_ index - Phase 7: build each production unit’s file-declaration index (which file in the unit declares which name), for cross-file lookups in the back half.
- phase_
function_ type_ boundaries - v0.20a: apply the function-type boundary confinement to every serialisable
or boundary-crossing position in a file’s items: record fields and sum
payloads (types can cross contexts and persist), service/agent handler
signatures (the Workers wire), capability operation signatures (kept out
in v0.20a — see ADR 0030), agent state fields, and agent keys. Free
fnsignatures are deliberately NOT walked — they are the non-boundary home of function types. - phase_
group - Phase 3: group the parsed units by qualified name (production units, unit
tests, and integration suites tracked separately), run the per-directory
and path/name consistency checks, enforce the reserved
bynknamespace and the adapterbindingrules, resolve each adapter’s binding module, and fold the adapters’ pinned npm dependencies. Pushes diagnostics intoerrorsand returns the productiongroups/kinds, thetest/integrationgroups, the resolvedadapter_bindings, and the collectednpm_deps. - phase_
locale_ bundle_ ambiguity - Locale capability track, slice 2 (#882): a context whose direct
usesreaches two or more message-bundle commons has no principled single answer for whatLocale.current()should negotiate against — but this is only worth diagnosing when the context actuallyconsumes bynk { Locale }at all; a context with 2+ bundles that never touchesLocalehas nothing ambiguous to resolve. - phase_
messages_ bundles - message-bundles slice 1 (#859): messages-block legality,
@referencecardinality, within-block duplicate codes, and theuses bynk.localedependency. Runs here (not inphase_group) because it needsunit_uses, resolved just above. - phase_
parse - Phase 2: parse every discovered file into a
ParsedFile, recording each file’s source text intosnapshotsand any parse errors intoerrors. Then inject the first-party units the project consumes or uses (inject_firstparty). Returns the parsed units, the registry entries injected, and (#1710) each unit’sBrokenDeclNames; signals a pipeline bail viaErr(())when parsing produced errors and yielded no units at all. - phase_
platform_ lock - v0.19 (decisions 0017/0024): enforce the platform lock per deployment
unit — each context under
--target workers, the whole program underbundle(co-location shares the lock). - phase_
private_ in_ public - #2618 (decision C): a public declaration may not name a
privatetype of its own unit in its signature, since a unit thatusesit could neither name nor build a value of that type. Checked positions: a publicfn’s parameter and return types (a method’s too, unless its type is itself private, when the method is out of an importer’s reach with it), a public type’s record fields and variant payloads, a public constant’s type annotation, and a context’sexportslist. Each isbynk.visibility.private_in_public. - phase_
resolve_ consumes - Phase 5b: resolve each unit’s
consumesclauses (target exists, is a context or adapter, not self-referential, obeys the adapter selection rules), and for the bracedconsumes U { Cap, … }form validate and record the flattened capabilities. Returns unit → consumed targets and unit → flattened-cap → owning unit; diagnostics go intoerrorsand clause-position references intorefs. - phase_
resolve_ derived - S4a (#1966): resolve each derived capability (
capability Sessions = Kv) against the capabilities its context flattens in withconsumes U { Kv }, and record it. A valid one enters the unit’s capability table with its base’s operations, so every later check treats it as an ordinary capability; its provision is implied (the base’s platform provider, bound to the instance’s own Worker binding). Runs aftercrate::symbols::record_flattened_caps. - phase_
resolve_ uses - phase_
secrets_ computed_ name - v0.173 (ADR 0196 D1), P5.5 (
design/tracks/semantics-in-the-checker.md§6, §9): warn where abynk.Secretsread names its secret with a computed expression. Non-failing — the program is correct,bynk deploysimply cannot see the name — walked per file rather than per unit, since a mergedUnitTablehas thrown away which file a call site lives in andErrorSink::extend_forattributes a diagnostic to a path. - phase_
symbol_ tables - Phase 4: build each production unit’s combined symbol table from its files,
pushing any table-construction errors into
errors. - phase_
tables_ uses_ consts - Phases 4, 5 and 5a: build the unit tables, resolve each unit’s
uses, then resolve a constant named by a literal-only annotation argument to the literal it denotes (#3445,crate::annotation_consts). The last rewritesparsedand the tables built from it, ahead of every reader of annotation arguments. - phase_
topology - The project-wide topology checks, in the order their diagnostics appear:
#1822 (on Workers, a required local capability needs a provider), #3328 (one
service per email address across the whole project, on every target), #3644 (one
consuming context per queue) and
#2306 (on Workers, a WebSocket
on openand the agent it transfers to share a file). One call for the build and the editor path, which both run them. - phase_
unprovided_ capabilities - The shared body of the Workers and bundle-composition checks: each
context’s required local capability (a
givenon a service or agent handler, or on a provider) that has no provider, once per capability, at its firstgiven. - phase_
uses_ name_ conflicts - Phase 6: for each unit, detect when two
uses-imported commons declare the same (non-shadowed) type or function name — an unrenamable conflict at the use site. Diagnostics go intoerrors. - phase_
validate_ capability_ exports - Phase 6b’: validate each context/adapter’s
exports capability { … }clauses (v0.15 §4.1) — every name must be a capability the unit declares and provides, with no duplicate exports. Diagnostics go intoerrorsand export references intorefs. - phase_
validate_ providers - Phase 6c: validate that every (non-external) provider matches its capability
exactly — each capability op has a provider op, and every provider op has a
matching capability op with the same parameter and return types. Diagnostics
go into
errors. - phase_
validate_ type_ exports - Phase 6b: validate each context/adapter’s
exports opaque/transparent { … }clauses — every name must be a locally-declared type, with no duplicates within a clause or conflicting visibilities across clauses. Returns unit → (type → visibility); diagnostics go intoerrorsand export references intorefs. - phase_
workers_ provider_ agent_ cross_ context - #2355 follow-up: on the Workers target, a context may not require a
capability whose provider, in another context, constructs that context’s
agents. The consumer’s composition root builds the provider in-process and
hands it the consumer’s own
env, which binds only the consumer’s Durable Object namespaces:tscrejects the build, and strip-onlybynk devquietly falls back to agent state held in the isolate. The capability can be reached through anygiventhe consumer’s compose instantiates — a service or agent handler’s, or a local provider’s, transitively — so the walk iscollect_given_closure’s, reported once per provider at the firstgiventhat reaches it. On the bundle target the whole program shares one process and the agent factory takes only the key, so the check is Workers-only, likephase_workers_unprovided_capabilities. - phase_
workers_ unprovided_ capabilities - #1822: on the Workers target, a capability a context declares and requires
(
given, on a service or agent handler or a provider) needs a provider in that context. A Worker’s composition root builds every capability its handlers are given, so one with no provider leftcomposepassing{}where the capability was required (TS2345): the bundle built and the Workers build didn’t. On the bundle target the host may supply it through__makeSurface(deps), so the check is Workers-only, likephase_secrets_computed_name. A capability from another unit (flattened or qualified) is that unit’s to provide, andexports capabilityalready requires its provider (bynk.exports.capability_not_provided). - phase_
workers_ ws_ open_ key - #2959: on the Workers target, the edge (
compose.ts) addresses the Durable Object hosting a WebSocket connection before theon openbody runs, so the key of the body’s connection transfer must be something it can evaluate on its own: a route parameter, a constant of the context (its own, or a public one of a commons ituses, #2967) or a literal (crate::websocket::classify_open_key). Any other key — alet-bound local, a field access, a call — used to be emitted as a namecompose.tsdoes not bind (atscfailure) or replaced by the first route parameter (the upgrade silently reached a different instance than the one the body addressed). On the bundle target the open is an ordinary surface method that evaluates any key, so the check is Workers-only, likephase_workers_ws_open_split. - phase_
workers_ ws_ open_ split - #2306: on the Workers target, a
from websocketservice’son openis hosted inside the Durable Object of the agent it transfers the connection to, and that method is emitted from the file the service and agent share. A context split across several files is emitted one file at a time, so a transfer into an agent declared in a different file than the service was routed to the agent’s Durable Object (compose.tsforwards the upgrade) but never hosted there: the upgrade returned404. Reject it at compile time instead. On the bundle target the open is an ordinary surface method and the layout works, so the check is Workers-only, likephase_workers_unprovided_capabilities. - provider_
constructs_ agent - #2355: whether a bodied provider’s ops construct one of its context’s own
agents (
is_agent). Such a provider takes adepseven with nogiven: its agent calls handthis.depsto the agent’s methods, and on Workers the agent factory reads the Worker’senvfrom it. Syntactic, so the provider class, every composer that builds it, andphase_workers_provider_agent_cross_contextagree on the answer; a local shadowing an agent’s name only costs an unuseddeps. It matches the construction shapeAgent(key), the one the emitter’sagent_constructlowers; a new way to reach an agent must be added here too. - provider_
cross_ caps - The cross-context capabilities a context’s providers reference in their
own
given, asdeps_key -> consumed_context(1B.1b,ComposePlan). The Workerscompose.tsinstantiates these at the top level beside the handlers’ (handler_cross_caps); the Bundle root reaches them only through a provider’s own recursive instantiation. - resolve_
consume_ prefix - v0.15’s cross-context capability resolution, relocated alongside
phase_platform_lock(P5.3): resolve agiven/handler capability prefix (ctx.Cap) against a context’s ownconsumes/alias tables. Pure — no codegen, nobynk-emitdependency of its own — so unlikecollect_given_closurethis one is shared rather than duplicated:bynk-emit/src/project.rs’s own copy of this function (and ofhandler_cross_caps) was deleted in review (#1133) and every one of its call sites repointed here —bynk-emitalready depends onbynk-check, so there was no dependency direction to route around, and keeping two copies only bought two things that could drift out of sync for no reason. - shadowed_
imports - #1925: the
uses-imported functions and assets that unitname’s own declarations of another kind shadow, by name. A local declaration wins, as in the emitted module, so both compositions leave these out (compose_unit_symbols,crate::assets::compose_unit_assets); the resolver and checker report a reference the local declaration cannot answer asbynk.uses.name_conflict(ResolvedCommons::shadowed_import_error). A same-kind shadow (a local function over an imported one) is ordinary shadowing and is not listed. The firstusestarget to declare a name decides, as in the compositions. - shadowed_
imports_ in shadowed_importsover a unit’s own table and itsusestargets’ tables, inusesorder — for a caller holding tables rather thanUnitInfos (a suite’s view of its target,crate::test_suites).- tree_
root_ for - The
includetree that discoveredpf, found by matching its absolute path against each tree’s root — nottrees[0]unconditionally, since R3.9 (#1113) lets a file live under anyincludetree, not just the first. Falls back totrees[0]for apfwith noabs_path(unreachable for a real adapter: only synthetic units, which never declarebinding, go without one) or if it somehow matches none. The longest matching root wins, in case oneincludetree is nested inside another. - unit_
table_ uses_ emit - Events track, slice 0 (spine #936): does any handler or provider op in
this unit emit? Reads the checker’s own resolved
Calleefor every expression in every service handler, agent handler and provider op, not the receiver’s spelling, so a local type that shadowsEventsdoes not count (1204_events_emit_shadowed_by_local_type). - uses_
first_ order - Phase 5: resolve each unit’s
usesclauses, checking the target exists, is a commons, and is not self-referential. Returns unit → deduplicated list of used commons; diagnostics go intoerrors. #1702 review: the order to check units in — everyusestarget before the units that use it, ties broken by name, so the order stays a function of the source alone (deterministic_diagnostic_order_behaviour). A generic function’s compared type parameters (#1688) are computed while its own unit is checked, in that unit’s environment, so an importer must come after. Units on ausescycle (already an error) are appended in name order.
Type Aliases§
- Broken
Decl Names - #1710: for each unit with a file the strict parse rejected, the names of
the declarations recovery skipped there. References to them, from any file
that can see the unit, are known names, not unknown ones (#1663’s Decision
B); see
crate::check_pipeline::prepare_unit_check_ctx. - Injected
Units - The first-party units a project injected, as registry entries in ascending
firstparty::Unit::id_blockorder. A unit whose source failed to parse is still listed, so its binding is still supplied. Its ownuses/consumescannot be read, though, so the units only it reaches are not injected: a malformed first-party source (whichevery_first_party_source_parsesrejects in CI) reports its parse error and may add unresolved-name errors for those. - Unit
Callees - Each unit’s resolved calls, by expression: the slice of the checker’s
checker::Calleemap the composition-root predicate reads. The driver keeps one per unit for emission;crate::analysisgathers the same slice from the files it checks, sobynk checkand the editor decide whether a bundle has a composition root from the same facts.