mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 17:11:59 +02:00
codetools: fixed code completion for c in enum
git-svn-id: trunk@41837 -
This commit is contained in:
parent
8a2a43c001
commit
f4ed4c5b85
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user