MCPcopy Index your code
hub / github.com/yuin/gopher-lua / ecnone

Function ecnone

compile.go:77–87  ·  view source on GitHub ↗
(varargopt int)

Source from the content-addressed store, hash-verified

75}
76
77func ecnone(varargopt int) *expcontext {
78 switch varargopt {
79 case 0:
80 return _ecnone0
81 case -1:
82 return _ecnonem1
83 case -2:
84 return _ecnonem2
85 }
86 return &expcontext{ecNone, regNotDefined, varargopt}
87}
88
89func shouldmove(ec *expcontext, reg int) bool {
90 return ec.ctype == ecLocal && ec.reg != regNotDefined && ec.reg != reg

Callers 10

compileStmtFunction · 0.85
compileAssignStmtLeftFunction · 0.85
compileAssignStmtRightFunction · 0.85
compileReturnStmtFunction · 0.85
compileTableExprFunction · 0.85
compileLogicalOpExprAuxFunction · 0.85
compileFuncCallExprFunction · 0.85
CompileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…