File: api-test.data.vapi

package info (click to toggle)
valadoc 0.23.2~git20140902-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,204 kB
  • ctags: 2
  • sloc: makefile: 897; sh: 95
file content (127 lines) | stat: -rw-r--r-- 2,736 bytes parent folder | download | duplicates (2)
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127


using GLib;

/*
	Todo:
		- private / protected / internal
		- comments
		- parent
		- inheritance, interface impl
			- virtual, abstract, override
		- generics
*/


// global tests:
public delegate void test_delegate_global ();
public void test_function_global ();
public int test_field_global;
public const int test_const_global;


// Checked
public errordomain TestErrDomGlobal {
	ERROR1,
	ERROR2;

	public void method ();
	public static void static_method ();
}


// Checked
public enum TestEnumGlobal {
	ENVAL1 = 100,
	ENVAL2;

	public void method ();
	public static void static_method ();
}


// Checked
public class TestClassGlobal {
	public class InnerClass {
	}

	public struct InnerStruct {
	}

	public const int constant;
	public static int field1;
	public int field2;
	public TestClassGlobal ();
	public TestClassGlobal.named ();
	public void method ();
	public static void static_method ();
	public int property1 { get; set; }
	public int property2 { get; }
	public int property3 { owned get; construct set; }
	public delegate int Foo ();
	public signal int sig ();
}


// Checked
public interface TestInterfaceGlobal {
	public const int constant;
	public void method ();
	public static void static_method ();
	public int property1 { get; set; }
	public int property2 { get; }
	public int property3 { owned get; construct set; }
	public delegate int Foo ();
	public signal int sig ();
}


// Checked
public struct TestStructGlobal {
	public static int field1;
	public int field2;
	public TestStructGlobal ();
	public TestStructGlobal.named ();
	public void method ();
	public static void static_method ();
	public const int constant;
}


namespace ParamTest {
	public void test_function_param_1 ();
	public void test_function_param_2 (int a);
	public void test_function_param_3 (ref int a);
	public void test_function_param_4 (out int a);
	public void test_function_param_5 (owned Object o);
	public void test_function_param_6 (int? a);
	public void test_function_param_7 (...);
	public void test_function_param_8 (int a = 1);
	public void test_function_param_9 (int a, ref int b, out int c, owned Object d, int? e, int f = 1, ...);

	public void test_function_param_10 (int* a);
	public void test_function_param_11 (int** a);

	public void test_function_param_12 (int[] a);
	public void test_function_param_13 (int[,,] a);
	public void test_function_param_14 (int[][] a);
}


namespace ReturnTest {
	public void test_function_1 ();
	public int test_function_2 ();
	public int? test_function_3 ();
	public unowned string test_function_4 ();

	public int* test_function_5 ();
	public int** test_function_6 ();

	public int[] test_function_7 ();
	public int[,,] test_function_8 ();
	public int[][] test_function_9 ();
}