//......................................................................... // Code Generation - Generate the address of this expression //......................................................................... public virtual void GenerateAddrOf(CodeGen.EmitCodeGen gen) { // Can't get the addr of most expressions //Debug.Assert(false, "Didn't implemented GenerateAddrOf"); // Default impl, evaluate as RHS, store in temp, gen addr of that. gen.GenerateAddrOf(this); }
// Generating the address of a literal is ok. We just have to // create a temporary local to provide backing storage public override void GenerateAddrOf(CodeGen.EmitCodeGen gen) { gen.GenerateAddrOf(this); }
public override void GenerateAddrOf(CodeGen.EmitCodeGen gen) { Debug.Assert(!IsIndexer, "Don't codegen Indexers as Array Access"); gen.GenerateAddrOf(this); }