27 std::ostream&
prettyPrint(std::ostream& os,
size_t indentation_level = 0)
const override {
29 os << indent <<
"(BashRedirection " <<
m_OPERATOR;
32 child->prettyPrint(os, indentation_level + 1);
34 os <<
")" << std::flush;
#define PRETTYPRINT_INDENTATION_AMOUNT
Definition ASTNode.h:18
std::vector< std::shared_ptr< ASTNode > > children
Definition ASTNode.h:32
Definition BashRedirection.h:14
AST::Token< std::string > m_OPERATOR
Definition BashRedirection.h:16
std::ostream & prettyPrint(std::ostream &os, size_t indentation_level=0) const override
Definition BashRedirection.h:27
constexpr BashRedirection()
Definition BashRedirection.h:18
void setOperator(const AST::Token< std::string > &op)
Definition BashRedirection.h:23
const AST::Token< std::string > & OPERATOR() const
Definition BashRedirection.h:20
Base class for string-type nodes in the AST.
Definition StringType.h:23
A class representing a token in the Bash++ AST. Tokens store their value along with line and column i...
Definition Token.h:22
Definition AccessModifier.h:10
NodeType
Definition NodeTypes.h:12