(node *ast.IdentifierNode)
| 247 | } |
| 248 | |
| 249 | func (v *Checker) identifierNode(node *ast.IdentifierNode) Nature { |
| 250 | for i := len(v.varScopes) - 1; i >= 0; i-- { |
| 251 | if v.varScopes[i].name == node.Value { |
| 252 | return v.varScopes[i].nature |
| 253 | } |
| 254 | } |
| 255 | if node.Value == "$env" { |
| 256 | return Nature{} |
| 257 | } |
| 258 | |
| 259 | return v.ident(node, node.Value, v.config.Strict, true) |
| 260 | } |
| 261 | |
| 262 | // ident method returns type of environment variable, builtin or function. |
| 263 | func (v *Checker) ident(node ast.Node, name string, strict, builtins bool) Nature { |
no test coverage detected