Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Operator

mattt edited this page Jan 22, 2020 · 5 revisions

Operator

An operator declaration.

public struct Operator: Declaration, Hashable, Codable

Inheritance

Declaration, Hashable, Codable, ExpressibleBySyntax


Nested Types


Initializers

init(_:)

Creates an instance initialized with the given syntax node.

public init(_ node: OperatorDeclSyntax)

Properties

context

let context: String?

attributes

The declaration attributes.

let attributes: [Attribute]

modifiers

The declaration modifiers.

let modifiers: [Modifier]

keyword

The declaration keyword ("operator").

let keyword: String

name

The operator name.

let name: String

kind

The kind of operator (prefix, infix, or postfix).

var kind: Kind