ClassDeclSyntax
io.joern.swiftsrc2cpg.parser.SwiftNodeSyntax.ClassDeclSyntax
case class ClassDeclSyntax(json: Value) extends DeclSyntax, DeclGroup, NamedDecl, WithAttributes, WithGenericParameters, WithModifiers
Documentation
A class
declaration
An example of a class declaration is
class SomeClass {
let someMember: String
init(someMember: String) {
self.someMember = someMember
}
func foo() {
print(someMember)
}
static func bar() -> Int {
return 1
}
}
A class declaration may be declared without any members.
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
classKeyword
:class
name
:<identifier>
genericParameterClause
:GenericParameterClauseSyntax
?inheritanceClause
:InheritanceClauseSyntax
?genericWhereClause
:GenericWhereClauseSyntax
?memberBlock
:MemberBlockSyntax
Nowhere contained in
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithGenericParameterstrait WithAttributestrait NamedDecltrait DeclGrouptrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass Any
Members list
In this article