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

Method ExpressionToAnyRegister

code.go:684–694  ·  view source on GitHub ↗
(e exprDesc)

Source from the content-addressed store, hash-verified

682}
683
684func (f *function) ExpressionToAnyRegister(e exprDesc) exprDesc {
685 if e = f.DischargeVariables(e); e.kind == kindNonRelocatable {
686 if !e.hasJumps() {
687 return e
688 }
689 if e.info >= f.activeVariableCount {
690 return f.expressionToRegister(e, e.info)
691 }
692 }
693 return f.ExpressionToNextRegister(e)
694}
695
696func (f *function) ExpressionToAnyRegisterOrUpValue(e exprDesc) exprDesc {
697 if e.kind != kindUpValue || e.hasJumps() {

Callers 7

ReturnMethod · 0.95
ExpressionToValueMethod · 0.95
StoreVariableMethod · 0.95
SelfMethod · 0.95
PrefixMethod · 0.95

Calls 4

DischargeVariablesMethod · 0.95
expressionToRegisterMethod · 0.95
hasJumpsMethod · 0.80

Tested by

no test coverage detected