codetools: fixed code completion for c in enum

git-svn-id: trunk@41837 -
This commit is contained in:
mattias 2013-06-23 16:28:50 +00:00
parent 8a2a43c001
commit f4ed4c5b85

View File

@ -10025,6 +10025,7 @@ var
TermExprType: TExpressionType;
OperatorExprType: TExpressionType;
AliasType: TFindContext;
Node: TCodeTreeNode;
begin
Result:='';
AliasType:=CleanFindContext;
@ -10064,6 +10065,12 @@ begin
RaiseTermHasNoIterator;
Result:=FindExprTypeAsString(ExprType,TermPos.StartPos,Params,@AliasType);
end;
ctnEnumerationType:
begin
Node:=TermExprType.Context.Node.Parent;
if Node.Desc=ctnTypeDefinition then
Result:=TermExprType.Context.Tool.ExtractIdentifier(Node.StartPos);
end;
ctnSetType:
if TermExprType.Context.Tool.FindEnumerationTypeOfSetType(
TermExprType.Context.Node,ExprType.Context)