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

Function isVarArgReturnExpr

compile.go:117–125  ·  view source on GitHub ↗
(expr ast.Expr)

Source from the content-addressed store, hash-verified

115}
116
117func isVarArgReturnExpr(expr ast.Expr) bool {
118 switch ex := expr.(type) {
119 case *ast.FuncCallExpr:
120 return !ex.AdjustRet
121 case *ast.Comma3Expr:
122 return !ex.AdjustRet
123 }
124 return false
125}
126
127func lnumberValue(expr ast.Expr) (LNumber, bool) {
128 if ex, ok := expr.(*ast.NumberExpr); ok {

Callers 5

compileAssignStmtRightFunction · 0.85
compileRegAssignmentFunction · 0.85
compileReturnStmtFunction · 0.85
compileTableExprFunction · 0.85
compileFuncCallExprFunction · 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…