summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hir/expr.cpp4
-rw-r--r--src/hir_conv/expand_type.cpp6
2 files changed, 9 insertions, 1 deletions
diff --git a/src/hir/expr.cpp b/src/hir/expr.cpp
index 531a516d..10d01e1b 100644
--- a/src/hir/expr.cpp
+++ b/src/hir/expr.cpp
@@ -99,16 +99,17 @@ DEF_VISIT(ExprNode_TupleVariant, node,
visit_node_ptr(arg);
)
DEF_VISIT(ExprNode_CallPath, node,
+ TRACE_FUNCTION_F("_CallPath: " << node.m_path);
for(auto& ty : node.m_cache.m_arg_types)
visit_type(ty);
visit_path_params(node.m_cache.m_ty_impl_params);
- DEBUG("DEF _CallPath: " << node.m_path);
visit_path(::HIR::Visitor::PathContext::VALUE, node.m_path);
for(auto& arg : node.m_args)
visit_node_ptr(arg);
)
DEF_VISIT(ExprNode_CallValue, node,
+ TRACE_FUNCTION_F("_CallValue:");
for(auto& ty : node.m_arg_types)
visit_type(ty);
@@ -117,6 +118,7 @@ DEF_VISIT(ExprNode_CallValue, node,
visit_node_ptr(arg);
)
DEF_VISIT(ExprNode_CallMethod, node,
+ TRACE_FUNCTION_F("_CallMethod: " << node.m_method);
for(auto& ty : node.m_cache.m_arg_types)
visit_type(ty);
visit_path_params(node.m_cache.m_ty_impl_params);
diff --git a/src/hir_conv/expand_type.cpp b/src/hir_conv/expand_type.cpp
index fed3ee24..16f5f3ea 100644
--- a/src/hir_conv/expand_type.cpp
+++ b/src/hir_conv/expand_type.cpp
@@ -185,6 +185,12 @@ public:
upper_visitor(uv)
{}
+ // TODO: Use the other visitors.
+ void visit_path(::HIR::Visitor::PathContext pc, ::HIR::Path& p)
+ {
+ upper_visitor.visit_path(p, pc);
+ }
+
void visit(::HIR::ExprNode_Let& node) override
{
upper_visitor.visit_type(node.m_type);