Operator

public struct Operator : Declaration, Hashable, Codable
extension Operator: ExpressibleBySyntax

An operator declaration.

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

    See more

    Declaration

    Swift

    public enum Kind : String, Hashable, Codable
  • Undocumented

    Declaration

    Swift

    public let context: String?
  • The declaration attributes.

    Declaration

    Swift

    public let attributes: [Attribute]
  • The declaration modifiers.

    Declaration

    Swift

    public let modifiers: [Modifier]
  • The declaration keyword ("operator").

    Declaration

    Swift

    public let keyword: String
  • The operator name.

    Declaration

    Swift

    public let name: String
  • The kind of operator (prefix, infix, or postfix).

    Declaration

    Swift

    public var kind: Kind { get }

ExpressibleBySyntax

  • Creates an instance initialized with the given syntax node.

    Declaration

    Swift

    public init(_ node: OperatorDeclSyntax)