diff options
author | Daniil Baturin <daniil@baturin.org> | 2016-12-23 08:18:24 +0700 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2016-12-23 08:18:24 +0700 |
commit | 774f08fe9ac955202c484ec040d014eb982c6827 (patch) | |
tree | 2a9b97b46f5d4c0bfa403ad76623a0f4ddb133ec /src/reference_tree.ml | |
parent | 98072015c4be78f3bb4bb048b07d261287173b81 (diff) | |
parent | 2809c58e50206a2c94a1629f80c28a22af28e8c3 (diff) | |
download | vyconf-774f08fe9ac955202c484ec040d014eb982c6827.tar.gz vyconf-774f08fe9ac955202c484ec040d014eb982c6827.zip |
Merge branch 'philsummers-master'
Diffstat (limited to 'src/reference_tree.ml')
-rw-r--r-- | src/reference_tree.ml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/reference_tree.ml b/src/reference_tree.ml index 8b26449..29b4265 100644 --- a/src/reference_tree.ml +++ b/src/reference_tree.ml @@ -189,3 +189,32 @@ let is_hidden reftree path = let is_secret reftree path = let data = Vytree.get_data reftree path in data.secret + +let is_tag reftree path = + let data = Vytree.get_data reftree path in + match data.node_type with + | Tag -> true + | _ -> false + +let is_leaf reftree path = + let data = Vytree.get_data reftree path in + match data.node_type with + | Leaf -> true + | _ -> false + +let is_valueless reftree path = + let data = Vytree.get_data reftree path in + data.valueless + +let get_keep_order reftree path = + let data = Vytree.get_data reftree path in + data.keep_order + +let get_owner reftree path = + let data = Vytree.get_data reftree path in + data.owner + +let get_help_string reftree path = + let data = Vytree.get_data reftree path in + data.help + |