Class OrNode

Namespace
LogicalOptimizer
Assembly
LogicalOptimizer.Core.dll

N-ary disjunction node. The constructors are low-level: no flattening, sorting, deduplication or folding is performed — build through Or(params AstNode[]) to get canonical trees.

public sealed class OrNode : NaryNode
Inheritance
OrNode
Inherited Members

Constructors

OrNode(AstNode, AstNode)

Low-level two-operand convenience constructor.

public OrNode(AstNode left, AstNode right)

Parameters

left AstNode
right AstNode

OrNode(IReadOnlyList<AstNode>)

Low-level n-ary constructor (at least two operands, stored as given).

public OrNode(IReadOnlyList<AstNode> operands)

Parameters

operands IReadOnlyList<AstNode>

Properties

Operator

Operator symbol used when rendering (& or |).

public override string Operator { get; }

Property Value

string