mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 13:10:53 +02:00
Codetools: Support Codecompletion inside "with begin end" block. May fix other cases, too. Issue #0023782
git-svn-id: branches/fixes_2_0@62854 -
This commit is contained in:
parent
9f79c56107
commit
6ae9bebcfe
@ -7499,6 +7499,7 @@ function TFindDeclarationTool.FindAncestorOfClassInheritance(
|
||||
var
|
||||
InheritanceNode: TCodeTreeNode;
|
||||
ClassNode: TCodeTreeNode;
|
||||
SpecializeNode : TCodeTreeNode;
|
||||
AncestorContext: TFindContext;
|
||||
AncestorStartPos: LongInt;
|
||||
ExprType: TExpressionType;
|
||||
@ -7578,9 +7579,14 @@ begin
|
||||
if (AncestorContext.Node.Desc in [ctnTypeDefinition,ctnGenericType]) then
|
||||
begin
|
||||
Params:=TFindDeclarationParams.Create;
|
||||
if IdentifierNode.Desc=ctnSpecialize then begin
|
||||
SpecializeNode:=IdentifierNode;
|
||||
Params.SetGenericParamValues(Self, SpecializeNode);
|
||||
end;
|
||||
try
|
||||
Params.Flags:=fdfDefaultForExpressions+[fdfFindChildren];
|
||||
AncestorContext:=AncestorContext.Tool.FindBaseTypeOfNode(Params,AncestorContext.Node);
|
||||
ResultParams.GenParams:=Params.GenParams;
|
||||
finally
|
||||
Params.Free;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user