ExAST.Selector.Predicate (ExAST v0.6.0)

Copy Markdown View Source

Predicate used by ExAST.Selector.where/2.

Build predicates with ExAST.Selector.parent/1, ancestor/1, has_child/1, has_descendant/1, or has/1. Negate them with ExAST.Selector.not/1.

Summary

Types

relation()

@type relation() :: :parent | :ancestor | :has_child | :has_descendant

t()

@type t() :: %ExAST.Selector.Predicate{
  negated?: boolean(),
  pattern: ExAST.Pattern.pattern(),
  relation: relation()
}