Added a property to determine if the node is null.
This commit is contained in:
parent
5aacfe79b2
commit
c690d56d9f
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue