diff options
author | John Hodge <tpg@mutabah.net> | 2016-11-23 10:24:37 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-11-23 10:24:37 +0800 |
commit | 9159e9b91914f03a4b93bb994dfda4fadac7b9c6 (patch) | |
tree | 6215ffff10a97d79d3ab59d5783cfef6aaf1f5ed /src | |
parent | 608c6c6d5d369128835d759c6ab3f2d7684f2672 (diff) | |
download | mrust-9159e9b91914f03a4b93bb994dfda4fadac7b9c6.tar.gz |
HIR Expand TypeAlias - Fix small gap
Diffstat (limited to 'src')
-rw-r--r-- | src/hir/expr.cpp | 4 | ||||
-rw-r--r-- | src/hir_conv/expand_type.cpp | 6 |
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); |