MCPcopy Index your code
hub / github.com/Shopify/go-lua / isNumeral

Method isNumeral

code.go:296–296  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

294func (f *function) Instruction(e exprDesc) *instruction { return &f.f.code[e.info] }
295func (e exprDesc) hasJumps() bool { return e.t != e.f }
296func (e exprDesc) isNumeral() bool { return e.kind == kindNumber && e.t == noJump && e.f == noJump }
297func (e exprDesc) isVariable() bool { return kindLocal <= e.kind && e.kind <= kindIndexed }
298func (e exprDesc) hasMultipleReturns() bool { return e.kind == kindCall || e.kind == kindVarArg }
299

Callers 3

foldConstantsFunction · 0.80
PrefixMethod · 0.80
InfixMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected