Commit 7b51b119 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Set the end of the template's scope.

parent afdd933f
......@@ -2063,7 +2063,7 @@ bool Bind::visit(TemplateDeclarationAST *ast)
Template *templ = control()->newTemplate(ast->firstToken(), 0);
templ->setStartOffset(tokenAt(ast->lastToken() - 1).end());
templ->setEndOffset(tokenAt(ast->lastToken() - 1).end());
ast->symbol = templ;
Scope *previousScope = switchScope(templ);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment