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