Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366872

Summary: Ternary Operator
Product: z_Archived Reporter: Brian Svihovec <svihovec>
Component: EDTAssignee: Project Inbox <edt.mofmodel-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: jspadea
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Brian Svihovec CLA 2011-12-15 16:07:41 EST
Add support for the Ternary Operator.
Comment 1 Justin Spadea CLA 2012-04-12 14:23:24 EDT
Support for ternary has been released. For AST there is a new type "TernaryExpression" (MOF already had a corresponding type). For the parser we had to put a temporary workaround for a problem with ISA/AS expressions containing nullable types in the ternary's condition. To do it the right way it's going to require massive changes to the parser, AST, bindings, validation, etc, and we'll do that later on. This change is also necessary for other things, and will have core APIs represent nullability more correctly (types are not nullable in EDT, rather it's fields, parameters, etc, that are nullable - the exception being that array type's elements can be nullable).

Test cases have been added to the validation JUnit suite.
Comment 2 Justin Spadea CLA 2012-04-12 14:33:25 EDT
I've opened two bugs for remaining pieces of the ternary support: bug 376647 and bug 376645.