(e ast.Expr)
| 884 | } |
| 885 | |
| 886 | func (c *coster) getPath(e ast.Expr) []string { |
| 887 | if e.Kind() == ast.IdentKind { |
| 888 | if v, found := c.peekLocalVar(e.AsIdent()); found { |
| 889 | return v.path[:] |
| 890 | } |
| 891 | } |
| 892 | return c.exprPaths[e.ID()][:] |
| 893 | } |
| 894 | |
| 895 | func (c *coster) addPath(e ast.Expr, path []string) { |
| 896 | c.exprPaths[e.ID()] = path |
no test coverage detected