aboutsummaryrefslogtreecommitdiffstats
path: root/AST.h
diff options
context:
space:
mode:
Diffstat (limited to 'AST.h')
-rwxr-xr-xAST.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/AST.h b/AST.h
index d769aa22..a99bc39c 100755
--- a/AST.h
+++ b/AST.h
@@ -182,6 +182,10 @@ struct FunctionDescription
FunctionDescription(std::shared_ptr<FunctionType const> _type, Declaration const* _decl):
m_description(_type, _decl){}
+ /// constructor for a constructor's function definition. Used only inside mix.
+ FunctionDescription(Declaration const* _def):
+ m_description(nullptr, _def){}
+
FunctionDescription():
m_description(nullptr, nullptr){}