codetools: identifier completion: added class keywords property etc at start of variable

git-svn-id: trunk@26301 -
This commit is contained in:
mattias 2010-06-27 17:41:29 +00:00
parent 6f853cc984
commit 9df7b33b05

View File

@ -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;