Set the end of the template's scope.

This commit is contained in:
Roberto Raggi
2010-08-27 16:40:28 +02:00
parent afdd933ff3
commit 7b51b1195e

View File

@@ -2063,7 +2063,7 @@ bool Bind::visit(TemplateDeclarationAST *ast)
{
Template *templ = control()->newTemplate(ast->firstToken(), 0);
templ->setStartOffset(tokenAt(ast->firstToken()).begin());
templ->setStartOffset(tokenAt(ast->lastToken() - 1).end());
templ->setEndOffset(tokenAt(ast->lastToken() - 1).end());
ast->symbol = templ;
Scope *previousScope = switchScope(templ);