@@ -65,7 +65,7 @@ export class Scope {
65
65
* @param {import('estree').Identifier } node
66
66
* @param {import('#compiler').Binding['kind'] } kind
67
67
* @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
69
69
* @returns {import('#compiler').Binding }
70
70
*/
71
71
declare ( node , kind , declaration_kind , initial = null ) {
@@ -523,7 +523,7 @@ export function create_scopes(ast, root, allow_reactive_declarations, parent) {
523
523
const is_keyed =
524
524
node . key &&
525
525
( 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 ) ;
527
527
}
528
528
if ( node . key ) visit ( node . key , { scope } ) ;
529
529
@@ -680,7 +680,7 @@ export function set_scope(scopes) {
680
680
681
681
/**
682
682
* 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
684
684
* @param {Scope } scope
685
685
* @returns {Runes[number] | null }
686
686
*/
0 commit comments