summaryrefslogtreecommitdiff
path: root/giscanner/ast.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r--giscanner/ast.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py
index 130f50c5..35a764a7 100644
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -780,7 +780,15 @@ class Parameter(TypeContainer):
TypeContainer.__init__(self, typenode, transfer)
self.argname = argname
self.direction = direction
- self.allow_none = allow_none
+ self.nullable = False
+ self.optional = False
+
+ if allow_none:
+ if self.direction == PARAM_DIRECTION_OUT:
+ self.optional = True
+ else:
+ self.nullable = True
+
self.scope = scope
self.caller_allocates = caller_allocates
self.closure_name = None