コード例 #1
0
 public Func<NamedDataType,NamedDataType> VisitPointer(PointerDeclarator pointer)
 {
     Func<NamedDataType, NamedDataType> fn;
     if (pointer.Pointee != null)
     {
         fn = pointer.Pointee.Accept(this);
     }
     else
     {
         fn = f => f;
     }
     return (nt) =>
     {
         var size = PointerSize();
         nt.DataType = new PointerType_v1
         {
             DataType = nt.DataType,
             PointerSize = size,
         };
         nt.Size = PointerSize();
         return fn(nt);
     };
 }
コード例 #2
0
 public string VisitPointer(PointerDeclarator pointer)
 {
     return(pointer.Pointee.Accept(this));
 }