-
-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathDelphiAIDev.CodeCompletion.Vars.pas
More file actions
79 lines (66 loc) · 1.73 KB
/
DelphiAIDev.CodeCompletion.Vars.pas
File metadata and controls
79 lines (66 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
unit DelphiAIDev.CodeCompletion.Vars;
interface
uses
System.SysUtils,
System.Classes,
ToolsAPI;
type
TDelphiAIDevCodeCompletionVars = class
private
FRelease: Boolean;
FModule: IOTAModule;
FLineIni: Integer;
FLineEnd: Integer;
FRow: Integer;
FColumn: Integer;
FContents: TStrings;
FFullUnitInterface: string;
constructor Create;
public
class function GetInstance: TDelphiAIDevCodeCompletionVars;
destructor Destroy; override;
procedure Clear;
property Release: Boolean read FRelease write FRelease;
property Module: IOTAModule read FModule write FModule;
property LineIni: Integer read FLineIni write FLineIni;
property LineEnd: Integer read FLineEnd write FLineEnd;
property Row: Integer read FRow write FRow;
property Column: Integer read FColumn write FColumn;
property Contents: TStrings read FContents write FContents;
property FullUnitInterface: string read FFullUnitInterface write FFullUnitInterface;
end;
implementation
var
Instance: TDelphiAIDevCodeCompletionVars;
class function TDelphiAIDevCodeCompletionVars.GetInstance: TDelphiAIDevCodeCompletionVars;
begin
if not Assigned(Instance) then
Instance := Self.Create;
Result := Instance;
end;
constructor TDelphiAIDevCodeCompletionVars.Create;
begin
FContents := TStringList.Create;
Self.Clear;
end;
destructor TDelphiAIDevCodeCompletionVars.Destroy;
begin
FContents.Free;
inherited;
end;
procedure TDelphiAIDevCodeCompletionVars.Clear;
begin
FRelease := False;
FModule := nil;
FLineIni := 0;
FLineEnd := 0;
FRow := 0;
FColumn := 0;
FContents.Clear;
FFullUnitInterface := '';
end;
initialization
finalization
if Assigned(Instance) then
FreeAndNil(Instance);
end.