blob: 8211dc7b1a19a02003c2e61e6389b0525d7eb6ee (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
<?xml version="1.0" encoding="UTF-8"?>
<tests>
<test>
<commentblock>/**
* AnnotationNotifyFunc:
* @data: (closure): The user data
*
* This is a callback with a 'closure' argument that is not named
* 'user_data' and hence has to be annotated.
*/</commentblock>
<docblock>
<identifier>
<name>AnnotationNotifyFunc</name>
</identifier>
<parameters>
<parameter>
<name>data</name>
<annotations>
<annotation>
<name>closure</name>
</annotation>
</annotations>
<description>The user data</description>
</parameter>
</parameters>
<description>This is a callback with a 'closure' argument that is not named
'user_data' and hence has to be annotated.</description>
</docblock>
</test>
<test>
<commentblock>/**
* annotation_custom_destroy:
* @callback: (destroy destroy) (closure data): Destroy notification
*
* Test messing up the heuristic of closure/destroy-notification
* detection, and fixing it via annotations.
*/</commentblock>
<docblock>
<identifier>
<name>annotation_custom_destroy</name>
</identifier>
<parameters>
<parameter>
<name>callback</name>
<annotations>
<annotation>
<name>destroy</name>
<options>
<option>
<name>destroy</name>
</option>
</options>
</annotation>
<annotation>
<name>closure</name>
<options>
<option>
<name>data</name>
</option>
</options>
</annotation>
</annotations>
<description>Destroy notification</description>
</parameter>
</parameters>
<description>Test messing up the heuristic of closure/destroy-notification
detection, and fixing it via annotations.</description>
</docblock>
</test>
</tests>
|