SourceKittenDictionary
public struct SourceKittenDictionary
A collection of keys and values as parsed out of SourceKit, with many conveniences for accessing SwiftLint-specific values.
-
The underlying SourceKitten dictionary.
Declaration
Swift
public let value: [String : SourceKitRepresentable]
-
The cached substructure for this dictionary. Empty if there is no substructure.
Declaration
Swift
public let substructure: [SourceKittenDictionary]
-
The kind of Swift expression represented by this dictionary, if it is an expression.
Declaration
Swift
public let expressionKind: SwiftExpressionKind?
-
The kind of Swift declaration represented by this dictionary, if it is a declaration.
Declaration
Swift
public let declarationKind: SwiftDeclarationKind?
-
The kind of Swift statement represented by this dictionary, if it is a statement.
Declaration
Swift
public let statementKind: StatementKind?
-
The accessibility level for this dictionary, if it is a declaration.
Declaration
Swift
public let accessibility: AccessControlLevel?