mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-26 21:29:17 +02:00
codetools: fixed marking very short classes as unfinished, bug #13638
git-svn-id: trunk@19806 -
This commit is contained in:
parent
e5db74796e
commit
5abefaf3bf
@ -2639,7 +2639,8 @@ var
|
||||
ctnClassTypePublished,ctnClassTypePublic,ctnClassTypeProtected,ctnClassTypePrivate,
|
||||
ctnClassVarPublished,ctnClassVarPublic,ctnClassVarProtected,ctnClassVarPrivate,
|
||||
ctnRecordVariant,
|
||||
ctnProcedureHead, ctnParameterList:
|
||||
ctnProcedureHead, ctnParameterList,
|
||||
ctnClassInheritance:
|
||||
// these codetreenodes build a parent-child-relationship, but
|
||||
// for pascal it is only a range, hence after searching in the
|
||||
// childs of the last node, search must continue in the childs
|
||||
@ -4291,7 +4292,7 @@ begin
|
||||
-[fdfExceptionOnNotFound];
|
||||
Params.ContextNode:=ClassContext.Node;
|
||||
{$IFDEF ShowTriedContexts}
|
||||
DebugLn('[TFindDeclarationTool.FindIdentifierInClassOfMethod] searching identifier in class of method');
|
||||
DebugLn('[TFindDeclarationTool.FindIdentifierInClassOfMethod] searching identifier in class of method Identifier=',GetIdentifier(Params.Identifier));
|
||||
{$ENDIF}
|
||||
Result:=ClassContext.Tool.FindIdentifierInContext(Params);
|
||||
Params.Load(OldInput,true);
|
||||
|
@ -3314,6 +3314,10 @@ begin
|
||||
if ChildCreated and (CurNode.Desc=ctnClass) and IsForward then begin
|
||||
// forward class definition found
|
||||
CurNode.SubDesc:=CurNode.SubDesc+ctnsForwardDeclaration;
|
||||
end else begin
|
||||
// very short class found e.g. = class(TAncestor);
|
||||
if ChildCreated and (CurNode.Desc=ctnClass) then
|
||||
CurNode.SubDesc:=CurNode.SubDesc+ctnsNeedJITParsing; // will not create sub nodes now
|
||||
end;
|
||||
end else begin
|
||||
if ChildCreated and (CurNode.Desc=ctnClass) then
|
||||
|
Loading…
Reference in New Issue
Block a user