diff options
author | David Robillard <d@drobilla.net> | 2010-12-27 17:51:29 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-27 17:51:29 +0000 |
commit | 0b014dee824646461b7d402bf9bbcf954ff0eba3 (patch) | |
tree | 6e9da06aad29bc641bbc04e181a32e272cc66af8 /src/pprint.cpp | |
parent | 28e3727290335ee85793795f7ec6d48e050db922 (diff) | |
download | resp-0b014dee824646461b7d402bf9bbcf954ff0eba3.tar.gz resp-0b014dee824646461b7d402bf9bbcf954ff0eba3.tar.bz2 resp-0b014dee824646461b7d402bf9bbcf954ff0eba3.zip |
Kill AType.
git-svn-id: http://svn.drobilla.net/resp/resp@359 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/pprint.cpp')
-rw-r--r-- | src/pprint.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
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(); |