@@ -65,7 +65,7 @@ export class Scope {
6565 * @param {import('estree').Identifier } node
6666 * @param {import('#compiler').Binding['kind'] } kind
6767 * @param {import('#compiler').DeclarationKind } declaration_kind
68- * @param {null | import('estree').Expression | import('estree').FunctionDeclaration | import('estree').ClassDeclaration | import('estree').ImportDeclaration } initial
68+ * @param {null | import('estree').Expression | import('estree').FunctionDeclaration | import('estree').ClassDeclaration | import('estree').ImportDeclaration | import('../types/template.js').EachBlock } initial
6969 * @returns {import('#compiler').Binding }
7070 */
7171 declare ( node , kind , declaration_kind , initial = null ) {
@@ -523,7 +523,7 @@ export function create_scopes(ast, root, allow_reactive_declarations, parent) {
523523 const is_keyed =
524524 node . key &&
525525 ( node . key . type !== 'Identifier' || ! node . index || node . key . name !== node . index ) ;
526- scope . declare ( b . id ( node . index ) , is_keyed ? 'derived' : 'normal' , 'const' ) ;
526+ scope . declare ( b . id ( node . index ) , is_keyed ? 'derived' : 'normal' , 'const' , node ) ;
527527 }
528528 if ( node . key ) visit ( node . key , { scope } ) ;
529529
@@ -680,7 +680,7 @@ export function set_scope(scopes) {
680680
681681/**
682682 * Returns the name of the rune if the given expression is a `CallExpression` using a rune.
683- * @param {import('estree').Node | null | undefined } node
683+ * @param {import('estree').Node | import('../types/template.js').EachBlock | null | undefined } node
684684 * @param {Scope } scope
685685 * @returns {Runes[number] | null }
686686 */
0 commit comments