(stmt []byte)
| 862 | } |
| 863 | |
| 864 | func validateIfStmt(stmt []byte) error { |
| 865 | exprStr := fmt.Sprintf("func () { if %s {} }", stmt) |
| 866 | _, err := goparser.ParseExpr(exprStr) |
| 867 | return err |
| 868 | } |
| 869 | |
| 870 | func validateSwitchStmt(stmt []byte) error { |
| 871 | exprStr := fmt.Sprintf("func () { switch %s {} }", stmt) |
no outgoing calls
no test coverage detected
searching dependent graphs…