- 
                Notifications
    
You must be signed in to change notification settings  - Fork 31
 
PrecedenceGroup_Associativity
The associativity of an operator, which determines how operators of the same precedence are grouped in the absence of parentheses.
public enum AssociativityConsider the expression a ~ b ~ c:
If the ~ operator is left-associative,
then the expression is interpreted as (a ~ b) ~ c.
If the ~ operator is right-associative,
then the expression is interpreted as a ~ (b ~ c).
For example,
the Swift subtraction operator (-) is left-associative,
such that 5 - 7 - 2 evaluates to -4 ((5 - 7) - 2)
rather than 0 (5 - (7 - 2)).
Codable, Hashable, String
Creates an instance initialized with the given syntax node.
public init?(_ node: PrecedenceGroupAssociativitySyntax)Left-associative (operations are grouped from the left).
case leftRight-associative (operations are grouped from the right).
case rightGenerated 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