MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / clone_vars

Method clone_vars

nodedb/src/control/planner/procedural/compiler.rs:268–272  ·  view source on GitHub ↗

Create a snapshot of the current variable bindings. Used for branches (IF/ELSE) that shouldn't leak assignments to siblings.

(&self)

Source from the content-addressed store, hash-verified

266 /// Create a snapshot of the current variable bindings.
267 /// Used for branches (IF/ELSE) that shouldn't leak assignments to siblings.
268 fn clone_vars(&self) -> Self {
269 Self {
270 variables: self.variables.clone(),
271 }
272 }
273}
274
275/// Replace whole-word occurrences of `name` in `sql` with `replacement`.

Callers 2

compile_ifFunction · 0.80
compile_forFunction · 0.80

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected