Skip to content
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

Robmarti12/convert compile to static #17

Merged
merged 6 commits into from
Aug 18, 2023
Merged

Robmarti12/convert compile to static #17

merged 6 commits into from
Aug 18, 2023

Conversation

ThomasHambach
Copy link
Owner

No description provided.

sweep-ai bot and others added 6 commits August 7, 2023 03:18
Removed the ErrorListener instances in the Expression class and simplified the error handling process. These changes reduced redundancy and improved the readability of the code. Now, instead of using two separate ErrorListener instances to catch lexer and parser errors, we just throw an error in case parsing fails. Errors are now stored directly in an array in the Expression instance, simplifying access to them.
Refactored Expression.test.ts and JsonSerialize.test.ts to utilize HasErrors() function for clearer, more accurate error handling. Additionally, cleaned up unnecessary variable declarations in JsonSerialize.test.ts for better readability. These changes improve test robustness and clarity in code.
@ThomasHambach ThomasHambach merged commit e1f3cbe into ThomasHambach:convert-compile-to-static Aug 18, 2023
0 of 2 checks passed
ThomasHambach added a commit that referenced this pull request Aug 19, 2023
* Robmarti12/convert compile to static (#17)

* Refactor error handling in Expression class

Removed the ErrorListener instances in the Expression class and simplified the error handling process. These changes reduced redundancy and improved the readability of the code. Now, instead of using two separate ErrorListener instances to catch lexer and parser errors, we just throw an error in case parsing fails. Errors are now stored directly in an array in the Expression instance, simplifying access to them.

* Refactor tests for better error handling and clean up

Refactored Expression.test.ts and JsonSerialize.test.ts to utilize HasErrors() function for clearer, more accurate error handling. Additionally, cleaned up unnecessary variable declarations in JsonSerialize.test.ts for better readability. These changes improve test robustness and clarity in code.

---------
Co-authored-by: robmarti12 <robin.martin@cmcitymedia.de>
Co-authored-by: Thomas Hambach <thambach@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants