public override void GenerateAsStatement(CodeGen.EmitCodeGen gen) { gen.GenerateAsStatement(this); }
// Statement expressions can be generated as a statement or expression. // As an expression, they must leave a value on the top of the stack // As a statement, they don't leave a value on top (and hence may // be able to have a more efficient impl). // Normal Generate() will generate as a RHS expression. public virtual void GenerateAsStatement(CodeGen.EmitCodeGen gen) { // Default impl generates as a RHS exp and just pops the value off gen.GenerateAsStatement(this); }