This repository was archived by the owner on Oct 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Operator_Kind
mattt edited this page Feb 7, 2020
·
6 revisions
The kind of operator (prefix, infix, or postfix).
public enum KindCodable, Hashable, String
A unary operator that comes after its operand.
case postfixA unary operator that comes before its operand.
case prefixAn binary operator that comes between its operands.
case infixinit?(_ modifiers: [Modifier])Creates an instance initialized with the given syntax node.
public init(_ node: OperatorDeclSyntax)The operator name.
let name: StringThe declaration modifiers.
let modifiers: [Modifier]let context: String?The declaration attributes.
let attributes: [Attribute]The declaration keyword ("operator").
let keyword: StringThe kind of operator (prefix, infix, or postfix).
var kind: Kindstatic func isValidIdentifier(_ string: String) -> BoolGenerated at 2020-08-02T12:14:07+0000 using swift-doc 1.0.0-beta.3.
Types
- AssociatedType
- Attribute
- Attribute.Argument
- Class
- ConditionalCompilationBlock
- ConditionalCompilationBlock.Branch
- DeclarationCollector
- Deinitializer
- Enumeration
- Enumeration.Case
- Extension
- Function
- Function.Parameter
- Function.Signature
- GenericParameter
- GenericRequirement
- GenericRequirement.Relation
- Import
- Initializer
- Modifier
- Operator
- Operator.Kind
- PrecedenceGroup
- PrecedenceGroup.Associativity
- PrecedenceGroup.Relation
- Protocol
- Structure
- Subscript
- Typealias
- Variable
- Variable.Accessor
- Variable.Accessor.Kind