aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'AST.cpp')
-rw-r--r--AST.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/AST.cpp b/AST.cpp
index c7d617b4..04771106 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -110,6 +110,11 @@ void FunctionDefinition::checkTypeRequirements()
m_body->checkTypeRequirements();
}
+string FunctionDefinition::getCanonicalSignature() const
+{
+ return getName() + FunctionType(*this).getCanonicalSignature();
+}
+
void Block::checkTypeRequirements()
{
for (shared_ptr<Statement> const& statement: m_statements)