Skip to content

[CSharp] : AST for coalesce expression - #5287

Closed
khemrajrathore wants to merge 1 commit into
joernio:masterfrom
Privado-Inc:csharp/robustness14
Closed

[CSharp] : AST for coalesce expression#5287
khemrajrathore wants to merge 1 commit into
joernio:masterfrom
Privado-Inc:csharp/robustness14

Conversation

@khemrajrathore

Copy link
Copy Markdown
Contributor

No description provided.

val rightAst = astForExpression(createDotNetNodeInfo(coalesceExpression.json(ParserKeys.Right)))

leftAst ++ rightAst
}

@xavierpinho xavierpinho Feb 3, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest placing its arguments inside an <operator> call of some sorts or, alternatively, the ternary leftAst != null ? leftAst : rightAst.

Otherwise we won't have their context.

EDIT: This is duplicate of #4788

@max-leuthaeuser

Copy link
Copy Markdown
Contributor

Closed because its a duplicate of #4788
See the comments there.

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.

4 participants