Table of Contents

Class IfStatement

Namespace
DotBoxD.Kernels
Assembly
DotBoxD.Kernels.dll
public sealed record IfStatement : Statement, IEquatable<Statement>, IEquatable<IfStatement>
Inheritance
IfStatement
Implements
Inherited Members

Constructors

IfStatement(Expression, IReadOnlyList<Statement>, IReadOnlyList<Statement>, SourceSpan)

public IfStatement(Expression Condition, IReadOnlyList<Statement> Then, IReadOnlyList<Statement> Else, SourceSpan Span)

Parameters

Condition Expression
Then IReadOnlyList<Statement>
Else IReadOnlyList<Statement>
Span SourceSpan

Properties

Condition

public Expression Condition { get; init; }

Property Value

Expression

Else

public IReadOnlyList<Statement> Else { get; init; }

Property Value

IReadOnlyList<Statement>

Then

public IReadOnlyList<Statement> Then { get; init; }

Property Value

IReadOnlyList<Statement>