From b381e2ecce6aaedf28650f5084e8c0f4d30e545c Mon Sep 17 00:00:00 2001 From: mattias Date: Sun, 22 Apr 2012 22:55:58 +0000 Subject: [PATCH] codetools: identifier completion: some keywords for library, program git-svn-id: trunk@36983 - --- components/codetools/identcompletiontool.pas | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/components/codetools/identcompletiontool.pas b/components/codetools/identcompletiontool.pas index 2cd9050bf4..415a8ea0af 100644 --- a/components/codetools/identcompletiontool.pas +++ b/components/codetools/identcompletiontool.pas @@ -1522,10 +1522,10 @@ var NodeBehind: TCodeTreeNode; begin Node:=Context.Node; - //debugln(['TIdentCompletionTool.GatherContextKeywords ',Node.DescAsString]); + debugln(['TIdentCompletionTool.GatherContextKeywords ',Node.DescAsString]); ReadPriorAtomSafe(CleanPos); - //debugln(['TIdentCompletionTool.GatherContextKeywords prioratom=',CleanPosToStr(CurPos.StartPos),'=',GetAtom(CurPos)]); + debugln(['TIdentCompletionTool.GatherContextKeywords prioratom=',CleanPosToStr(CurPos.StartPos),'=',GetAtom(CurPos)]); NodeInFront:=nil; if CurPos.StartPos>0 then NodeInFront:=FindDeepestNodeAtPos(CurPos.StartPos,false); @@ -1533,11 +1533,11 @@ begin NodeBehind:=nil; MoveCursorToCleanPos(CleanPos); ReadNextAtom; - //debugln(['TIdentCompletionTool.GatherContextKeywords nextatom=',CleanPosToStr(CurPos.StartPos),'=',GetAtom(CurPos)]); + debugln(['TIdentCompletionTool.GatherContextKeywords nextatom=',CleanPosToStr(CurPos.StartPos),'=',GetAtom(CurPos)]); if CurPos.StartPos>CleanPos then NodeBehind:=FindDeepestNodeAtPos(CurPos.StartPos,false); - //debugln(['TIdentCompletionTool.GatherContextKeywords Node=',Node.DescAsString,' NodeInFront=',NodeInFront.DescAsString,' NodeBehind=',NodeBehind.DescAsString]); + debugln(['TIdentCompletionTool.GatherContextKeywords Node=',Node.DescAsString,' NodeInFront=',NodeInFront.DescAsString,' NodeBehind=',NodeBehind.DescAsString]); case Node.Desc of ctnClass,ctnObject,ctnRecordType,ctnObjCCategory,ctnObjCClass, @@ -1656,13 +1656,13 @@ begin end; end; - ctnTypeSection,ctnVarSection,ctnConstSection,ctnLabelSection,ctnResStrSection: - if (Node.FirstChild<>nil) - and (Node.FirstChild.StartPos