-
Notifications
You must be signed in to change notification settings - Fork 296
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
[C#] Ast structure for CoalesceExpression
#4788
base: master
Are you sure you want to change the base?
Conversation
val leftAst = astForExpression(createDotNetNodeInfo(coalesceExpression.json(ParserKeys.Left))) | ||
val rightAst = astForExpression(createDotNetNodeInfo(coalesceExpression.json(ParserKeys.Right))) | ||
|
||
leftAst ++ rightAst |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably add a <operator>.coalesce
so that we can embed the correct semantics
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this not also be a callNode
or something similar with the operator you suggested above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AndreiDreyer Yes, something like callAst(callNode, leftAst ++ rightAst)
|} | ||
|""".stripMargin) | ||
|
||
"resolve methodFullName" in { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like AST tests here too, please. Specifically to verify the coalescing operator.
No description provided.