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

Function getExprName

compile.go:1757–1769  ·  view source on GitHub ↗

}}}

(context *funcContext, expr ast.Expr)

Source from the content-addressed store, hash-verified

1755} // }}}
1756
1757func getExprName(context *funcContext, expr ast.Expr) string { // {{{
1758 switch ex := expr.(type) {
1759 case *ast.IdentExpr:
1760 return ex.Value
1761 case *ast.AttrGetExpr:
1762 switch kex := ex.Key.(type) {
1763 case *ast.StringExpr:
1764 return kex.Value
1765 }
1766 return "?"
1767 }
1768 return "?"
1769} // }}}
1770
1771func patchCode(context *funcContext) { // {{{
1772 maxreg := 1

Callers 1

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…