29 std::ostream&
prettyPrint(std::ostream& os,
int indentation_level = 0)
const override {
31 os << indent <<
"(ParameterExpansion\n"
35 child->prettyPrint(os, indentation_level + 1);
37 os <<
")" << std::flush;
#define PRETTYPRINT_INDENTATION_AMOUNT
Definition ASTNode.h:19
std::vector< std::shared_ptr< ASTNode > > children
Definition ASTNode.h:31
Definition ParameterExpansion.h:14
constexpr AST::NodeType getType() const override
Definition ParameterExpansion.h:19
const AST::Token< std::string > & EXPANSIONBEGIN() const
Definition ParameterExpansion.h:21
static constexpr AST::NodeType static_type
Definition ParameterExpansion.h:18
AST::Token< std::string > m_EXPANSIONBEGIN
Definition ParameterExpansion.h:16
void setExpansionBegin(const AST::Token< std::string > &expansionBegin)
Definition ParameterExpansion.h:25
std::ostream & prettyPrint(std::ostream &os, int indentation_level=0) const override
Definition ParameterExpansion.h:29
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:9
NodeType
Definition NodeTypes.h:10