Skip to content

Commit

Permalink
fix ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Jan 17, 2025
1 parent 725ad5d commit 328ffb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/components/CellInput/scopestate_statefield.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,10 @@ export let explore_variable_usage = (tree, doc, _scopestate, verbose = VERBOSE)
})
} else if (cursor.name === "Assignment" || cursor.name === "KwArg" || cursor.name === "ForBinding" || cursor.name === "CatchClause") {
if (cursor.firstChild()) {
// @ts-ignore
if (cursor.name === "catch") cursor.nextSibling()
// CallExpression means function definition `f(x) = x`, this is handled elsewhere
// @ts-ignore
if (cursor.name !== "CallExpression") {
explore_assignment_lhs(cursor).forEach(register_variable)
// mark this one as finished
Expand Down

0 comments on commit 328ffb9

Please sign in to comment.