mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 11:35:57 +02:00
codetools: identifier completion: added class keywords property etc at start of variable
git-svn-id: trunk@26301 -
This commit is contained in:
parent
6f853cc984
commit
9df7b33b05
@ -1529,6 +1529,7 @@ var
|
||||
Node: TCodeTreeNode;
|
||||
begin
|
||||
Node:=Context.Node;
|
||||
debugln(['TIdentCompletionTool.GatherContextKeywords ',Node.DescAsString]);
|
||||
case Node.Desc of
|
||||
ctnClass,ctnObject,ctnObjCCategory,ctnObjCClass,
|
||||
ctnClassPrivate,ctnClassProtected,ctnClassPublic,ctnClassPublished:
|
||||
@ -1576,6 +1577,21 @@ begin
|
||||
Add('procedure');
|
||||
Add('function');
|
||||
end;
|
||||
|
||||
ctnVarDefinition:
|
||||
if Node.Parent.Desc in [ctnClass,ctnObject,ctnObjCCategory,ctnObjCClass]
|
||||
+AllClassBaseSections
|
||||
then begin
|
||||
Add('public');
|
||||
Add('private');
|
||||
Add('protected');
|
||||
Add('published');
|
||||
Add('procedure');
|
||||
Add('function');
|
||||
Add('property');
|
||||
Add('constructor');
|
||||
Add('destructor');
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user