forked from jasder/antlr
Merge pull request #1440 from samtatasurya/cpp-get-text
Fix to Issue #1434
This commit is contained in:
commit
95dc3f673f
|
@ -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
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue