Merge pull request #1440 from samtatasurya/cpp-get-text

Fix to Issue #1434
This commit is contained in:
Terence Parr 2016-12-03 09:10:51 -08:00 committed by GitHub
commit 95dc3f673f
2 changed files with 1 additions and 3 deletions

View File

@ -124,3 +124,4 @@ YYYY/MM/DD, github id, Full name, email
2016/11/29, millergarym, Gary Miller, miller.garym@gmail.com
2016/11/29, wxio, Gary Miller, gm@wx.io
2016/11/29, Naios, Denis Blank, naios@users.noreply.github.com
2016/12/01, samtatasurya, Samuel Tatasurya, xemradiant@gmail.com

View File

@ -78,9 +78,6 @@ std::string RuleContext::getText() {
std::stringstream ss;
for (size_t i = 0; i < children.size(); i++) {
if (i > 0)
ss << ", ";
ParseTree *tree = children[i];
if (tree != nullptr)
ss << tree->getText();