Skip to content
Snippets Groups Projects
Commit 7b51b119 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Set the end of the template's scope.

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