mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 20:56:31 +02:00
CodeTools: return method overloads for compatibility after r55031 #3ec399d85a
git-svn-id: trunk@55037 -
This commit is contained in:
parent
5abb0b0ca3
commit
c3ef5a5623
@ -355,6 +355,13 @@ type
|
||||
out InheritedDeclContext: TFindContext;
|
||||
ProcName: string = '' // default is 'Assign'
|
||||
): boolean;
|
||||
function AddAssignMethod(ClassNode: TCodeTreeNode; MemberNodeExts: TFPList;
|
||||
const ProcName, ParamName, ParamType: string;
|
||||
OverrideMod, CallInherited, CallInheritedOnlyInElse: boolean;
|
||||
SourceChanger: TSourceChangeCache;
|
||||
out NewPos: TCodeXYPosition; out NewTopLine: integer;
|
||||
LocalVarName: string = '' // default is 'aSource'
|
||||
): boolean;
|
||||
function AddAssignMethod(ClassNode: TCodeTreeNode; MemberNodeExts: TFPList;
|
||||
const ProcName, ParamName, ParamType: string;
|
||||
OverrideMod, CallInherited, CallInheritedOnlyInElse: boolean;
|
||||
@ -6253,6 +6260,19 @@ begin
|
||||
NewPos,NewTopLine, BlockTopLine, BlockBottomLine);
|
||||
end;
|
||||
|
||||
function TCodeCompletionCodeTool.AddAssignMethod(ClassNode: TCodeTreeNode;
|
||||
MemberNodeExts: TFPList; const ProcName, ParamName, ParamType: string;
|
||||
OverrideMod, CallInherited, CallInheritedOnlyInElse: boolean;
|
||||
SourceChanger: TSourceChangeCache; out NewPos: TCodeXYPosition; out
|
||||
NewTopLine: integer; LocalVarName: string): boolean;
|
||||
var
|
||||
BlockTopLine, BlockBottomLine: integer;
|
||||
begin
|
||||
Result := AddAssignMethod(ClassNode, MemberNodeExts, ProcName, ParamName, ParamType,
|
||||
OverrideMod, CallInherited, CallInheritedOnlyInElse, SourceChanger, NewPos, NewTopLine,
|
||||
BlockTopLine, BlockBottomLine, LocalVarName);
|
||||
end;
|
||||
|
||||
function TCodeCompletionCodeTool.GetPossibleInitsForVariable(
|
||||
CursorPos: TCodeXYPosition; out Statements: TStrings; out
|
||||
InsertPositions: TObjectList; SourceChangeCache: TSourceChangeCache): boolean;
|
||||
|
@ -473,6 +473,9 @@ type
|
||||
out NewX, NewY, NewTopLine: integer): boolean;
|
||||
function FindSmartHint(Code: TCodeBuffer; X,Y: integer;
|
||||
Flags: TFindSmartFlags = DefaultFindSmartHintFlags): string;
|
||||
function FindDeclarationInInterface(Code: TCodeBuffer;
|
||||
const Identifier: string; out NewCode: TCodeBuffer;
|
||||
out NewX, NewY, NewTopLine: integer): boolean;
|
||||
function FindDeclarationInInterface(Code: TCodeBuffer;
|
||||
const Identifier: string; out NewCode: TCodeBuffer;
|
||||
out NewX, NewY, NewTopLine, BlockTopLine, BlockBottomLine: integer): boolean;
|
||||
@ -2181,6 +2184,16 @@ begin
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
function TCodeToolManager.FindDeclarationInInterface(Code: TCodeBuffer;
|
||||
const Identifier: string; out NewCode: TCodeBuffer; out NewX, NewY,
|
||||
NewTopLine: integer): boolean;
|
||||
var
|
||||
BlockTopLine, BlockBottomLine: integer;
|
||||
begin
|
||||
Result := FindDeclarationInInterface(Code, Identifier, NewCode, NewX, NewY, NewTopLine,
|
||||
BlockTopLine, BlockBottomLine);
|
||||
end;
|
||||
|
||||
function TCodeToolManager.FindDeclarationWithMainUsesSection(Code: TCodeBuffer;
|
||||
const Identifier: string; out NewCode: TCodeBuffer;
|
||||
out NewX, NewY, NewTopLine: integer): Boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user