summaryrefslogtreecommitdiff
path: root/src/ast/path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast/path.cpp')
-rw-r--r--src/ast/path.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ast/path.cpp b/src/ast/path.cpp
index 648d4055..354da4da 100644
--- a/src/ast/path.cpp
+++ b/src/ast/path.cpp
@@ -161,6 +161,7 @@ void Path::bind_module(const Module& mod)
}
void Path::bind_enum(const Enum& ent, const ::std::vector<TypeRef>& args)
{
+ DEBUG("Bound to enum");
m_binding_type = ENUM;
m_binding.enum_ = &ent;
if( args.size() > 0 )
@@ -189,6 +190,7 @@ void Path::bind_enum_var(const Enum& ent, const ::std::string& name, const ::std
throw ParseError::Todo("Bind enum variant with params passed");
}
+ DEBUG("Bound to enum variant '" << name << "' (#" << idx << ")");
m_binding_type = ENUM_VAR;
m_binding.enumvar = {&ent, idx};
}