Skip to content

Commit

Permalink
Some details on TreeSitterClient and how it fits in
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Sep 8, 2024
1 parent 166f022 commit 1303465
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/TreeSitterClient/TreeSitterClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ enum TreeSitterClientError: Error {
case languageUnavailable(String)
}

/// Interface with the tree-sitter parsing query system.
///
/// TreeSitterClient supports arbitrary language nesting and unified queries across the document.
///
/// Tree-sitter ultimately resolves to a single semantic view of the text, and is considered a single phase. However, it may require numerous validation/invalidation passes before fully resolving a document's content.
@MainActor
public final class TreeSitterClient {
public typealias TextProvider = SwiftTreeSitter.Predicate.TextProvider
Expand Down

0 comments on commit 1303465

Please sign in to comment.