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

Method ExpressionToValue

code.go:703–708  ·  view source on GitHub ↗
(e exprDesc)

Source from the content-addressed store, hash-verified

701}
702
703func (f *function) ExpressionToValue(e exprDesc) exprDesc {
704 if e.hasJumps() {
705 return f.ExpressionToAnyRegister(e)
706 }
707 return f.DischargeVariables(e)
708}
709
710func (f *function) expressionToRegisterOrConstant(e exprDesc) (exprDesc, int) {
711 switch e = f.ExpressionToValue(e); e.kind {

Callers 3

PostfixMethod · 0.95
indexMethod · 0.80

Calls 3

DischargeVariablesMethod · 0.95
hasJumpsMethod · 0.80

Tested by

no test coverage detected