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
Currently, context management in the parser relies on manual push and pop operations for the _context stack. This leads to repetitive code and increases the risk of inconsistencies.
Solution
Create a ScopedContext class that automatically pushes a context on creation and pops it on destruction.
Steps
Implement the ScopedContext class.
Replace existing push/pop calls with ScopedContext.
Example Usage
Description
Currently, context management in the parser relies on manual push and pop operations for the _context stack. This leads to repetitive code and increases the risk of inconsistencies.
Solution
Create a ScopedContext class that automatically pushes a context on creation and pops it on destruction.
Steps
Implement the ScopedContext class.
Replace existing push/pop calls with ScopedContext.
Example Usage
The text was updated successfully, but these errors were encountered: