(stmt []byte)
| 856 | } |
| 857 | |
| 858 | func validateForStmt(stmt []byte) error { |
| 859 | exprStr := fmt.Sprintf("func () { for %s {} }", stmt) |
| 860 | _, err := goparser.ParseExpr(exprStr) |
| 861 | return err |
| 862 | } |
| 863 | |
| 864 | func validateIfStmt(stmt []byte) error { |
| 865 | exprStr := fmt.Sprintf("func () { if %s {} }", stmt) |
no outgoing calls
no test coverage detected
searching dependent graphs…