mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 16:56:01 +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;
|
out InheritedDeclContext: TFindContext;
|
||||||
ProcName: string = '' // default is 'Assign'
|
ProcName: string = '' // default is 'Assign'
|
||||||
): boolean;
|
): 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;
|
function AddAssignMethod(ClassNode: TCodeTreeNode; MemberNodeExts: TFPList;
|
||||||
const ProcName, ParamName, ParamType: string;
|
const ProcName, ParamName, ParamType: string;
|
||||||
OverrideMod, CallInherited, CallInheritedOnlyInElse: boolean;
|
OverrideMod, CallInherited, CallInheritedOnlyInElse: boolean;
|
||||||
@ -6253,6 +6260,19 @@ begin
|
|||||||
NewPos,NewTopLine, BlockTopLine, BlockBottomLine);
|
NewPos,NewTopLine, BlockTopLine, BlockBottomLine);
|
||||||
end;
|
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(
|
function TCodeCompletionCodeTool.GetPossibleInitsForVariable(
|
||||||
CursorPos: TCodeXYPosition; out Statements: TStrings; out
|
CursorPos: TCodeXYPosition; out Statements: TStrings; out
|
||||||
InsertPositions: TObjectList; SourceChangeCache: TSourceChangeCache): boolean;
|
InsertPositions: TObjectList; SourceChangeCache: TSourceChangeCache): boolean;
|
||||||
|
@ -473,6 +473,9 @@ type
|
|||||||
out NewX, NewY, NewTopLine: integer): boolean;
|
out NewX, NewY, NewTopLine: integer): boolean;
|
||||||
function FindSmartHint(Code: TCodeBuffer; X,Y: integer;
|
function FindSmartHint(Code: TCodeBuffer; X,Y: integer;
|
||||||
Flags: TFindSmartFlags = DefaultFindSmartHintFlags): string;
|
Flags: TFindSmartFlags = DefaultFindSmartHintFlags): string;
|
||||||
|
function FindDeclarationInInterface(Code: TCodeBuffer;
|
||||||
|
const Identifier: string; out NewCode: TCodeBuffer;
|
||||||
|
out NewX, NewY, NewTopLine: integer): boolean;
|
||||||
function FindDeclarationInInterface(Code: TCodeBuffer;
|
function FindDeclarationInInterface(Code: TCodeBuffer;
|
||||||
const Identifier: string; out NewCode: TCodeBuffer;
|
const Identifier: string; out NewCode: TCodeBuffer;
|
||||||
out NewX, NewY, NewTopLine, BlockTopLine, BlockBottomLine: integer): boolean;
|
out NewX, NewY, NewTopLine, BlockTopLine, BlockBottomLine: integer): boolean;
|
||||||
@ -2181,6 +2184,16 @@ begin
|
|||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
end;
|
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;
|
function TCodeToolManager.FindDeclarationWithMainUsesSection(Code: TCodeBuffer;
|
||||||
const Identifier: string; out NewCode: TCodeBuffer;
|
const Identifier: string; out NewCode: TCodeBuffer;
|
||||||
out NewX, NewY, NewTopLine: integer): Boolean;
|
out NewX, NewY, NewTopLine: integer): Boolean;
|
||||||
|
Loading…
Reference in New Issue
Block a user