# `Ash.Expr.TypeTree`
[🔗](https://github.com/ash-project/ash/blob/v3.37.6/lib/ash/expr/type_tree.ex#L5)

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 as `Ash.Expr.determine_type/1` returns it: `{:ok, {type, constraints}}`,
  or `:error` if 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). `nil` for anything else.

# `t`

```elixir
@type t() :: %Ash.Expr.TypeTree{
  expr: term(),
  operands: [t()] | nil,
  type: {:ok, {Ash.Type.t(), Keyword.t()}} | :error
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
