mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-24 17:29:50 +02:00
fcl-passrc: fixed compile
git-svn-id: trunk@37831 -
This commit is contained in:
parent
327213a0ca
commit
92dbff0c57
@ -623,7 +623,7 @@ type
|
|||||||
DirectAncestor: TPasType; // TPasClassType or TPasAliasType or TPasTypeAliasType
|
DirectAncestor: TPasType; // TPasClassType or TPasAliasType or TPasTypeAliasType
|
||||||
DefaultProperty: TPasProperty;
|
DefaultProperty: TPasProperty;
|
||||||
Flags: TPasClassScopeFlags;
|
Flags: TPasClassScopeFlags;
|
||||||
AbstractProcs: array of TPasProcedure;
|
AbstractProcs: TArrayOfPasProcedure;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
function FindIdentifier(const Identifier: String): TPasIdentifier; override;
|
function FindIdentifier(const Identifier: String): TPasIdentifier; override;
|
||||||
procedure IterateElements(const aName: string; StartScope: TPasScope;
|
procedure IterateElements(const aName: string; StartScope: TPasScope;
|
||||||
@ -4129,6 +4129,35 @@ procedure TPasResolver.FinishMethodDeclHeader(Proc: TPasProcedure);
|
|||||||
Proc.Visibility:=OverloadProc.Visibility;
|
Proc.Visibility:=OverloadProc.Visibility;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{$IF FPC_FULLVERSION<30101}
|
||||||
|
procedure Delete(var A: TArrayOfPasProcedure; Index, Count: integer); overload;
|
||||||
|
var
|
||||||
|
i: Integer;
|
||||||
|
begin
|
||||||
|
if Index<0 then
|
||||||
|
RaiseInternalError(20171227121538);
|
||||||
|
if Index+Count>length(A) then
|
||||||
|
RaiseInternalError(20171227121156);
|
||||||
|
for i:=Index+Count to length(A)-1 do
|
||||||
|
A[i-Count]:=A[i];
|
||||||
|
SetLength(A,length(A)-Count);
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure Insert(Item: TPasProcedure; A: TArrayOfPasProcedure; Index: integer); overload;
|
||||||
|
var
|
||||||
|
i: Integer;
|
||||||
|
begin
|
||||||
|
if Index<0 then
|
||||||
|
RaiseInternalError(20171227121544);
|
||||||
|
if Index>length(A) then
|
||||||
|
RaiseInternalError(20171227121558);
|
||||||
|
SetLength(A,length(A)+1);
|
||||||
|
for i:=length(A)-1 downto Index+1 do
|
||||||
|
A[i]:=A[i-1];
|
||||||
|
A[Index]:=Item;
|
||||||
|
end;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
var
|
var
|
||||||
Abort: boolean;
|
Abort: boolean;
|
||||||
ClassScope: TPasClassScope;
|
ClassScope: TPasClassScope;
|
||||||
|
@ -966,6 +966,8 @@ type
|
|||||||
property MessageType : TProcedureMessageType Read FMessageType Write FMessageType;
|
property MessageType : TProcedureMessageType Read FMessageType Write FMessageType;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
TArrayOfPasProcedure = array of TPasProcedure;
|
||||||
|
|
||||||
TPasFunction = class(TPasProcedure)
|
TPasFunction = class(TPasProcedure)
|
||||||
private
|
private
|
||||||
function GetFT: TPasFunctionType; inline;
|
function GetFT: TPasFunctionType; inline;
|
||||||
|
Loading…
Reference in New Issue
Block a user