Skip to content

Commit 457f34d

Browse files
committed
chore: Fix comment for findExpandoFunction to include variable declarations
Signed-off-by: purelualight <purelualight@outlook.com>
1 parent 5ee9d71 commit 457f34d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/ls/codeactions_fixmissingtypeannotation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ func (f *isolatedDeclarationsFixer) extractAsVariable(span core.TextRange) strin
471471
return ""
472472
}
473473

474-
// findExpandoFunction finds the function declaration that has expando properties assigned to it.
474+
// findExpandoFunction finds the function or variable declaration that has expando properties assigned to it.
475475
// isExpandoPropertyDeclarationForFix matches TS's isExpandoPropertyDeclaration which includes
476476
// PropertyAccessExpression, ElementAccessExpression, and BinaryExpression. The shared
477477
// ast.IsExpandoPropertyDeclaration was narrowed to BinaryExpression only for checker purposes.

0 commit comments

Comments
 (0)