Enumerationswift-syntax 600.0.1SwiftSyntaxMacros
PositionInSyntaxNode
Describe the position within a syntax node that can be used to compute source locations.
enum PositionInSyntaxNode
Describe the position within a syntax node that can be used to compute source locations.
enum PositionInSyntaxNode
import SwiftSyntaxMacros
case beforeLeadingTrivia
Refers to the start of the syntax node’s leading trivia, which is the first source location covered by the syntax node.
case afterLeadingTrivia
Refers to the start of the syntax node’s first token, which immediately follows the leading trivia.
case beforeTrailingTrivia
Refers to the end of the syntax node’s last token, right before the trailing trivia.
case afterTrailingTrivia
Refers just past the end of the source text that is covered by the syntax node, after all trailing trivia.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.