SKSyntaxMap
open class SKSyntaxMap : Codable
Represents a Swift file’s syntax information.
-
The backing SourceKitten
SyntaxMap
.Declaration
Swift
public let syntaxMap: SyntaxMap
-
Array of
SyntaxToken
s.Declaration
Swift
public var tokens: [SyntaxToken] { get }
-
Creates a new synchronous SourceKitten syntax map request.
Warning
The request is sent synchronously, so ensure this initializer is not called on the main thread.
Throws
A
SKError
, if an error occurs.Declaration
Swift
public init(file: File) throws
Parameters
file
The source file.
-
Creates a new synchronous SourceKitten syntax map request.
Warning
The request is sent synchronously, so ensure this initializer is not called on the main thread.
Throws
A
SKError
, if an error occurs.Declaration
Swift
public convenience init(filePath: String) throws
Parameters
filePath
The absolute file path to the source file.
-
Declaration
Swift
public static func == (lhs: SKSyntaxMap, rhs: SKSyntaxMap) -> Bool