We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
md5: 6f8e53a86a4d051eb4c976739f568e96
Issue Description:
It appears that TernarySyntax is not being parsed correctly. For instance, the following statement is parsed as a SequenceExprSyntax.
helper_func() == p1 ? true : false
However, the following is parsed correctly as a TernarySyntax.
p1 ? true : false
The text was updated successfully, but these errors were encountered:
@swift-ci create
Sorry, something went wrong.
a == b ? c : d is currently parsed like
a == b ? c : d
(sequence_expr (identifier_expr "a") (binary_operator "==") (ternary_operator_expr (identifier_expr "b") (identifier_expr "c") (identifier_expr "d")))
Since Parser doesn't know the precedence of the operators, we can't correctly construct nested binary/ternary operator expressions.
So it behaves correctly as implemented.
Merge pull request apple#408 from allevato/closure-attrs
2ce90d3
Ensure there is a break between closure attributes and a capture list.
No branches or pull requests
Additional Detail from JIRA
md5: 6f8e53a86a4d051eb4c976739f568e96
Issue Description:
It appears that TernarySyntax is not being parsed correctly. For instance, the following statement is parsed as a SequenceExprSyntax.
However, the following is parsed correctly as a TernarySyntax.
This problem is observed with SwiftSyntax 5.2
The text was updated successfully, but these errors were encountered: