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

Operator_Kind

mattt edited this page Mar 28, 2020 · 6 revisions

Operator.Kind

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

public enum Kind

Inheritance

Codable, Hashable, String

Initializers

init(_:)

Creates an instance initialized with the given syntax node.

public init(_ node: OperatorDeclSyntax)

Properties

name

The operator name.

let name: String

attributes

The declaration attributes.

let attributes: [Attribute]

kind

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

var kind: Kind

keyword

The declaration keyword ("operator").

let keyword: String

modifiers

The declaration modifiers.

let modifiers: [Modifier]