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

Method If

gapil/compiler/scope.go:95–97  ·  view source on GitHub ↗

If overrides codegen.Builder.If to ensure all the scopes are popped after onTrue reaches its last instruction.

(cond *codegen.Value, onTrue func(s *S))

Source from the content-addressed store, hash-verified

93// If overrides codegen.Builder.If to ensure all the scopes are popped after
94// onTrue reaches its last instruction.
95func (s *S) If(cond *codegen.Value, onTrue func(s *S)) {
96 s.Builder.If(cond, func() { s.enter(onTrue) })
97}
98
99// IfElse overrides codegen.Builder.IfElse to ensure all the scopes are
100// popped after onTrue and onFalse reach their last instruction.

Callers 15

assertMethod · 0.45
branchMethod · 0.45
sliceAssignMethod · 0.45
buildMapMethod · 0.45
IterateMapMethod · 0.45
binaryOpMethod · 0.45
unpackAnyMethod · 0.45
buildMethod · 0.45
BuildMethod · 0.45
encodeFieldMethod · 0.45
encodeValueMethod · 0.45
buildEncodeTypeFuncsMethod · 0.45

Calls 1

enterMethod · 0.95

Tested by

no test coverage detected