summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2014-05-07 22:30:05 -0400
committerRyan Lortie <desrt@desrt.ca>2014-05-07 22:30:05 -0400
commit7089775023ccf4ea788b9b7ca34283bfffa3648b (patch)
tree3040dd13486d23f231050d1f92a6958506bc4929
parent3c9882840e75d60b82aa26e6494e494d994279c3 (diff)
downloadgobject-introspection-7089775023ccf4ea788b9b7ca34283bfffa3648b.tar.gz
giscanner: allow (nullable) and (optional)
Add (nullable) and (optional) as recognised annotations in the same places that (allow-none) is allowed. This should have been done in the previous commits but the tests were passing because the only ill effect was that a warning was issued.
-rw-r--r--giscanner/annotationparser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py
index ecbfdce6..20861dc3 100644
--- a/giscanner/annotationparser.py
+++ b/giscanner/annotationparser.py
@@ -959,7 +959,7 @@ class GtkDocParameter(GtkDocAnnotatable):
valid_annotations = (ANN_ALLOW_NONE, ANN_ARRAY, ANN_ATTRIBUTES, ANN_CLOSURE, ANN_DESTROY,
ANN_ELEMENT_TYPE, ANN_IN, ANN_INOUT, ANN_OUT, ANN_SCOPE, ANN_SKIP,
- ANN_TRANSFER, ANN_TYPE)
+ ANN_TRANSFER, ANN_TYPE, ANN_OPTIONAL, ANN_NULLABLE)
def __init__(self, name, position=None):
GtkDocAnnotatable.__init__(self, position)
@@ -982,7 +982,7 @@ class GtkDocTag(GtkDocAnnotatable):
__slots__ = ('name', 'value', 'description')
valid_annotations = (ANN_ALLOW_NONE, ANN_ARRAY, ANN_ATTRIBUTES, ANN_ELEMENT_TYPE, ANN_SKIP,
- ANN_TRANSFER, ANN_TYPE)
+ ANN_TRANSFER, ANN_TYPE, ANN_NULLABLE, ANN_OPTIONAL)
def __init__(self, name, position=None):
GtkDocAnnotatable.__init__(self, position)