(id: string, source: string, lang: Lang)
| 133 | } |
| 134 | |
| 135 | const parse = (id: string, source: string, lang: Lang) => |
| 136 | parseCode(id, source, { |
| 137 | lang, |
| 138 | sourceType: /\.c[jt]s$/.test(id) ? "commonjs" : "module", |
| 139 | preserveParens: false |
| 140 | }) |
| 141 | |
| 142 | // a module's tree, read in the language its id names |
| 143 | export const parseModule = (id: string, source: string): ParseResult => { |
no test coverage detected