DoExprSyntax
io.joern.swiftsrc2cpg.parser.SwiftNodeSyntax.DoExprSyntax
case class DoExprSyntax(json: Value) extends ExprSyntax, WithCodeBlock
Documentation
A do
block with one of more optional catch
clauses.
This represents do blocks in both expression and statement postitions (where the latter are wrapped in ExpressionStmtSyntax).
Examples
do {
let x = 0
print(x)
}
let x = do {
try someThrowingFn()
} catch {
defaultValue
}
Children
doKeyword
:do
body
:CodeBlockSyntax
catchClauses
:CatchClauseListSyntax
Nowhere contained in
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithCodeBlocktrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass Any
Members list
In this article