コード例 #1
0
ファイル: HeapElemWrapper.cs プロジェクト: sulekhark/DAFFODIL
 public string GetDesc()
 {
     if (kind == HeapElemKind.RefObj)
     {
         return(instW.GetDesc());
     }
     else if (kind == HeapElemKind.StructObj)
     {
         return(varW.GetDesc());
     }
     else if (kind == HeapElemKind.ArrElemStructObj)
     {
         return(instW.GetDesc());
     }
     else if (kind == HeapElemKind.StatFldStructObj)
     {
         return(fldW.GetDesc());
     }
     else if (kind == HeapElemKind.InstFldStructObj)
     {
         return(instW.GetDesc() + " FLDDESC: " + fldW.GetDesc());
     }
     else
     {
         return("UNK");
     }
 }
コード例 #2
0
ファイル: AddressWrapper.cs プロジェクト: sulekhark/DAFFODIL
 public string GetDesc()
 {
     if (kind == AddressKind.AddrM)
     {
         return(mRefW.GetDesc());
     }
     else if (kind == AddressKind.AddrHF)
     {
         return(instW.GetDesc() + "::" + fldRefW.GetDesc());
     }
     else if (kind == AddressKind.AddrF)
     {
         return(fldRefW.GetDesc());
     }
     else if (kind == AddressKind.AddrV)
     {
         return(varW.GetDesc());
     }
     else
     {
         return("UNK");
     }
 }