Returns a diagnostic stream object initialized with current position in the input stream, and for the given error code. Any data written to the returned object will be propagated to the current parse's diagnostic object.
| 133 | // returned object will be propagated to the current parse's diagnostic |
| 134 | // object. |
| 135 | spvtools::DiagnosticStream diagnostic(spv_result_t error) { |
| 136 | return spvtools::DiagnosticStream({0, 0, _.instruction_count}, consumer_, |
| 137 | "", error); |
| 138 | } |
| 139 | |
| 140 | // Returns a diagnostic stream object with the default parse error code. |
| 141 | spvtools::DiagnosticStream diagnostic() { |
no test coverage detected