EntryReach
On this page

EntryReach

Interface in Reflection

What a set of entry points transitively reaches, as returned by reachFrom.

import type { EntryReach } from 'typeshade'

The signature, the description and the examples come from the compiler's own source at commit 26de7be8.

Syntax

interface EntryReach {
readonly fns: Set<string>;
readonly bindings: Set<string>;
readonly refs: RefSet;
}

Instance properties

fnsread only Set<string>

Names of every function reachable through calls from the entries, the entries themselves included.

bindingsread only Set<string>

Names of the module’s bindings that a reachable function reads or writes, plus the bindings a called intrinsic reads by name in its emitted code. A local variable that shares a binding’s name can only add a binding to this set; it never removes one.

refsread only RefSet

The underlying reference sets the walk collected: calls (function names), vars (variable and binding names) and structs (struct names), for a caller that also needs the struct names.

See also

Source

src/core/passes/stage-bindings.ts, line 31, at commit 26de7be8

Edit this page Report a problem