From 0b014dee824646461b7d402bf9bbcf954ff0eba3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 27 Dec 2010 17:51:29 +0000 Subject: Kill AType. git-svn-id: http://svn.drobilla.net/resp/resp@359 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/pprint.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/pprint.cpp') diff --git a/src/pprint.cpp b/src/pprint.cpp index d7ca0f8..a932065 100644 --- a/src/pprint.cpp +++ b/src/pprint.cpp @@ -96,15 +96,8 @@ print_to(ostream& out, const AST* ast, unsigned indent, CEnv* cenv, bool types) switch (ast->tag()) { case T_UNKNOWN: return out << "?"; - case T_TYPE: - { - const AType* type = ast->as_type(); - switch (type->kind) { - case AType::VAR: return out << "?" << type->id; - case AType::NAME: return out << type->head(); - case AType::EXPR: break; // will catch Tuple case below - } - } + case T_TVAR: + return out << "?" << AType::var_id(ast); case T_TUPLE: { const ATuple* tup = ast->as_tuple(); -- cgit v1.2.1