Skip to content

Commit

Permalink
Make Node type identification properties public
Browse files Browse the repository at this point in the history
  • Loading branch information
forbjok committed Dec 8, 2016
1 parent 503357e commit 22c432f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/dyaml/node.d
Original file line number Diff line number Diff line change
Expand Up @@ -1631,6 +1631,7 @@ struct Node
return (cast(nothrowType)&value_.type)();
}

public:
// Determine if the value stored by the node is of specified type.
//
// This only works for default YAML types, not for user defined types.
Expand All @@ -1639,7 +1640,6 @@ struct Node
return this.type is typeid(Unqual!T);
}

private:
// Is the value a bool?
alias isType!bool isBool;

Expand Down Expand Up @@ -1685,6 +1685,7 @@ struct Node
else {return false;}
}

private:
// Implementation of contains() and containsKey().
bool contains_(T, Flag!"key" key, string func)(T rhs) const @trusted
{
Expand Down

0 comments on commit 22c432f

Please sign in to comment.