Jedi Code Format: Add support for managed records operators. Issue #37983, patch from Domingo Galmés.

git-svn-id: trunk@64073 -
This commit is contained in:
juha 2020-10-25 10:13:44 +00:00
parent 3b84caaf97
commit 419384ae30

View File

@ -2301,28 +2301,27 @@ begin
PushNode(nFunctionHeading);
Recognise(ttClass);
Recognise(ttOperator);
RecogniseMethodName(False);
if fcTokenList.FirstSolidTokenType = ttOpenBracket then
RecogniseFormalParameters;
Recognise(ttColon);
PushNode(nFunctionReturnType);
RecogniseType;
PopNode;
//Managed records have operators without return
// Initialize, Finalize, Copy, AddRef.
if fcTokenList.FirstSolidTokenType = ttColon then
begin
Recognise(ttColon);
PushNode(nFunctionReturnType);
RecogniseType;
PopNode;
end;
RecogniseProcedureDirectives;
PopNode;
if pbHasBody then
begin
Recognise(ttSemiColon);
RecogniseBlock;
Recognise(ttSemiColon);
end;
PopNode;
end;