1
0
mirror of https://github.com/securego/gosec.git synced 2025-11-23 22:15:04 +02:00

Adding some inline documentation for godoc

This commit is contained in:
Tim Kelsey
2016-08-12 14:17:28 +01:00
parent 37205e9afa
commit 223cded656
5 changed files with 53 additions and 12 deletions

View File

@@ -53,6 +53,9 @@ func resolveCallExpr(n *ast.CallExpr, c *Context) bool {
return false
}
// TryResolve will attempt, given a subtree starting at some ATS node, to resolve
// all values contained within to a known constant. It is used to check for any
// unkown values in compound expressions.
func TryResolve(n ast.Node, c *Context) bool {
switch node := n.(type) {
case *ast.BasicLit: