mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 21:09:27 +02:00
* ppudump: Output "MethodPtr" attribute for procedural types.
git-svn-id: trunk@24504 -
This commit is contained in:
parent
9f0c23bd4c
commit
ec6ff22588
@ -1720,6 +1720,8 @@ begin
|
|||||||
if po_overridingmethod in procoptions then Include(ProcDef.Options, poOverriding);
|
if po_overridingmethod in procoptions then Include(ProcDef.Options, poOverriding);
|
||||||
if po_overload in procoptions then Include(ProcDef.Options, poOverload);
|
if po_overload in procoptions then Include(ProcDef.Options, poOverload);
|
||||||
if po_inline in procoptions then Include(ProcDef.Options, poInline);
|
if po_inline in procoptions then Include(ProcDef.Options, poInline);
|
||||||
|
if (po_methodpointer in procoptions) and (ProcDef.DefType = dtProcType) then
|
||||||
|
TPpuProcTypeDef(ProcDef).MethodPtr:=True;
|
||||||
|
|
||||||
write([space,' Options : ']);
|
write([space,' Options : ']);
|
||||||
first:=true;
|
first:=true;
|
||||||
|
@ -204,7 +204,10 @@ type
|
|||||||
|
|
||||||
{ TPpuProcTypeDef }
|
{ TPpuProcTypeDef }
|
||||||
TPpuProcTypeDef = class(TPpuProcDef)
|
TPpuProcTypeDef = class(TPpuProcDef)
|
||||||
|
protected
|
||||||
|
procedure BeforeWriteItems(Output: TPpuOutput); override;
|
||||||
public
|
public
|
||||||
|
MethodPtr: boolean;
|
||||||
constructor Create(AParent: TPpuContainerDef); override;
|
constructor Create(AParent: TPpuContainerDef); override;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -1033,6 +1036,13 @@ end;
|
|||||||
|
|
||||||
{ TPpuProcTypeDef }
|
{ TPpuProcTypeDef }
|
||||||
|
|
||||||
|
procedure TPpuProcTypeDef.BeforeWriteItems(Output: TPpuOutput);
|
||||||
|
begin
|
||||||
|
inherited BeforeWriteItems(Output);
|
||||||
|
if MethodPtr then
|
||||||
|
Output.WriteBool('MethodPtr', MethodPtr);
|
||||||
|
end;
|
||||||
|
|
||||||
constructor TPpuProcTypeDef.Create(AParent: TPpuContainerDef);
|
constructor TPpuProcTypeDef.Create(AParent: TPpuContainerDef);
|
||||||
begin
|
begin
|
||||||
inherited Create(AParent);
|
inherited Create(AParent);
|
||||||
|
Loading…
Reference in New Issue
Block a user