Path: redb-route/redb.Route/Expressions/Ast/InOperationNode.cs Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route/Expressions/Ast/InOperationNode.cs ---- using redb.Route.Abstractions; namespace redb.Route.Expressions.Ast; /// /// A list literal after in: ('gold','silver'), (1, 2, 3), or (). /// Evaluates every item against the exchange, so an item can be any expression. /// public sealed class ListLiteralNode : AstNode { /// The items in source order. public IReadOnlyList Items { get; } /// Creates the node. public ListLiteralNode(IReadOnlyList items) => Items = items ?? throw new ArgumentNullException(nameof(items)); /// public override string ToString() => "(" + string.Join(", ", Items) + ")"; } /// /// value in list and value not in list — Camel Simple's membership operators. /// /// Elements are compared with the equality == uses (), /// so in cannot disagree with == about whether 2 equals 2L. A missing /// collection (null) is an empty one: nothing is a member of it, which is the SQL reading of an empty /// IN and the one a missing header should have. A string is refused rather than split — Camel /// reads 'a,b' as a list, but here a comma inside a string already means something else, and /// iterating a string would quietly test membership among its characters. /// /// public sealed class InOperationNode : AstNode { /// The value tested for membership. public AstNode Value { get; } /// The list: a or an expression yielding a collection. public AstNode List { get; } /// True for not in. public bool Negated { get; } /// Creates the node. public InOperationNode(AstNode value, AstNode list, bool negated) { Value = value ?? throw new ArgumentNullException(nameof(value)); List = list ?? throw new ArgumentNullException(nameof(list)); Negated = negated; } }