MCPcopy Create free account
hub / github.com/argumentcomputer/ix / depth

Method depth

crates/kernel/src/tc.rs:334–336  ·  view source on GitHub ↗

Current logical binding depth. During the FVar transition, some code pushes legacy de-Bruijn locals into `ctx` while newer code opens binders into `lctx`. Most paths use one or the other, but mixed validation code can observe both; the logical depth is the sum of the two stacks.

(&self)

Source from the content-addressed store, hash-verified

332 /// the other, but mixed validation code can observe both; the logical depth
333 /// is the sum of the two stacks.
334 pub fn depth(&self) -> u64 {
335 (self.ctx.len() + self.lctx.len()) as u64
336 }
337
338 /// WHNF cache key: (expr_hash, ctx_hash).
339 ///

Callers 4

build_minor_at_depthMethod · 0.80
build_direct_ihMethod · 0.80
build_rec_typeMethod · 0.80
find_peer_recursorsMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected