MG: added smart hints in debug mode

git-svn-id: trunk@3619 -
This commit is contained in:
lazarus 2002-11-10 22:02:36 +00:00
parent feb9086ada
commit 193e9e1936

View File

@ -1237,12 +1237,14 @@ begin
// identifier category and identifier // identifier category and identifier
if NewNode<>nil then begin if NewNode<>nil then begin
case NewNode.Desc of case NewNode.Desc of
ctnVarDefinition, ctnTypeDefinition, ctnConstDefinition: ctnVarDefinition, ctnTypeDefinition, ctnConstDefinition,
ctnEnumIdentifier:
begin begin
case NewNode.Desc of case NewNode.Desc of
ctnVarDefinition: Result:=Result+'var '; ctnVarDefinition: Result:=Result+'var ';
ctnTypeDefinition: Result:=Result+'type '; ctnTypeDefinition: Result:=Result+'type ';
ctnConstDefinition: Result:=Result+'const '; ctnConstDefinition: Result:=Result+'const ';
ctnEnumIdentifier: Result:=Result+'enum ';
end; end;
NewTool.MoveCursorToNodeStart(NewNode); NewTool.MoveCursorToNodeStart(NewNode);
NewTool.ReadNextAtom; NewTool.ReadNextAtom;