}}}
(context *funcContext, current *funcContext, expr *ast.IdentExpr)
| 1743 | } // }}} |
| 1744 | |
| 1745 | func getIdentRefType(context *funcContext, current *funcContext, expr *ast.IdentExpr) expContextType { // {{{ |
| 1746 | if current == nil { |
| 1747 | return ecGlobal |
| 1748 | } else if current.FindLocalVar(expr.Value) > -1 { |
| 1749 | if current == context { |
| 1750 | return ecLocal |
| 1751 | } |
| 1752 | return ecUpvalue |
| 1753 | } |
| 1754 | return getIdentRefType(context, current.Parent, expr) |
| 1755 | } // }}} |
| 1756 | |
| 1757 | func getExprName(context *funcContext, expr ast.Expr) string { // {{{ |
| 1758 | switch ex := expr.(type) { |
no test coverage detected
searching dependent graphs…