mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-24 09:19:50 +01:00
codetools: test find declaration in initialization
git-svn-id: trunk@56471 -
This commit is contained in:
parent
c55c710790
commit
a816c9155d
@ -28,6 +28,9 @@ type
|
|||||||
procedure DefaultHandler(var message); override;
|
procedure DefaultHandler(var message); override;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
var
|
||||||
|
InstanceA: TMyClass2{declaration:fdt_basic.TMyClass2};
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
{ TMyClass1 }
|
{ TMyClass1 }
|
||||||
@ -57,5 +60,8 @@ begin
|
|||||||
inherited DefaultHandler{declaration:fdt_basic.TMyClass1.DefaultHandler}(message);
|
inherited DefaultHandler{declaration:fdt_basic.TMyClass1.DefaultHandler}(message);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
initialization
|
||||||
|
InstanceA{declaration:fdt_basic.InstanceA}:=TMyClass2{declaration:fdt_basic.TMyClass2}.Create{declaration:fdt_basic.TMyClass1.Create};
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|||||||
@ -90,7 +90,6 @@ var
|
|||||||
IncCode: TCodeBuffer;
|
IncCode: TCodeBuffer;
|
||||||
begin
|
begin
|
||||||
UnitCode:=CodeToolBoss.CreateFile('TestMethodJumpTool1.pas');
|
UnitCode:=CodeToolBoss.CreateFile('TestMethodJumpTool1.pas');
|
||||||
IncCode:=CodeToolBoss.CreateFile('TestMethodJumpTool2.inc');
|
|
||||||
UnitCode.Source:=''
|
UnitCode.Source:=''
|
||||||
+'unit TestMethodJumpTool1;'+LineEnding
|
+'unit TestMethodJumpTool1;'+LineEnding
|
||||||
+'interface'+LineEnding
|
+'interface'+LineEnding
|
||||||
@ -101,6 +100,7 @@ begin
|
|||||||
+'{$DEFINE UseImplementation}'
|
+'{$DEFINE UseImplementation}'
|
||||||
+'{$I TestMethodJumpTool2.inc}'+LineEnding
|
+'{$I TestMethodJumpTool2.inc}'+LineEnding
|
||||||
+'end.'+LineEnding;
|
+'end.'+LineEnding;
|
||||||
|
IncCode:=CodeToolBoss.CreateFile('TestMethodJumpTool2.inc');
|
||||||
IncCode.Source:=''
|
IncCode.Source:=''
|
||||||
+'{%MainUnit TestMethodJumpTool1.pas}'+LineEnding
|
+'{%MainUnit TestMethodJumpTool1.pas}'+LineEnding
|
||||||
+'{$IFDEF UseInterface}'+LineEnding
|
+'{$IFDEF UseInterface}'+LineEnding
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user