|
|
|
@ -1,9 +1,10 @@
|
|
|
|
import Let from '../../../nodes/Let';
|
|
|
|
/**
|
|
|
|
import { ObjectPattern } from 'estree';
|
|
|
|
* @param {Let[]} lets
|
|
|
|
|
|
|
|
* @returns {import("C:/repos/svelte/svelte/node_modules/.pnpm/@types+estree@1.0.0/node_modules/@types/estree/index").ObjectPattern}
|
|
|
|
export function get_slot_scope(lets: Let[]): ObjectPattern {
|
|
|
|
*/
|
|
|
|
if (lets.length === 0) return null;
|
|
|
|
export function get_slot_scope(lets) {
|
|
|
|
|
|
|
|
if (lets.length === 0)
|
|
|
|
|
|
|
|
return null;
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
type: 'ObjectPattern',
|
|
|
|
type: 'ObjectPattern',
|
|
|
|
properties: lets.map((l) => {
|
|
|
|
properties: lets.map((l) => {
|
|
|
|
@ -19,3 +20,7 @@ export function get_slot_scope(lets: Let[]): ObjectPattern {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|