summaryrefslogtreecommitdiff
path: root/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooBUnion.page
diff options
context:
space:
mode:
authorGiovanni Campagna <gcampagna@src.gnome.org>2014-02-20 02:35:23 +0100
committerGiovanni Campagna <gcampagna@src.gnome.org>2014-02-20 02:40:03 +0100
commit6cc9207cbdb1328c746e0899f459bb09d1e3e954 (patch)
treeb73473301bb202ea882c966ffadb3accbeab8ed4 /tests/scanner/Regress-1.0-Gjs-expected/Regress.FooBUnion.page
parente70abadf0dd7d5312311926ec5b5130e1933d83b (diff)
downloadgobject-introspection-6cc9207cbdb1328c746e0899f459bb09d1e3e954.tar.gz
doctool/Gjs: some more fixes for structs and unions
Stop pretending we have fields on unions (only methods are supported). Add minimal support (ie, don't crash) to nested structures, that due to how ast works have namespace None (and the transformers hard-depend on that). Uncovered by GLib's GDoubleIEEE754, before I removed union fields. For some reason, RegressTestStructE (anonymous union) has a completely different behavior and generates a weird name, while RegressLikeGnomeKeyringSchema (array of unnamed structs) becomes array(gpointer). Bah, one should have methods anyway...
Diffstat (limited to 'tests/scanner/Regress-1.0-Gjs-expected/Regress.FooBUnion.page')
-rw-r--r--tests/scanner/Regress-1.0-Gjs-expected/Regress.FooBUnion.page5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooBUnion.page b/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooBUnion.page
index 91f431b8..a5ef038a 100644
--- a/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooBUnion.page
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooBUnion.page
@@ -12,10 +12,7 @@
<synopsis><code>
const Regress = imports.gi.Regress;
-let fooBUnion = new Regress.FooBUnion({
- <link xref='Regress.FooBUnion-type'>type</link>: value
- <link xref='Regress.FooBUnion-v'>v</link>: value
-});
+let fooBUnion = new Regress.FooBUnion();
</code></synopsis>