MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / host

Function host

__tests__/pascal-nested-routines.test.ts:71–101  ·  view source on GitHub ↗
(implementation: string)

Source from the content-addressed store, hash-verified

69`;
70
71function host(implementation: string): string {
72 return `unit Host;
73
74interface
75
76uses Lib;
77
78type
79 THost = class
80 public
81 procedure Read;
82 procedure Fire;
83 function Count(O: TObject): Integer;
84 end;
85
86 TOther = class
87 public
88 function Count(O: TObject): Integer;
89 end;
90
91implementation
92
93function THost.Count(O: TObject): Integer; begin Result := 0; end;
94procedure THost.Read; begin end;
95function TOther.Count(O: TObject): Integer; begin Result := 1; end;
96
97${implementation}
98
99end.
100`;
101}
102
103describe('Pascal nested routines', () => {
104 it('indexes a nested routine as a function of its own, called by the routine that declares it', async () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected