ProtocolDeclSyntax
io.joern.swiftsrc2cpg.parser.SwiftNodeSyntax.ProtocolDeclSyntax
case class ProtocolDeclSyntax(json: Value) extends DeclSyntax, DeclGroup, NamedDecl, WithAttributes, WithModifiers
Documentation
A protocol
declaration
An example of a protocol declaration is
protocol Example {
var isValid: Bool { get }
}
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
protocolKeyword
:protocol
name
:<identifier>
primaryAssociatedTypeClause
:PrimaryAssociatedTypeClauseSyntax
?inheritanceClause
:InheritanceClauseSyntax
?genericWhereClause
:GenericWhereClauseSyntax
?memberBlock
:MemberBlockSyntax
Nowhere contained in
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithAttributestrait NamedDecltrait DeclGrouptrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass Any
Members list
In this article