The type of an expression, along with the type trees of the operands it was resolved
from. Built by Ash.Expr.determine_type_tree/1.
expr- the expression.type- its type asAsh.Expr.determine_type/1returns it:{:ok, {type, constraints}}, or:errorif it can't be determined.operands- for an operator or function call whose type is resolved from its operands, a type tree for each operand, in order ([left, right]for an operator, otherwise the call's arguments).nilfor anything else.
Summary
Types
@type t() :: %Ash.Expr.TypeTree{ expr: term(), operands: [t()] | nil, type: {:ok, {Ash.Type.t(), Keyword.t()}} | :error }