|
@@ -203,6 +203,7 @@ type
|
|
virtual;
|
|
virtual;
|
|
function CreateFunctionType(const AName, AResultName: String; AParent: TPasElement;
|
|
function CreateFunctionType(const AName, AResultName: String; AParent: TPasElement;
|
|
UseParentAsResultParent: Boolean; const ASrcPos: TPasSourcePos; TypeParams: TFPList = nil): TPasFunctionType;
|
|
UseParentAsResultParent: Boolean; const ASrcPos: TPasSourcePos; TypeParams: TFPList = nil): TPasFunctionType;
|
|
|
|
+ procedure AddOwnedElement(El: TPasElement); virtual;
|
|
function FindElement(const AName: String): TPasElement; virtual; abstract;
|
|
function FindElement(const AName: String): TPasElement; virtual; abstract;
|
|
function FindElementFor(const AName: String; AParent: TPasElement; TypeParamCount: integer): TPasElement; virtual;
|
|
function FindElementFor(const AName: String; AParent: TPasElement; TypeParamCount: integer): TPasElement; virtual;
|
|
procedure BeginScope(ScopeType: TPasScopeType; El: TPasElement); virtual;
|
|
procedure BeginScope(ScopeType: TPasScopeType; El: TPasElement); virtual;
|
|
@@ -916,6 +917,11 @@ begin
|
|
visDefault, ASrcPos, TypeParams));
|
|
visDefault, ASrcPos, TypeParams));
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+procedure TPasTreeContainer.AddOwnedElement(El: TPasElement);
|
|
|
|
+begin
|
|
|
|
+ FOwnedElements.Add(El);
|
|
|
|
+end;
|
|
|
|
+
|
|
function TPasTreeContainer.FindElementFor(const AName: String;
|
|
function TPasTreeContainer.FindElementFor(const AName: String;
|
|
AParent: TPasElement; TypeParamCount: integer): TPasElement;
|
|
AParent: TPasElement; TypeParamCount: integer): TPasElement;
|
|
begin
|
|
begin
|