API Reference — ExAST v0.16.0
API Reference ExAST v#0.16.0 Copy Markdown View Source Modules ExAST Search, replace, and diff Elixir code by AST pattern. ExAST. Comment A source comment with line/column metadata. ExAST. Comments Extracts comments from Elixir source while preserving source positions. ExAST. CompiledPattern Precomputed metadata for an ExAST pattern. ExAST. Diff Syntax-aware diffing for Elixir source code. ExAST. Diff. Edit A single syntax-aware edit between two Elixir sources.
ExAST. Diff. Patcher Applies diff edits to produce patched source code. ExAST. Diff. Result The result of comparing two Elixir sources. ExAST. Index Candidate-index metadata for ExAST patterns and selectors. ExAST. Index. Plan Indexable summary of an ExAST pattern or selector. ExAST. Index. Terms Conservative structural terms extracted from Elixir AST and ExAST patterns. ExAST. PatchConflict Describes overlapping replacement ranges in a rewrite plan.
ExAST. Patcher Finds and replaces AST patterns in source code. ExAST. Pattern AST pattern matching with captures. ExAST. Query SQL-like query API for AST search. ExAST. Rewriter Builds and applies replacement plans without immediately changing files. ExAST. Rewriter. Plan A rewrite plan that can be inspected, encoded, or applied. ExAST. Rewriter. Replacement A planned source replacement. ExAST. Selector CSS-like AST selector builder.
ExAST. Selector. CommentMatcher Comment text matcher used by comment predicates. ExAST. Selector. Predicate Predicate used by ExAST.Selector.where/2 . ExAST. Sigil Provides the ~p sigil for compile-time pattern parsing. ExAST. Symbol. Definition A module, function, macro, callback, or attribute definition found in Elixir code. ExAST. Symbol. Reference A local or remote reference found in Elixir code. ExAST. Symbols Extracts lightweight definition and reference facts from Elixir source or AST.
Mix Tasks mix ex_ast. diff Computes a syntax-aware diff between two Elixir files. mix ex_ast. replace Replaces AST pattern matches in Elixir source files. mix ex_ast. search Searches for AST patterns in Elixir source files.