Process type arguments.

This commit is contained in:
Roberto Raggi
2010-08-13 12:28:40 +02:00
parent 84920f53b8
commit 8e1e0bdefd
2 changed files with 12 additions and 3 deletions

View File

@@ -1892,10 +1892,16 @@ bool Bind::visit(TypenameTypeParameterAST *ast)
{
// unsigned classkey_token = ast->classkey_token;
// unsigned dot_dot_dot_token = ast->dot_dot_dot_token;
/*const Name *name =*/ this->name(ast->name);
// unsigned equal_token = ast->equal_token;
const Name *name = this->name(ast->name);
ExpressionTy type_id = this->expression(ast->type_id);
// TypenameArgument *symbol = ast->symbol;
unsigned sourceLocation = ast->firstToken();
if (ast->name)
sourceLocation = ast->name->firstToken();
TypenameArgument *arg = control()->newTypenameArgument(sourceLocation, name);
arg->setType(type_id);
ast->symbol = arg;
_scope->addMember(arg);
return false;
}