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, CallSubquery, ConstraintKind, ConstraintNameSpec, Create, CreateConstraint,
12    CreateIndex, Delete, Direction, Document, DropConstraint, DropIndex, Expr, InQueryCall,
13    IndexEntityKind, IndexKind, IndexKindFilter, IndexNameSpec, IndexOptions, ListPredicateKind,
14    LiteralTypeExpr, MapProjectionSelector, Match, Merge, MergeAction, MultiPartQuery, NodePattern,
15    Pattern, PatternElement, PatternElementChain, PatternPart, ProcedureInvocation,
16    ProcedureInvocationKind, ProcedureName, ProjectionBody, ProjectionItem, PropertyTypeExpr,
17    PropertyTypeTerm, Query, QueryPart, RangeLiteral, ReadingClause, RegularQuery,
18    RelationshipDetail, RelationshipPattern, Remove, RemoveItem, Return, ScalarType, SchemaCommand,
19    Set, SetItem, ShowConstraints, ShowIndexes, ShowPipeline, ShowReturn, ShowYield,
20    SinglePartQuery, SingleQuery, SortDirection, SortItem, Span, StandaloneCall, Statement,
21    UnaryOp, UnionPart, Unwind, UpdatingClause, Variable, VectorCoordType, With, YieldItem,
22};