( ctx: ScriptCompileContext, node: Node, )
| 5 | export const DEFINE_EXPOSE = 'defineExpose' |
| 6 | |
| 7 | export function processDefineExpose( |
| 8 | ctx: ScriptCompileContext, |
| 9 | node: Node, |
| 10 | ): boolean { |
| 11 | if (isCallOf(node, DEFINE_EXPOSE)) { |
| 12 | if (ctx.hasDefineExposeCall) { |
| 13 | ctx.error(`duplicate ${DEFINE_EXPOSE}() call`, node) |
| 14 | } |
| 15 | ctx.hasDefineExposeCall = true |
| 16 | return true |
| 17 | } |
| 18 | return false |
| 19 | } |
no test coverage detected