codetools: ExtractProcHead extract operator result name

git-svn-id: trunk@28528 -
This commit is contained in:
mattias 2010-11-28 13:05:36 +00:00
parent 80d936c033
commit 82f7e95ca0
2 changed files with 8 additions and 1 deletions

View File

@ -463,6 +463,11 @@ begin
if (CurPos.Flag=cafRoundBracketOpen) then
ReadParamList(false,true,Attr);
ExtractProcHeadPos:=phepParamList;
if IsOperator and (CurPos.Flag=cafWord) then begin
// read operator result name
ExtractNextAtom([phpWithParameterNames,phpWithResultType]*Attr
=[phpWithParameterNames,phpWithResultType],Attr);
end;
// read result type
if (CurPos.Flag=cafColon) then begin
ExtractNextAtom(phpWithResultType in Attr,Attr);

View File

@ -28,7 +28,9 @@ type
end;
var
Form1: TForm1;
Form1: TForm1;
operator + (dp1: TPoint; dp2: TPoint) dps: TPoint;
implementation