Add a function to check if a tree node has a scope.

This commit is contained in:
2018-03-24 00:36:10 -07:00
parent b6ab42f53a
commit 77123561f0
2 changed files with 13 additions and 0 deletions

View File

@@ -98,6 +98,13 @@ int libab_tree_has_string(libab_tree_variant var);
* @return true if the tree node variant contains a type.
*/
int libab_tree_has_type(libab_tree_variant var);
/**
* Determines if the given tree node
* variant contains a scope.
* @param var the variant of the tree node.
* @return true if the node variant contains a scope.
*/
int libab_tree_has_scope(libab_tree_variant var);
/**
* Determines if the given tree node variant
* should contain a vector.