mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 07:21:34 +02:00
codetools: ExtractProcHead extract operator result name
git-svn-id: trunk@28528 -
This commit is contained in:
parent
80d936c033
commit
82f7e95ca0
@ -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);
|
||||
|
@ -28,7 +28,9 @@ type
|
||||
end;
|
||||
|
||||
var
|
||||
Form1: TForm1;
|
||||
Form1: TForm1;
|
||||
|
||||
operator + (dp1: TPoint; dp2: TPoint) dps: TPoint;
|
||||
|
||||
implementation
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user