summaryrefslogtreecommitdiff
path: root/src/ir.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir.c')
-rw-r--r--src/ir.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ir.c b/src/ir.c
index 8084c40..7a1bc5a 100644
--- a/src/ir.c
+++ b/src/ir.c
@@ -483,6 +483,12 @@ type_map_new(struct webidl_node *node,
cure->modifier = WEBIDL_TYPE_MODIFIER_NONE;
}
+ /* type nullability */
+ cure->nullable = (webidl_node_find_type(
+ webidl_node_getnode(type_node),
+ NULL,
+ WEBIDL_NODE_TYPE_TYPE_NULLABLE) != NULL);
+
/* type name */
cure->name = webidl_node_gettext(
webidl_node_find_type(