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 Aug 2, 2020 · 5 revisions

Operator

An operator declaration.

public struct Operator:​ Declaration, Hashable, Codable

Inheritance

Codable, Declaration, ExpressibleBySyntax, Hashable

Initializers

init(_:​)

Creates an instance initialized with the given syntax node.

public init(_ node:​ OperatorDeclSyntax)

Properties

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
Clone this wiki locally