aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/java-tree.def
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/java-tree.def')
-rw-r--r--gcc/java/java-tree.def6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/java/java-tree.def b/gcc/java/java-tree.def
index bdaf300..5bd63c4 100644
--- a/gcc/java/java-tree.def
+++ b/gcc/java/java-tree.def
@@ -64,3 +64,9 @@ DEFTREECODE (SYNCHRONIZED_EXPR, "synchronized", 'e', 2)
/* Throw statement.
Operand 0 is the throw expresion. */
DEFTREECODE (THROW_EXPR, "throw", '1', 1)
+
+/* Conditional operator.
+ Operand 0 is the condition expression
+ Operand 1 is the then-value
+ Operand 2 is the else-value. */
+DEFTREECODE (CONDITIONAL_EXPR, "?:", 'e', 3)