You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The call to getAllSymbolsSync on line 303 was causing a RangeError in one of my symbol tables. Shouldn't it have localOnly set to true? Unless I misunderstand this use of this function, if we're looking for a symbol tied to a specific context, why would that symbol be in a non-local table anyway?
Yes, using only local symbols sounds reasonable. Did it solve your problem with that flag?
But even if it does, with deeply nested symbols this can always crash. Better would be to implement that as iteration (and exchange the duplicated local method code by a single implementation).
Using local only did solve the problem. Though you're correct, I do need to look into an iteration-based implementation because I do have deeply nested symbols and this is bound to pop up somewhere else.
Mike,
The call to
getAllSymbolsSync
on line 303 was causing a RangeError in one of my symbol tables. Shouldn't it havelocalOnly
set to true? Unless I misunderstand this use of this function, if we're looking for a symbol tied to a specific context, why would that symbol be in a non-local table anyway?antlr4-c3/src/SymbolTable.ts
Line 303 in c0530ed
The text was updated successfully, but these errors were encountered: