Merge pull request #1699 from Thomasb81/fix_1698

Fix for #1698
This commit is contained in:
Terence Parr 2017-03-01 14:43:12 -08:00 committed by GitHub
commit 0539fb4b0d
1 changed files with 4 additions and 2 deletions

View File

@ -203,11 +203,13 @@ void TokenStreamRewriter::Delete(Token *from, Token *to) {
}
void TokenStreamRewriter::Delete(const std::string &programName, size_t from, size_t to) {
replace(programName, from, to, nullptr);
std::string nullString;
replace(programName, from, to, nullString);
}
void TokenStreamRewriter::Delete(const std::string &programName, Token *from, Token *to) {
replace(programName, from, to, nullptr);
std::string nullString;
replace(programName, from, to, nullString);
}
size_t TokenStreamRewriter::getLastRewriteTokenIndex() {