AsExprSyntax
io.joern.swiftsrc2cpg.parser.SwiftNodeSyntax.AsExprSyntax
case class AsExprSyntax(json: Value) extends ExprSyntax
Documentation
The cast of an expressison to a different type.
Examples
dog as Animal
myPet as? Dog
- Note: This node is only generated after operators are folded using the
SwiftOperatorslibrary. Beforehand, the parser does not know the precedences of operators and thus representsisby anUnresolvedAsExprSyntax.
Children
expression:ExprSyntaxasKeyword:asquestionOrExclamationMark: (?|!)?type:TypeSyntax
Nowhere contained in
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass Any
Members list
In this article