예제 #1
0
파일: ExpAST.cs 프로젝트: chenzuo/blue
 //.........................................................................
 // 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);
 }
예제 #2
0
파일: ExpAST.cs 프로젝트: chenzuo/blue
 // 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);
 }        
예제 #3
0
파일: ObjExpAST.cs 프로젝트: chenzuo/blue
 public override void GenerateAddrOf(CodeGen.EmitCodeGen gen)
 {
     Debug.Assert(!IsIndexer, "Don't codegen Indexers as Array Access");
     gen.GenerateAddrOf(this);
 }