Class IfStatement
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
ConditionExpressionThenIReadOnlyList<Statement>ElseIReadOnlyList<Statement>SpanSourceSpan
Properties
Condition
public Expression Condition { get; init; }
Property Value
Else
public IReadOnlyList<Statement> Else { get; init; }
Property Value
Then
public IReadOnlyList<Statement> Then { get; init; }