[valadoc] Api: Remove ? in signatures of TypeReference to TypeParameters



commit 71abd08207916b74defa86cb6f59caa886ca0e0b
Author: Didier "Ptitjes <ptitjes free fr>
Date:   Tue Oct 20 14:19:21 2009 +0200

    Api: Remove ? in signatures of TypeReference to TypeParameters

 src/libvaladoc/api/typereference.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/libvaladoc/api/typereference.vala b/src/libvaladoc/api/typereference.vala
index 610d6b6..dc1fdfc 100644
--- a/src/libvaladoc/api/typereference.vala
+++ b/src/libvaladoc/api/typereference.vala
@@ -144,7 +144,9 @@ public class Valadoc.Api.TypeReference : Item {
 
 	public bool is_nullable {
 		get {
-			return this.vtyperef.nullable && this.vtyperef is Vala.PointerType == false;
+			return this.vtyperef.nullable
+			       && !(this.vtyperef is Vala.GenericType)
+			       && !(this.vtyperef is Vala.PointerType);
 		}
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]