jsonConvertStatements converts a collection of statements in JSON form to their output form.
(stmts []statement)
| 128 | |
| 129 | // jsonConvertStatements converts a collection of statements in JSON form to their output form. |
| 130 | func jsonConvertStatements(stmts []statement) ([]Statement, error) { |
| 131 | newStmts := make([]Statement, len(stmts)) |
| 132 | for i, stmt := range stmts { |
| 133 | var err error |
| 134 | newStmts[i], err = jsonConvertStatement(stmt) |
| 135 | if err != nil { |
| 136 | return nil, err |
| 137 | } |
| 138 | } |
| 139 | return newStmts, nil |
| 140 | } |
no test coverage detected