mirror of
https://github.com/securego/gosec.git
synced 2025-11-27 22:28:20 +02:00
Handle the ValueSpec when trying to resolve an AST tree node
Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
This commit is contained in:
committed by
Cosmin Cojocar
parent
c1970ff5c9
commit
f413f1436d
@@ -73,7 +73,7 @@ func resolveCallExpr(n *ast.CallExpr, c *Context) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// TryResolve will attempt, given a subtree starting at some ATS node, to resolve
|
||||
// TryResolve will attempt, given a subtree starting at some AST node, to resolve
|
||||
// all values contained within to a known constant. It is used to check for any
|
||||
// unknown values in compound expressions.
|
||||
func TryResolve(n ast.Node, c *Context) bool {
|
||||
|
||||
Reference in New Issue
Block a user