summaryrefslogtreecommitdiff
path: root/src/parse/token.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/token.cpp')
-rw-r--r--src/parse/token.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/parse/token.cpp b/src/parse/token.cpp
index b261f248..c5add18a 100644
--- a/src/parse/token.cpp
+++ b/src/parse/token.cpp
@@ -185,8 +185,12 @@ Token Token::clone() const
case TOK_INTERPOLATED_META:
rv.m_data = new AST::MetaItem( reinterpret_cast<AST::MetaItem*>(e)->clone() );
break;
+ case TOK_INTERPOLATED_ITEM:
+ TODO(m_pos, "clone interpolated item");
+ //rv.m_data = new AST::Named( AST::Item( reinterpret_cast<AST::MetaItem*>(e)->clone() ) );
+ break;
default:
- assert(!"Token::clone() - fragment with invalid token type");
+ BUG(m_pos, "Fragment with invalid token type (" << *this << ")");
break;
}
)