From c623c36a403a8e8469ba893387af2e9494607a06 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 2 Sep 2017 16:00:18 +0800 Subject: Expand - Debugging a hygine issue --- src/expand/mod.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/expand/mod.cpp') diff --git a/src/expand/mod.cpp b/src/expand/mod.cpp index 7bcf0774..771e92ac 100644 --- a/src/expand/mod.cpp +++ b/src/expand/mod.cpp @@ -875,6 +875,7 @@ void Expand_BareExpr(const ::AST::Crate& crate, const AST::Module& mod, ::std::u void Expand_Impl(::AST::Crate& crate, LList modstack, ::AST::Path modpath, ::AST::Module& mod, ::AST::Impl& impl) { + TRACE_FUNCTION_F(impl.def()); Expand_Attrs(impl.def().attrs(), AttrStage::Pre, crate, mod, impl.def()); if( impl.def().type().is_wildcard() ) { DEBUG("Deleted"); @@ -926,6 +927,7 @@ void Expand_Impl(::AST::Crate& crate, LList modstack, ::AST: } ), (Function, + TRACE_FUNCTION_F("fn " << i.name); for(auto& arg : e.args()) { Expand_Pattern(crate, modstack, mod, arg.first, false); Expand_Type(crate, modstack, mod, arg.second); @@ -934,10 +936,12 @@ void Expand_Impl(::AST::Crate& crate, LList modstack, ::AST: Expand_Expr(crate, modstack, e.code()); ), (Static, + TRACE_FUNCTION_F("static " << i.name); Expand_Expr(crate, modstack, e.value()); Expand_Type(crate, modstack, mod, e.type()); ), (Type, + TRACE_FUNCTION_F("type " << i.name); Expand_Type(crate, modstack, mod, e.type()); ) ) -- cgit v1.2.3