summaryrefslogtreecommitdiff
path: root/src/tests/eolian_js/constructor_method_class.eo
blob: 416a5917861a7df6ee357e858b0b6d0996149989 (plain)
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
class Constructor_Method_Class (Eo.Base)
{
   data: Constructor_Method_Class_Data;
   methods {
      @property fail {
         get {
         }
         values {
            is_fail: bool;
         }
      }
      constructor1 {
         params { @in one: int; }
      }
      constructor2 {
         params { @in two: double; }
      }
      method1 {
         params { @in one: int; }
      }
      method2 {
         params { @in one: int; }
         return: int;
      }
      method3 {
         params { @in one: int; @in two: double; }
      }
      method4 {
         params { @in one: int; @in two: double; }
         return: int;
      }
      outmethod1 {
         params { @out one: int; }
      }
      outmethod2 {
         params { @out one: int; }
         return: int;
      }
      outmethod3 {
         params { @out one: int; @out two: double; }
      }
      classoutmethod1 {
         params { @in one: int; @in two: double; }
         return: free(own(Constructor_Method_Class *), eo_unref) @warn_unused;
      }
      classoutmethod2 {
         params { @in one: int; @in two: double; @out out_class: own(Constructor_Method_Class *); }
      }
   }
   implements {
      Eo.Base.constructor;
      Eo.Base.finalize;
   }
   constructors {
      .constructor1;
      .constructor2;
   }
}