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

Remove parenthesis cleanup & extra getFullPathExpression() calls #322

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

WyoTwT
Copy link
Contributor

@WyoTwT WyoTwT commented Dec 13, 2023

The total removal of parenthesis removes casting parenthesis and breaks potential watch expressions so this cleanup should be removed.
Instead of calling getFullPathExpression() multiple times, built the fullPath from the topLevelExpression variable.
In the case of Expressions, add encapsulating parenthesis to handle type casting properly.
Update casting tests accordingly.

Add test to catch error when casting a variable to another type
The total removal of parenthesis removes casting
parenthesis and breaks potential watch expressions so
this cleanup should be removed.
Instead of calling getFullPathExpression() multiple times,
build the fullPath from the topLevelExpression variable.
In the case of Expressions, add encapsulating parenthesis
to handle type casting properly.
Update variable casting tests accordingly.
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.

1 participant