MCPcopy Create free account
hub / github.com/akyoto/q / executeBool

Method executeBool

src/codegen/executeBool.go:8–23  ·  view source on GitHub ↗
(step *Step, instr *ssa.Bool)

Source from the content-addressed store, hash-verified

6 "git.urbach.dev/cli/q/src/types"
7)
8
9func (f *Function) executeBool(step *Step, instr *ssa.Bool) {
10 destination := step.Register
11
12 if destination == -1 {
13 return
14 }
15
16 number := 0
17
18 if instr.Bool {
19 number = 1
20 }
21
22 isSpilled := f.isSpilled(destination)
23
24 if isSpilled {
25 f.storeSpillNumber(step, types.Bool, number)
26 return

Callers 1

executeMethod · 0.95

Calls 1

AppendMethod · 0.45

Tested by

no test coverage detected