public Func <NamedDataType, NamedDataType> VisitReference(ReferenceDeclarator reference)
        {
            Func <NamedDataType, NamedDataType> fn;

            if (reference.Referent != null)
            {
                fn = reference.Referent.Accept(this);
            }
            else
            {
                fn = f => f;
            }
            return((nt) =>
            {
                var size = PointerSize();
                nt.DataType = new ReferenceType_v1
                {
                    Referent = nt.DataType,
                    Size = size,
                    //$TODO: Qualifier
                };
                nt.Size = PointerSize();
                return fn(nt);
            });
        }
示例#2
0
 public string VisitReference(ReferenceDeclarator reference)
 {
     return(reference.Referent.Accept(this));
 }