After compiling the file, using
valac foo.vala --library=foo --gir=foo-1.0.gir -C
I expect the method Bar::f to have an instance-parameter (self/this) listed in the GIR output, but it does not. Why? I extracted the relevant bit here:
<method name="f" c:identifier="foo_bar_f">
<return-value transfer-ownership="none" allow-none="1">
<type name="gpointer" c:type="FooBar*"/>
</return-value>
</method>