Skip to content

Conversation

matter123
Copy link
Collaborator

@matter123 matter123 commented Jun 9, 2019

This PR marks a possible type between parentheses as a type cast, when inside a function definition.

More testing is needed before merging.

Possible issues (untested):

  • return (some_var) some_var would be marked as a type
  • new (some_type) some_type would be marked as a type cast when its not
@matter123
Copy link
Collaborator Author

matter123 commented Jun 11, 2019

The latest commit make return (some_var); and new (some_type); not type caste by preventing the type cast from being followed by a semicolon.

@jeff-hykin
Copy link
Owner

jeff-hykin commented Jun 20, 2019

I updated this with master, feel free to revert it if I missed changes somewhere, I just didn't want to leave this branch behind.

Once we have patterns for the control flow statements, I think this will be ready to merge into master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants