The main class of the library, responsible for handling Swift files, creating syntax trees, performing queries, and mutating code.

Constructors

  • Create a new instance of the Deaccessibilizer. Gets the tree-sitter parser for Swift, considering whether it is running in Node.js or WebAssembly, and the hasher for checksums.

    Returns Deaccessibilizer

Methods

  • Get the hash of a file text.

    Parameters

    • fileText: string

    Returns Promise<string>