Metakit / @doeixd/metakit/build

judgeNode

function · packages/metakit/src/ops/judge.ts:422

function judgeNode(
  node: Node.Node,
  partialEnv: unknown,
  foreign?: ForeignImplementations,
  rewritePolicy?: ForeignRewritePolicy,
): Verdict.Verdict<Node.Refusal>

Judge a boolean Node against partialEnv: True where it is known to hold, False where it is known not to (false, null, or refused, and then the refusal is its witness), Unknown where the environment or the evaluator leaves it open.