mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-03 20:38:19 +02:00
codetools: GetValuesOfCaseVariable suport for properties
git-svn-id: trunk@19659 -
This commit is contained in:
parent
8103033b44
commit
30adabcb7b
@ -1982,6 +1982,14 @@ begin
|
|||||||
ExprType:=FindExpressionTypeOfVariable(CaseAtom.EndPos,EndPos,Params,true);
|
ExprType:=FindExpressionTypeOfVariable(CaseAtom.EndPos,EndPos,Params,true);
|
||||||
//DebugLn(['TIdentCompletionTool.GetValuesOfCaseVariable Type=',ExprTypeToString(ExprType)]);
|
//DebugLn(['TIdentCompletionTool.GetValuesOfCaseVariable Type=',ExprTypeToString(ExprType)]);
|
||||||
|
|
||||||
|
if ExprType.Desc=xtContext then begin
|
||||||
|
// resolve aliases and properties
|
||||||
|
Params.Clear;
|
||||||
|
Params.Flags:=fdfGlobals+fdfDefaultForExpressions;
|
||||||
|
ExprType.Context:=ExprType.Context.Tool.FindBaseTypeOfNode(Params,
|
||||||
|
ExprType.Context.Node);
|
||||||
|
end;
|
||||||
|
|
||||||
case ExprType.Desc of
|
case ExprType.Desc of
|
||||||
|
|
||||||
xtBoolean,xtByteBool,xtLongBool:
|
xtBoolean,xtByteBool,xtLongBool:
|
||||||
@ -2007,6 +2015,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
else
|
else
|
||||||
|
debugln(['TIdentCompletionTool.GetValuesOfCaseVariable not an enum: ',Node.DescAsString]);
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user