mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-06 04:57:12 +01:00
codetools: identifier completion: method specifiers
git-svn-id: trunk@52647 -
This commit is contained in:
parent
ff5f987936
commit
54af11a069
@ -1950,18 +1950,19 @@ begin
|
|||||||
if NodeInFront<>nil then begin
|
if NodeInFront<>nil then begin
|
||||||
if NodeInFront.Desc=ctnProcedureHead then begin
|
if NodeInFront.Desc=ctnProcedureHead then begin
|
||||||
// procedure head postfix modifiers
|
// procedure head postfix modifiers
|
||||||
case Node.Desc of
|
//debugln(['TIdentCompletionTool.GatherContextKeywords NodeInFront.Parent=',NodeInFront.Parent.DescAsString]);
|
||||||
ctnClass,ctnObject,ctnObjCCategory,ctnObjCClass,
|
if NodeInFront.Parent.Desc=ctnProcedure then begin
|
||||||
ctnClassHelper, ctnRecordHelper, ctnTypeHelper,
|
//debugln(['TIdentCompletionTool.GatherContextKeywords NodeInFront.Parent.Parent=',NodeInFront.Parent.Parent.DescAsString]);
|
||||||
ctnClassPrivate,ctnClassProtected,ctnClassPublic,ctnClassPublished:
|
case NodeInFront.Parent.Parent.Desc of
|
||||||
AddMethodSpecifiers;
|
ctnClass,ctnObject,ctnObjCCategory,ctnObjCClass,
|
||||||
else
|
ctnClassHelper, ctnRecordHelper, ctnTypeHelper,
|
||||||
//debugln(['TIdentCompletionTool.GatherContextKeywords ',NodeInFront.Parent.DescAsString]);
|
ctnClassPrivate,ctnClassProtected,ctnClassPublic,ctnClassPublished:
|
||||||
if NodeInFront.Parent.Desc=ctnProcedure then
|
AddMethodSpecifiers;
|
||||||
AddProcSpecifiers
|
else
|
||||||
else if NodeInFront.Parent.Desc=ctnProcedureType then
|
AddProcSpecifiers;
|
||||||
AddProcTypeSpecifiers;
|
end;
|
||||||
end;
|
end else if NodeInFront.Parent.Desc=ctnProcedureType then
|
||||||
|
AddProcTypeSpecifiers;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
except
|
except
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user