Fix token problem in AST

This commit is contained in:
yhirose 2016-01-24 11:12:50 -05:00
parent ae400aa218
commit 80f822ac59

View File

@ -2489,7 +2489,7 @@ public:
auto line = line_info(sv.ss, sv.c_str()); auto line = line_info(sv.ss, sv.c_str());
if (is_token) { if (is_token) {
return std::make_shared<T>(sv.path, line.first, line.second, name.c_str(), sv.str()); return std::make_shared<T>(sv.path, line.first, line.second, name.c_str(), sv.token());
} }
auto ast = std::make_shared<T>(sv.path, line.first, line.second, name.c_str(), sv.transform<std::shared_ptr<T>>()); auto ast = std::make_shared<T>(sv.path, line.first, line.second, name.c_str(), sv.transform<std::shared_ptr<T>>());