aboutsummaryrefslogtreecommitdiffstats
path: root/libjulia
diff options
context:
space:
mode:
Diffstat (limited to 'libjulia')
-rw-r--r--libjulia/optimiser/ASTCopier.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libjulia/optimiser/ASTCopier.h b/libjulia/optimiser/ASTCopier.h
index 0658fd50..5dde2ce9 100644
--- a/libjulia/optimiser/ASTCopier.h
+++ b/libjulia/optimiser/ASTCopier.h
@@ -56,6 +56,8 @@ public:
Statement operator()(ForLoop const&);
Statement operator()(Block const& _block);
+ virtual Statement translate(Statement const& _statement);
+
protected:
template <typename T>
std::vector<T> translateVector(std::vector<T> const& _values);
@@ -65,7 +67,6 @@ protected:
{
return _v ? std::make_shared<T>(translate(*_v)) : nullptr;
}
- Statement translate(Statement const& _statement);
Block translate(Block const& _block);
Case translate(Case const& _case);
Identifier translate(Identifier const& _identifier);