SwiftLintSyntaxToken
public struct SwiftLintSyntaxToken
A SwiftLint-aware Swift syntax token.
-
The raw
SyntaxToken
obtained by SourceKitten.Declaration
Swift
public let value: SyntaxToken
-
The syntax kind associated with is token.
Declaration
Swift
public let kind: SyntaxKind?
-
Creates a
SwiftLintSyntaxToken
from the rawSyntaxToken
obtained by SourceKitten.Declaration
Swift
public init(value: SyntaxToken)
Parameters
value
The raw
SyntaxToken
obtained by SourceKitten. -
The byte range in a source file for this token.
Declaration
Swift
public var range: ByteRange { get }
-
The starting byte offset in a source file for this token.
Declaration
Swift
public var offset: ByteCount { get }
-
The length in bytes for this token.
Declaration
Swift
public var length: ByteCount { get }