(text /* , options */)
| 38 | } |
| 39 | |
| 40 | function parse(text /* , options */) { |
| 41 | let ast; |
| 42 | try { |
| 43 | ast = parseGraphql(text, parseOptions); |
| 44 | } catch (error) { |
| 45 | throw createParseError(error); |
| 46 | } |
| 47 | |
| 48 | // @ts-expect-error -- expected |
| 49 | ast.comments = parseComments(ast); |
| 50 | return ast; |
| 51 | } |
| 52 | |
| 53 | export const graphql = { |
| 54 | parse, |
nothing calls this directly
no test coverage detected