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); }; }
public string VisitPointer(PointerDeclarator pointer) { return(pointer.Pointee.Accept(this)); }