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
SwiftOperators
library. Beforehand, the parser does not know the precedences of operators and thus representsis
by anUnresolvedAsExprSyntax
.
Children
expression
:ExprSyntax
asKeyword
:as
questionOrExclamationMark
: (?
|!
)?type
:TypeSyntax
Nowhere contained in
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass Any
Members list
In this article