mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 20:59:36 +02:00
MG: get compatible published methods now works
git-svn-id: trunk@1392 -
This commit is contained in:
parent
46ae7f0d85
commit
100ab29f02
@ -178,8 +178,8 @@ type
|
||||
var NewX, NewY, NewTopLine: integer): boolean;
|
||||
|
||||
// functions for events in the object inspector
|
||||
procedure GetCompatibleMethods(Code: TCodeBuffer; const AClassName: string;
|
||||
TypeData: PTypeData; Proc: TGetStringProc);
|
||||
function GetCompatibleMethods(Code: TCodeBuffer; const AClassName: string;
|
||||
TypeData: PTypeData; Proc: TGetStringProc): boolean;
|
||||
function MethodExists(Code:TCodeBuffer; const AClassName,
|
||||
AMethodName: string; TypeData: PTypeData): boolean;
|
||||
function JumpToMethodBody(Code: TCodeBuffer;
|
||||
@ -712,18 +712,19 @@ writeln('TCodeToolManager.GuessUnclosedBlock END ');
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
procedure TCodeToolManager.GetCompatibleMethods(Code: TCodeBuffer;
|
||||
const AClassName: string; TypeData: PTypeData; Proc: TGetStringProc);
|
||||
function TCodeToolManager.GetCompatibleMethods(Code: TCodeBuffer;
|
||||
const AClassName: string; TypeData: PTypeData; Proc: TGetStringProc): boolean;
|
||||
begin
|
||||
{$IFDEF CTDEBUG}
|
||||
writeln('TCodeToolManager.GetCompatibleMethods A ',Code.Filename,' Classname=',AClassname);
|
||||
{$ENDIF}
|
||||
Result:=InitCurCodeTool(Code);
|
||||
if not InitCurCodeTool(Code) then exit;
|
||||
try
|
||||
FCurCodeTool.GetCompatiblePublishedMethods(UpperCaseStr(AClassName),
|
||||
Result:=FCurCodeTool.GetCompatiblePublishedMethods(UpperCaseStr(AClassName),
|
||||
TypeData,Proc);
|
||||
except
|
||||
on e: Exception do HandleException(e);
|
||||
on e: Exception do Result:=HandleException(e);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
@ -834,6 +834,7 @@ begin
|
||||
WordIsPredefinedIdentifier:=TKeyWordFunctionList.Create;
|
||||
KeyWordLists.Add(WordIsPredefinedIdentifier);
|
||||
with WordIsPredefinedIdentifier do begin
|
||||
Add('POINTER' ,{$ifdef FPC}@{$endif}AllwaysTrue);
|
||||
Add('INT64' ,{$ifdef FPC}@{$endif}AllwaysTrue);
|
||||
Add('CARDINAL' ,{$ifdef FPC}@{$endif}AllwaysTrue);
|
||||
Add('QWORD' ,{$ifdef FPC}@{$endif}AllwaysTrue);
|
||||
|
@ -2052,6 +2052,7 @@ end;
|
||||
|
||||
procedure TMethodPropertyEditor.GetValues(Proc: TGetStringProc);
|
||||
begin
|
||||
writeln('### TMethodPropertyEditor.GetValues');
|
||||
PropertyHook.GetMethods(GetTypeData(GetPropType), Proc);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user