AssociatedTypeDeclSyntax

io.joern.swiftsrc2cpg.parser.SwiftNodeSyntax.AssociatedTypeDeclSyntax

Documentation

An associatedtype declaration

An example of an associatedtype declaration is

associatedtype Item

An associated type declaration may contain a type initializer clause which represents a default type assignment for the associated type.

associatedtype Item = Int

An associated type declaration may be declared with an inheritance clause which specifies the required conformances.

associatedtype Iterator: IteratorProtocol

A generic where clause may be present, here is an example which shows an associated type containing an inheritance clauses and a generic where clause.

associatedtype Iterator: IteratorProtocol where Iterator.Element == Item

Children

  • attributes: AttributeListSyntax
  • modifiers: DeclModifierListSyntax
  • associatedtypeKeyword: associatedtype
  • name: <identifier>
  • inheritanceClause: InheritanceClauseSyntax?
  • initializer: TypeInitializerClauseSyntax?
  • genericWhereClause: GenericWhereClauseSyntax?

Nowhere contained in

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait NamedDecl
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def endColumn: Option[Int]

Attributes

Inherited from:
SwiftNode
def endLine: Option[Int]

Attributes

Inherited from:
SwiftNode
def endOffset: Option[Int]

Attributes

Inherited from:
SwiftNode
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def startColumn: Option[Int]

Attributes

Inherited from:
SwiftNode
def startLine: Option[Int]

Attributes

Inherited from:
SwiftNode
def startOffset: Option[Int]

Attributes

Inherited from:
SwiftNode
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
SwiftNode -> Any
Inherited from:
SwiftNode