mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 12:29:14 +02:00
pastojs: class in implementation
git-svn-id: trunk@35920 -
This commit is contained in:
parent
f95be9c80d
commit
1279451c0f
@ -7430,7 +7430,7 @@ begin
|
||||
Call.Expr:=CreateMemberExpression([FBuiltInNames[pbivnRTL],FBuiltInNames[pbifnCreateClass]]);
|
||||
|
||||
// add parameter: owner. For top level class, the module is the owner.
|
||||
if El.Parent is TImplementationSection then
|
||||
if (El.Parent<>nil) and (El.Parent.ClassType=TImplementationSection) then
|
||||
OwnerName:=AContext.GetLocalName(El.Parent)
|
||||
else
|
||||
OwnerName:=AContext.GetLocalName(El.GetModule);
|
||||
|
Loading…
Reference in New Issue
Block a user