SwiftSemantics Documentation Beta

Protocol Declaration

public protocol Declaration

A Swift declaration.

%3 Declaration Declaration AssociatedType AssociatedType AssociatedType->Declaration Operator Operator Operator->Declaration Variable Variable Variable->Declaration Subscript Subscript Subscript->Declaration Structure Structure Structure->Declaration Enumeration Enumeration Enumeration->Declaration Extension Extension Extension->Declaration Import Import Import->Declaration Initializer Initializer Initializer->Declaration Protocol Protocol Protocol->Declaration Typealias Typealias Typealias->Declaration ConditionalCompilationBlock ConditionalCompilationBlock ConditionalCompilationBlock->Declaration PrecedenceGroup PrecedenceGroup PrecedenceGroup->Declaration Deinitializer Deinitializer Deinitializer->Declaration Function Function Function->Declaration Enumeration.Case Enumeration.Case Enumeration.Case->Declaration Class Class Class->Declaration

Types Conforming to Declaration

AssociatedType

An associated type declaration.

Class

A class declaration.

ConditionalCompilationBlock

A conditional compilation block declaration.

Deinitializer

A class deinitializer declaration.

Enumeration

An enumeration declaration.

Enumeration.Case

An enumeration case.

Extension

An extension declaration.

Function

A function declaration.

Import

An import declaration.

Initializer

An initializer declaration.

Operator

An operator declaration.

PrecedenceGroup

An operator precedence group declaration.

Protocol

A protocol declaration.

Structure

A structure declaration.

Subscript

A subscript declaration.

Typealias

A type alias declaration.

Variable

A declaration for a property or a top-level variable or constant.