File: tfind_ref_nestclass.pas

package info (click to toggle)
lazarus 4.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 275,760 kB
  • sloc: pascal: 2,341,904; xml: 509,420; makefile: 348,726; cpp: 93,608; sh: 3,387; java: 609; perl: 297; sql: 222; ansic: 137
file content (35 lines) | stat: -rw-r--r-- 710 bytes parent folder | download
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
program Project1{ TODO findrefs:C,...};
uses Classes;
type
  TFoo{findrefs:C,3,4;17,17;11,18;6,19;15,20;17,23;3,30;12,31;26,32;17,33} = class // TODO: misses 15,3
  type

    { TBar }

    TBar{findrefs:5,9;22,17;22,23;8,30;17,31;31,32;22,33} = class
      class procedure abc{findrefs:23,10;27,17;13,30;22,31};
      class procedure def{findrefs:C,23,11;21,18;27,23;36,32;27,33};
    end;
  end;

{ TFoo.TBar }

class procedure TFoo.TBar.abc;
begin  // TFoo.TBar.def
  // TFoo.TBar.abc
  // Project1.TFoo.TBar.abc
end;

class procedure TFoo.TBar.def;
begin
end;

var
  a: TMethod;
begin
  TFoo.TBar.abc;
  Project1.TFoo.TBar.abc;
  a := TMethod(@Project1.TFoo.TBar.def);
  a := TMethod(@TFoo.TBar.def);
end.