diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2019-04-17 12:42:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-17 12:42:11 -0500 |
commit | d0c44a9e048558887ab75aaec4c493696c67b456 (patch) | |
tree | ba64a48d289a7d2cde5ff2a2e5886a4babfb441f /src/expr/node.h | |
parent | 5b00f8d6804bf9f71d6169634341011f99d59b8b (diff) |
More use of isClosure (#2959)
Diffstat (limited to 'src/expr/node.h')
-rw-r--r-- | src/expr/node.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/expr/node.h b/src/expr/node.h index 5456f3285..cd7a1f839 100644 --- a/src/expr/node.h +++ b/src/expr/node.h @@ -468,6 +468,10 @@ public: return getMetaKind() == kind::metakind::NULLARY_OPERATOR; } + /** + * Returns true if this node represents a closure, that is an expression + * that binds variables. + */ inline bool isClosure() const { assertTNodeNotExpired(); return getKind() == kind::LAMBDA || getKind() == kind::FORALL |