InitializerDeclSyntax
io.joern.swiftsrc2cpg.parser.SwiftNodeSyntax.InitializerDeclSyntax
case class InitializerDeclSyntax(json: Value) extends DeclSyntax, WithAttributes, WithGenericParameters, WithModifiers
Documentation
An init
declaration
An example of an initializer is
init(someParameter: Int) {
}
The body is optional because this node also represents initializer requirements inside protocols.
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
initKeyword
:init
optionalMark
: (?
|!
)?genericParameterClause
:GenericParameterClauseSyntax
?signature
:FunctionSignatureSyntax
genericWhereClause
:GenericWhereClauseSyntax
?body
:CodeBlockSyntax
?
Nowhere contained in
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithGenericParameterstrait WithAttributestrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass Any
Members list
In this article