How to write codefix that adds an argument to method call? #69185
-
How to write a codefix that will offer to rewrite expression JObject.Parse(json); How are attributes added to expressions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Take a look at what both syntax trees look like. Your fixer will have to transform the tree shape of the first to the second. Hre, this would involve adding an: Argument, that contains an |
Beta Was this translation helpful? Give feedback.
I think I did it. It looks like this: