This project has moved. For the latest updates, please go here.
2

Closed

Ternary conditional operator and ?? operators aren't supported

description

Based on following documentation:
http://msdn.microsoft.com/en-us/library/ms173224.aspx
http://msdn.microsoft.com/en-us/library/ty67wk28.aspx

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

comments

elishalom wrote Jul 8, 2014 at 9:39 AM

That's true.

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

jirkapok wrote Jul 11, 2014 at 9: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 2: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 8:50 PM

sure, going to test tomorrow.