summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-06-17 18:05:09 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2021-08-05 17:47:29 +0100
commit9b5eae6427ea8132447e5940ed5cd12ead01a82a (patch)
tree96a16c1bed1404eed92c539d22fdb8b463b71b1b /tests
parentde2f64c43b5a2d6b252c3cf716466041492e5dc6 (diff)
downloadgobject-introspection-9b5eae6427ea8132447e5940ed5cd12ead01a82a.tar.gz
scanner: Try to pair properties with accessor methods
The heuristic is pretty trivial: for any given non-construct-only, writable property, we check if there's a `set_<property>` method; for any given readable property, we check if there's a `get_<property>` method.
Diffstat (limited to 'tests')
-rw-r--r--tests/scanner/Regress-1.0-expected.gir11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir
index bc8eb9f2..4786080e 100644
--- a/tests/scanner/Regress-1.0-expected.gir
+++ b/tests/scanner/Regress-1.0-expected.gir
@@ -4730,7 +4730,10 @@ raise an error.</doc>
</parameter>
</parameters>
</method>
- <property name="bare" writable="1" transfer-ownership="none">
+ <property name="bare"
+ writable="1"
+ transfer-ownership="none"
+ setter="set_bare">
<type name="GObject.Object"/>
</property>
<property name="boxed" writable="1" transfer-ownership="none">
@@ -5679,7 +5682,11 @@ the introspection client langage.</doc>
</parameter>
</parameters>
</method>
- <property name="testbool" writable="1" transfer-ownership="none">
+ <property name="testbool"
+ writable="1"
+ transfer-ownership="none"
+ setter="set_testbool"
+ getter="get_testbool">
<type name="gboolean" c:type="gboolean"/>
</property>
<field name="parent_instance">