From c690d56d9f043a4a1abff003b48bd4034ab7cb78 Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Sat, 7 Apr 2012 03:59:54 +0200 Subject: [PATCH] Added a property to determine if the node is null. --- dyaml/node.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dyaml/node.d b/dyaml/node.d index 48b9914..2433e5b 100644 --- a/dyaml/node.d +++ b/dyaml/node.d @@ -456,6 +456,9 @@ struct Node ///Is this node a user defined type? @property bool isUserType() const {return isType!YAMLObject;} + ///Is this node null? + @property bool isNull() const {return isType!YAMLNull;} + ///Return tag of the node. @property string tag() const {return tag_.get;} @@ -1527,9 +1530,6 @@ struct Node //Is the value a timestamp? alias isType!SysTime isTime; - //Is the value a null value? - alias isType!YAMLNull isNull; - //Does given node have the same type as this node? bool hasEqualType(const ref Node node) const {