Пример #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) =>
            {
                nt.DataType = new PointerType_v1
                {
                    DataType = nt.DataType,
                };
                nt.Size = 4;            //$BUG: this is also architecture-specific (2 for PDP-11 for instance)
                return fn(nt);
            });
        }
Пример #2
0
 public string VisitPointer(PointerDeclarator pointer)
 {
     return(pointer.Pointee.Accept(this));
 }