mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-02 01:29:29 +02:00
codetools: parse class operator =, bug #21128
git-svn-id: trunk@34880 -
This commit is contained in:
parent
3e692990e1
commit
a51a9f729f
@ -1163,7 +1163,7 @@ begin
|
||||
// read name
|
||||
ReadNextAtom;
|
||||
if IsOperator then begin
|
||||
// if CurPos.Flag<>cafEqual then
|
||||
if CurPos.Flag<>cafEqual then
|
||||
AtomIsIdentifier(true);
|
||||
end else begin
|
||||
AtomIsIdentifier(true);
|
||||
@ -2561,8 +2561,8 @@ begin
|
||||
if CurSection=ctnInterface then
|
||||
ProcNode.SubDesc:=ctnsForwardDeclaration;
|
||||
end;
|
||||
IsFunction:=UpAtomIs('FUNCTION');
|
||||
IsOperator:=UpAtomIs('OPERATOR');
|
||||
IsFunction:=UpAtomIs('FUNCTION');
|
||||
IsMethod:=False;
|
||||
ReadNextAtom;// read first atom of head (= name/operator + parameterlist + resulttype;)
|
||||
if not IsOperator then AtomIsIdentifier(true);
|
||||
@ -2591,7 +2591,7 @@ begin
|
||||
// read procedure name of a class method (the name after the . )
|
||||
IsMethod:=True;
|
||||
ReadNextAtom;
|
||||
AtomIsIdentifier(true);
|
||||
if not IsOperator then AtomIsIdentifier(true);
|
||||
ReadNextAtom;
|
||||
end;
|
||||
end;
|
||||
@ -5313,7 +5313,7 @@ begin
|
||||
while (CurPos.Flag=cafPoint) do begin
|
||||
// read procedure name of a class method (the name after the . )
|
||||
ReadNextAtom;
|
||||
AtomIsIdentifier(true);
|
||||
if not IsOperator then AtomIsIdentifier(true);
|
||||
ReadNextAtom;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user