-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
symbolWithContextSync causing Maximum call stack size exceeded #117
Comments
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: