Skip to main content

lora_ast/
lib.rs

1// AST node variants have deliberate size asymmetry (e.g. a full MATCH/WITH/RETURN
2// pipeline vs. a StandaloneCall). Boxing the large variants would trade fewer
3// stack copies for an extra heap allocation per parse — the opposite of what
4// the parser is tuned for. Self-referential cases that do need indirection
5// (e.g. `PatternElement::Parenthesized`) already box explicitly.
6#![allow(clippy::large_enum_variant)]
7
8pub mod ast;
9
10pub use ast::{
11    BinaryOp, Create, Delete, Direction, Document, Expr, InQueryCall, ListPredicateKind,
12    MapProjectionSelector, Match, Merge, MergeAction, MultiPartQuery, NodePattern, Pattern,
13    PatternElement, PatternElementChain, PatternPart, ProcedureInvocation, ProcedureInvocationKind,
14    ProcedureName, ProjectionBody, ProjectionItem, Query, QueryPart, RangeLiteral, ReadingClause,
15    RegularQuery, RelationshipDetail, RelationshipPattern, Remove, RemoveItem, Return, Set,
16    SetItem, SinglePartQuery, SingleQuery, SortDirection, SortItem, Span, StandaloneCall,
17    Statement, UnaryOp, UnionPart, Unwind, UpdatingClause, Variable, With, YieldItem,
18};