Fixed Cppcheck warning. Method TokenList::createAst can be const