public void GenerateStatement(TextWriter writer, FxStatement statement) { if (statement is FxCall call) { GenerateCall(writer, call); } if (statement is FxConditional conditional) { GenerateConditional(writer, conditional); } if (statement is FxReturn ret) { GenerateReturn(writer, ret); } }
public FxConditional(ReadOnlyMemory <char> name, FxExpression expression, FxStatement statement) { this.name = name; this.expression = expression; this.statement = statement; }