MCPcopy Create free account
hub / github.com/google/gapid / If

Method If

core/codegen/builder.go:165–167  ·  view source on GitHub ↗

If builds an if statement.

(cond *Value, onTrue func())

Source from the content-addressed store, hash-verified

163
164// If builds an if statement.
165func (b *Builder) If(cond *Value, onTrue func()) {
166 b.IfElse(cond, onTrue, nil)
167}
168
169// IfElse builds an if-else statement.
170func (b *Builder) IfElse(cond *Value, onTrue, onFalse func()) {

Callers

nothing calls this directly

Calls 1

IfElseMethod · 0.95

Tested by

no test coverage detected