TernaryExprSyntax
io.joern.swiftsrc2cpg.parser.SwiftNodeSyntax.TernaryExprSyntax
case class TernaryExprSyntax(json: Value) extends ExprSyntax
Documentation
The ternary operator with operator precedences resolved.
Examples
a ? 1 : 0
- Note: This node is only generated after operators are folded using the
SwiftOperators
library. Beforehand, the parser does not know the precedences of operators and thus represents the?
and:
by anUnresolvedTernaryExprSyntax
.
Children
condition
:ExprSyntax
questionMark
:?
thenExpression
:ExprSyntax
colon
::
elseExpression
:ExprSyntax
Nowhere contained in
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass Any
Members list
In this article