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

[c#] identify assignments in JsonAst; add operatorCallNode #5278

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

xavierpinho
Copy link
Contributor

  • Identifies AssignmentExpr within BinaryExpr inside DotNetJsonAst. This is preparatory work for handling assignments whose LHS is a setter property, which no longer means a traditional assignment but rather a setter call.
  • Replaces createCallNodeForOperator by a more general AstNodeBuilder operatorCallNode that is guaranteed to respect the code/line/column primitives.

@xavierpinho xavierpinho added the c# Relates to csharpsrc2cpg label Feb 2, 2025
@xavierpinho xavierpinho merged commit 50465d2 into master Feb 3, 2025
5 checks passed
@xavierpinho xavierpinho deleted the xavierp/c#-identify-assignments+misc-refactor branch February 3, 2025 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c# Relates to csharpsrc2cpg
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants