( source: string | Source, options?: ParseOptions, )
| 173 | * ``` |
| 174 | */ |
| 175 | export function parse( |
| 176 | source: string | Source, |
| 177 | options?: ParseOptions, |
| 178 | ): DocumentNode { |
| 179 | return shouldTrace(parseChannel) |
| 180 | ? parseChannel.traceSync(() => parseImpl(source, options), { source }) |
| 181 | : parseImpl(source, options); |
| 182 | } |
| 183 | |
| 184 | function parseImpl( |
| 185 | source: string | Source, |