* Forgot to commit

git-svn-id: trunk@21835 -
This commit is contained in:
michael 2012-07-09 18:24:19 +00:00
parent 95732625cc
commit 4fb7d7caa5

View File

@ -506,7 +506,8 @@ type
public
Access: TArgumentAccess;
ArgType: TPasType;
Value: string;
ValueExpr: TPasExpr;
Function Value : String;
end;
{ TPasProcedureType }
@ -1452,6 +1453,7 @@ destructor TPasArgument.Destroy;
begin
if Assigned(ArgType) then
ArgType.Release;
FreeAndNil(ValueExpr);
inherited Destroy;
end;
@ -2446,6 +2448,14 @@ begin
Result:='';
end;
function TPasArgument.Value: String;
begin
If Assigned(ValueExpr) then
Result:=ValueExpr.GetDeclaration(true)
else
Result:='';
end;
{ TPassTreeVisitor }