mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 14:40:24 +02:00
codetools: fixed finddeclaration in generic methods searching ancestor class
git-svn-id: trunk@13014 -
This commit is contained in:
parent
4a5fbf3a39
commit
d62038c83e
@ -4228,7 +4228,7 @@ begin
|
||||
// no ancestor class specified
|
||||
// check class name
|
||||
if (ClassIdentNode=nil)
|
||||
or (not (ClassIdentNode.Desc in [ctnTypeDefinition,ctnGenericType])) then
|
||||
or (not (ClassIdentNode.Desc in [ctnTypeDefinition,ctnGenericName])) then
|
||||
begin
|
||||
MoveCursorToNodeStart(ClassNode);
|
||||
RaiseException('class without name');
|
||||
|
@ -571,6 +571,7 @@ begin
|
||||
CommentEnd:=FindCommentEnd(Src,p,NestedComment);
|
||||
Tool.CleanPosToCaret(p,CodeXYPosition);
|
||||
CommentStr:=copy(Src,p,CommentEnd-p);
|
||||
//DebugLn(['TfrmTodo.LoadFile CommentStr="',CommentStr,'"']);
|
||||
if Src[p]='/' then
|
||||
aTodoItem := GetToDoItem(CodeXYPosition.Code.Filename, '//', '', CommentStr, CodeXYPosition.Y)
|
||||
else if Src[p]='{' then
|
||||
|
Loading…
Reference in New Issue
Block a user