This project has moved and is read-only. For the latest updates, please go here.


Ternary conditional operator and ?? operators aren't supported


Based on following documentation:

The ?: and ?? operators arent counted as conditional statements.
Closed Aug 27, 2015 at 5:33 PM by jirkapok
Implemented in version 0.7.0


elishalom wrote Jul 8, 2014 at 10:39 AM

That's true.

These are conditional statements that influence the complexity. Both are not supported yet.

jirkapok wrote Jul 11, 2014 at 10:41 PM

I didn't have a look at commits before i created this issue. Ternary operator support was added in commit 29d3aab464fa. But searched for coalescing operator in branch visitors and didn't find. But it should be somehow supported by the Nrefactory, because there is class for the operator.

elishalom wrote Jul 26, 2015 at 3:23 PM

Both are now supposed to be supported. Can you tell if version 0.7.0 behaves well with those?

jirkapok wrote Jul 26, 2015 at 9:50 PM

sure, going to test tomorrow.