summaryrefslogtreecommitdiff
path: root/src/hir/from_ast.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r--src/hir/from_ast.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp
index e93a3273..92ac3dc6 100644
--- a/src/hir/from_ast.cpp
+++ b/src/hir/from_ast.cpp
@@ -4,8 +4,7 @@
#include <main_bindings.hpp>
#include <ast/ast.hpp>
#include <ast/crate.hpp>
-
-extern ::HIR::ExprPtr LowerHIR_ExprNode(const ::AST::ExprNode& e);
+#include "from_ast.hpp"
::HIR::Module LowerHIR_Module(const ::AST::Module& module, ::HIR::SimplePath path);
@@ -39,6 +38,11 @@ extern ::HIR::ExprPtr LowerHIR_ExprNode(const ::AST::ExprNode& e);
throw ::std::runtime_error("TODO: LowerHIR_GenericParams");
}
+::HIR::Pattern LowerHIR_Pattern(const ::AST::Pattern& pat)
+{
+ throw ::std::runtime_error("TODO: LowerHIR_Pattern");
+}
+
::HIR::ExprPtr LowerHIR_Expr(const ::std::shared_ptr< ::AST::ExprNode>& e)
{
if( e.get() ) {