SourcePresence
An indicator of whether a Syntax node was found or written in the source.
enum SourcePresenceA missing node does not mean, necessarily, that the source item is considered “implicit”, but rather that it was not found in the source.
An indicator of whether a Syntax node was found or written in the source.
enum SourcePresenceA missing node does not mean, necessarily, that the source item is considered “implicit”, but rather that it was not found in the source.
import SwiftSyntaxA library for working with Swift code.
case presentThe syntax was authored by a human and found, or was generated.
case missingThe syntax was expected or optional, but not found in the source.
struct TokenSyntaxA Syntax node representing a single token.
enum TokenKindEnumerates the kinds of tokens in the Swift language.
struct TokenSequenceSequence of tokens that are part of the provided Syntax node.
protocol EquatableA type that can be compared for value equality.
protocol Hashable : EquatableA type that can be hashed into a Hasher to produce an integer hash value.
protocol SendableA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
static func != (lhs: Self, rhs: Self) -> Bool Returns a Boolean value indicating whether two values are not equal.