SwiftLintSyntaxMap

public struct SwiftLintSyntaxMap

Represents a Swift file’s syntax information.

  • The raw SyntaxMap obtained by SourceKitten.

    Declaration

    Swift

    public let value: SyntaxMap
  • The SwiftLint-specific syntax tokens for this syntax map.

    Declaration

    Swift

    public let tokens: [SwiftLintSyntaxToken]
  • Creates a SwiftLintSyntaxMap from the raw SyntaxMap obtained by SourceKitten.

    Declaration

    Swift

    public init(value: SyntaxMap)

    Parameters

    value

    The raw SyntaxMap obtained by SourceKitten.