(
source: string,
node: {
start?: number | null;
end?: number | null;
},
)
| 27 | const wrapAnonymousFunctionBody = (source: string): string => `return await (${source})();`; |
| 28 | |
| 29 | const sliceNode = ( |
| 30 | source: string, |
| 31 | node: { |
| 32 | start?: number | null; |
| 33 | end?: number | null; |
| 34 | }, |
| 35 | ): string => { |
| 36 | const start = node.start ?? 0; |
| 37 | const end = node.end ?? source.length; |
| 38 | return source.slice(start, end); |
| 39 | }; |
| 40 | |
| 41 | const unwrapExpression = (expression: { type: string; expression?: unknown }): unknown => { |
| 42 | switch (expression.type) { |
no outgoing calls
no test coverage detected