mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 22:58:50 +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;
|
||||
ReadNextAtom;
|
||||
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;
|
||||
Result:=true;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user