Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366872 - Ternary Operator
Summary: Ternary Operator
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-15 16:07 EST by Brian Svihovec CLA
Modified: 2017-02-23 14:18 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.