diff options
Diffstat (limited to 'ASTPrinter.cpp')
-rw-r--r-- | ASTPrinter.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ASTPrinter.cpp b/ASTPrinter.cpp index a5fcf959..12969621 100644 --- a/ASTPrinter.cpp +++ b/ASTPrinter.cpp @@ -202,6 +202,13 @@ bool ASTPrinter::visit(PrimaryExpression& _node) return goDeeper(); } +bool ASTPrinter::visit(Identifier& _node) +{ + writeLine(std::string("Identifier ") + _node.getName()); + printSourcePart(_node); + return goDeeper(); +} + bool ASTPrinter::visit(ElementaryTypeNameExpression& _node) { writeLine(std::string("ElementaryTypeNameExpression ") + Token::String(_node.getType())); @@ -356,6 +363,11 @@ void ASTPrinter::endVisit(PrimaryExpression&) m_indentation--; } +void ASTPrinter::endVisit(Identifier&) +{ + m_indentation--; +} + void ASTPrinter::endVisit(ElementaryTypeNameExpression&) { m_indentation--; |