summaryrefslogtreecommitdiff
path: root/tests/scanner/annotationparser/gi/annotation_allow_none.xml
blob: ae6b3b37409c89383921161c8296177a549d6946 (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
<?xml version="1.0" encoding="UTF-8"?>

<tests xmlns="http://schemas.gnome.org/gobject-introspection/2013/test">

<test>
  <input>/**
 * annotation_object_inout:
 * @object: a #GObject
 * @inoutarg: (inout) (allow-none): This is an argument test
 *
 * This is a test for out arguments
 *
 * Return value: (allow-none): an int
 */</input>
  <parser>
    <docblock>
      <identifier>
        <name>annotation_object_inout</name>
      </identifier>
      <parameters>
        <parameter>
          <name>object</name>
          <description>a #GObject</description>
        </parameter>
        <parameter>
          <name>inoutarg</name>
          <annotations>
            <annotation>
              <name>inout</name>
            </annotation>
            <annotation>
              <name>allow-none</name>
            </annotation>
          </annotations>
          <description>This is an argument test</description>
        </parameter>
      </parameters>
      <description>This is a test for out arguments</description>
      <tags>
        <tag>
          <name>returns</name>
          <annotations>
            <annotation>
              <name>allow-none</name>
            </annotation>
          </annotations>
          <description>an int</description>
        </tag>
      </tags>
    </docblock>
  </parser>
  <output>/**
 * annotation_object_inout:
 * @object: a #GObject
 * @inoutarg: (inout) (allow-none): This is an argument test
 *
 * This is a test for out arguments
 *
 * Returns: (allow-none): an int
 */</output>
</test>

</tests>