FIQLEx v0.1.8 FIQLEx.SelectorsGetter View Source

Link to this section Summary

Functions

Returns a list of all selectors for a given AST

This function will go deeper in the ast traversal.

Same as handle_ast/3 but returns the state or raises an exception.

Link to this section Functions

Link to this function

get_selectors(ast)

View Source
get_selectors(ast :: FIQLEx.ast()) :: [binary()]

Returns a list of all selectors for a given AST

Link to this function

handle_ast(curr_ast, ast, state)

View Source
handle_ast(FIQLEx.ast(), FIQLEx.ast(), any()) ::
  {:ok, any()} | {:error, any()}

This function will go deeper in the ast traversal.

Parameters are:

  • curr_ast: The AST we want to go deeper with
  • ast: The global AST
  • state: The current state of your query builder

The function returns {:ok, state} if everything is fine, and {:error, reason} if there is an error

Link to this function

handle_ast!(curr_ast, ast, state)

View Source
handle_ast!(FIQLEx.ast(), FIQLEx.ast(), any()) :: any()

Same as handle_ast/3 but returns the state or raises an exception.