mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 22:47:59 +02:00
Add string constant values to stringconstn nodes in parse tree output
This commit is contained in:
parent
7bbd33bcd6
commit
cd9ed54d35
@ -144,6 +144,7 @@ interface
|
||||
{ returns whether this platform uses the nil pointer to represent
|
||||
empty dynamic strings }
|
||||
class function emptydynstrnil: boolean; virtual;
|
||||
procedure printnodedata(var T: Text); override;
|
||||
{$ifdef DEBUG_NODE_XML}
|
||||
procedure XMLPrintNodeData(var T: Text); override;
|
||||
{$endif DEBUG_NODE_XML}
|
||||
@ -1213,6 +1214,12 @@ implementation
|
||||
result:=true;
|
||||
end;
|
||||
|
||||
procedure tstringconstnode.printnodedata(var T: Text);
|
||||
begin
|
||||
inherited printnodedata(t);
|
||||
writeln(t,printnodeindention,'value = "',value_str,'"');
|
||||
end;
|
||||
|
||||
{$ifdef DEBUG_NODE_XML}
|
||||
procedure TStringConstNode.XMLPrintNodeData(var T: Text);
|
||||
var
|
||||
|
Loading…
Reference in New Issue
Block a user