mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-15 20:59:16 +02:00
codetools: find declaration: default property for interface, bug #14151
git-svn-id: trunk@20871 -
This commit is contained in:
parent
69d68a7b86
commit
11ffbb8264
@ -6399,10 +6399,10 @@ var
|
|||||||
ExprType.Context:=ExprType.Context.Tool.FindBaseTypeOfNode(Params,
|
ExprType.Context:=ExprType.Context.Tool.FindBaseTypeOfNode(Params,
|
||||||
ExprType.Context.Node.FirstChild);
|
ExprType.Context.Node.FirstChild);
|
||||||
|
|
||||||
ctnClass, ctnProperty, ctnGlobalProperty:
|
ctnClass, ctnClassInterface, ctnProperty, ctnGlobalProperty:
|
||||||
begin
|
begin
|
||||||
if ExprType.Context.Node.Desc=ctnClass then begin
|
if ExprType.Context.Node.Desc in [ctnClass,ctnClassInterface] then begin
|
||||||
// search default property of the class
|
// search default property of the class / interface
|
||||||
Params.Save(OldInput);
|
Params.Save(OldInput);
|
||||||
Params.Flags:=[fdfSearchInAncestors,fdfExceptionOnNotFound]
|
Params.Flags:=[fdfSearchInAncestors,fdfExceptionOnNotFound]
|
||||||
+fdfGlobals*Params.Flags;
|
+fdfGlobals*Params.Flags;
|
||||||
|
Loading…
Reference in New Issue
Block a user