|
@@ -1169,7 +1169,8 @@ type
|
|
otBitwiseAnd, otbitwiseXor,
|
|
otBitwiseAnd, otbitwiseXor,
|
|
otLogicalAnd, otLogicalNot, otLogicalXor,
|
|
otLogicalAnd, otLogicalNot, otLogicalXor,
|
|
otRightShift,
|
|
otRightShift,
|
|
- otEnumerator, otIn
|
|
|
|
|
|
+ otEnumerator, otIn,
|
|
|
|
+ otInitialize // Management operator
|
|
);
|
|
);
|
|
TOperatorTypes = set of TOperatorType;
|
|
TOperatorTypes = set of TOperatorType;
|
|
|
|
|
|
@@ -1751,13 +1752,13 @@ const
|
|
'>',':=','<>','<=','>=','**',
|
|
'>',':=','<>','<=','>=','**',
|
|
'><','Inc','Dec','mod','-','+','Or','div',
|
|
'><','Inc','Dec','mod','-','+','Or','div',
|
|
'shl','or','and','xor','and','not','xor',
|
|
'shl','or','and','xor','and','not','xor',
|
|
- 'shr','enumerator','in');
|
|
|
|
|
|
+ 'shr','enumerator','in','');
|
|
OperatorNames : Array[TOperatorType] of string
|
|
OperatorNames : Array[TOperatorType] of string
|
|
= ('','implicit','explicit','multiply','add','subtract','divide','lessthan','equal',
|
|
= ('','implicit','explicit','multiply','add','subtract','divide','lessthan','equal',
|
|
'greaterthan','assign','notequal','lessthanorequal','greaterthanorequal','power',
|
|
'greaterthan','assign','notequal','lessthanorequal','greaterthanorequal','power',
|
|
'symmetricaldifference','inc','dec','modulus','negative','positive','bitwiseor','intdivide',
|
|
'symmetricaldifference','inc','dec','modulus','negative','positive','bitwiseor','intdivide',
|
|
'leftshift','logicalor','bitwiseand','bitwisexor','logicaland','logicalnot','logicalxor',
|
|
'leftshift','logicalor','bitwiseand','bitwisexor','logicaland','logicalnot','logicalxor',
|
|
- 'rightshift','enumerator','in');
|
|
|
|
|
|
+ 'rightshift','enumerator','in','initialize');
|
|
|
|
|
|
AssignKindNames : Array[TAssignKind] of string = (':=','+=','-=','*=','/=' );
|
|
AssignKindNames : Array[TAssignKind] of string = (':=','+=','-=','*=','/=' );
|
|
|
|
|
|
@@ -2836,7 +2837,9 @@ begin
|
|
Result := Result + ', ';
|
|
Result := Result + ', ';
|
|
Result := Result + TPasArgument(ProcType.Args[i]).ArgType.Name;
|
|
Result := Result + TPasArgument(ProcType.Args[i]).ArgType.Name;
|
|
end;
|
|
end;
|
|
- Result := Result + '): ' + TPasFunctionType(ProcType).ResultEl.ResultType.Name;
|
|
|
|
|
|
+ Result := Result + ')';
|
|
|
|
+ if (OperatorType<>otInitialize) and Assigned(TPasFunctionType(ProcType).ResultEl.ResultType) then
|
|
|
|
+ Result:=Result+': ' + TPasFunctionType(ProcType).ResultEl.ResultType.Name;
|
|
If WithPath then
|
|
If WithPath then
|
|
begin
|
|
begin
|
|
S:=Self.ParentPath;
|
|
S:=Self.ParentPath;
|