Class TernaryNode

Assembly: redb.Route.dll

AST node representing a ternary conditional expression (condition ? ifTrue : ifFalse).

public class TernaryNode : AstNode

Inheritance

Object→AstNode→TernaryNode

Inherited Members

Properties

Condition

Gets the condition expression.

public AstNode Condition { get; }

IfFalse

Gets the expression evaluated when the condition is false.

public AstNode IfFalse { get; }

IfTrue

Gets the expression evaluated when the condition is true.

public AstNode IfTrue { get; }

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Constructors

TernaryNode(AstNode, AstNode, AstNode)

Initializes a new instance of the class.