This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
PrecedenceGroup
Mattt edited this page Aug 2, 2020
·
5 revisions
An operator precedence group declaration.
public struct PrecedenceGroup: Declaration, Hashable, Codable
Codable
, Declaration
, ExpressibleBySyntax
, Hashable
Creates an instance initialized with the given syntax node.
public init(_ node: PrecedenceGroupDeclSyntax)
The declaration attributes.
let attributes: [Attribute]
The declaration modifiers.
let modifiers: [Modifier]
The declaration keyword ("precedencegroup"
)
let keyword: String
The precedence group name.
let name: String
Whether operators in the precedence group are folded into optional chains.
let assignment: Bool?
For example,
if assignment
is true
,
the expression entry?.count += 1
has the effect of entry?(.count += 1)
;
otherwise, the same expression is interpreted as (entry?.count) += 1
and fails to type-check.
The associativity of operators in the precedence group.
let associativity: Associativity?
The relation of operators to operators in other precedence groups.
let relations: [Relation]
Generated 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