We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
An operator declaration.
public struct Operator: Declaration, Hashable, Codable
Codable, Declaration, ExpressibleBySyntax, Hashable
Codable
Declaration
ExpressibleBySyntax
Hashable
init(_:)
Creates an instance initialized with the given syntax node.
public init(_ node: OperatorDeclSyntax)
attributes
The declaration attributes.
let attributes: [Attribute]
modifiers
The declaration modifiers.
let modifiers: [Modifier]
keyword
The declaration keyword ("operator").
"operator"
let keyword: String
name
The operator name.
let name: String
kind
The kind of operator (prefix, infix, or postfix).
var kind: Kind