( fragment: SvelteNode | null | undefined, source: string, parseScriptFn: ScriptParseFn )
| 20 | } |
| 21 | |
| 22 | function walkFragment( |
| 23 | fragment: SvelteNode | null | undefined, |
| 24 | source: string, |
| 25 | parseScriptFn: ScriptParseFn |
| 26 | ): void { |
| 27 | if (!fragment || !fragment.nodes) { |
| 28 | return |
| 29 | } |
| 30 | for (const node of fragment.nodes) { |
| 31 | walkNode(node, source, parseScriptFn) |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | function extractExpression( |
| 36 | expression: SvelteNode | null | undefined, |