mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 02:59:17 +02:00
codetools: treat method which contains only an inherited call as an empty method
git-svn-id: trunk@35755 -
This commit is contained in:
parent
77eb6ab37f
commit
f9cbe3fbe2
@ -842,6 +842,16 @@ begin
|
|||||||
LastPos:=CurPos.EndPos;
|
LastPos:=CurPos.EndPos;
|
||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
if FindNextNonSpace(Src,LastPos)<>CurPos.StartPos then exit;
|
if FindNextNonSpace(Src,LastPos)<>CurPos.StartPos then exit;
|
||||||
|
// inherited is allowed
|
||||||
|
if UpAtomIs('INHERITED') then begin
|
||||||
|
ReadNextAtom;
|
||||||
|
if CurPos.Flag=cafSemicolon then begin
|
||||||
|
// semicolon is allowed
|
||||||
|
LastPos:=CurPos.EndPos;
|
||||||
|
ReadNextAtom;
|
||||||
|
if FindNextNonSpace(Src,LastPos)<>CurPos.StartPos then exit;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
if not UpAtomIs('END') then exit;
|
if not UpAtomIs('END') then exit;
|
||||||
Result:=true;
|
Result:=true;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user