35 std::optional<AST::Token<std::string>>
m_ASPATH;
71 const std::optional<AST::Token<std::string>>&
ASPATH()
const {
83 std::ostream&
prettyPrint(std::ostream& os,
size_t indentation_level = 0)
const override {
85 os << indent <<
"(IncludeStatement\n"
93 os <<
")" << std::flush;
#define PRETTYPRINT_INDENTATION_AMOUNT
Definition ASTNode.h:18
The base class for all non-terminal nodes in the Bash++ AST. Each ASTNode contains information about ...
Definition ASTNode.h:28
Definition IncludeStatement.h:14
IncludeKeyword
Definition IncludeStatement.h:16
void clearAsPath()
Definition IncludeStatement.h:79
AST::Token< IncludeType > m_TYPE
Definition IncludeStatement.h:32
PathType
Definition IncludeStatement.h:26
constexpr IncludeStatement()
Definition IncludeStatement.h:37
const AST::Token< IncludeType > & TYPE() const
Definition IncludeStatement.h:47
void setKeyword(const AST::Token< IncludeKeyword > &keyword)
Definition IncludeStatement.h:43
PathType m_PATHTYPE
Definition IncludeStatement.h:33
void setType(const AST::Token< IncludeType > &type)
Definition IncludeStatement.h:51
void setPath(const AST::Token< std::string > &path)
Definition IncludeStatement.h:67
std::optional< AST::Token< std::string > > m_ASPATH
Definition IncludeStatement.h:35
AST::Token< std::string > m_PATH
Definition IncludeStatement.h:34
IncludeType
Definition IncludeStatement.h:21
const std::optional< AST::Token< std::string > > & ASPATH() const
Definition IncludeStatement.h:71
void setPathType(const PathType &pathtype)
Definition IncludeStatement.h:59
const PathType & PATHTYPE() const
Definition IncludeStatement.h:55
const AST::Token< IncludeKeyword > & KEYWORD() const
Definition IncludeStatement.h:39
AST::Token< IncludeKeyword > m_KEYWORD
Definition IncludeStatement.h:31
const AST::Token< std::string > & PATH() const
Definition IncludeStatement.h:63
void setAsPath(const AST::Token< std::string > &aspath)
Definition IncludeStatement.h:75
std::ostream & prettyPrint(std::ostream &os, size_t indentation_level=0) const override
Definition IncludeStatement.h:83
A class representing a token in the Bash++ AST. Tokens store their value along with line and column i...
Definition Token.h:22
T value
Definition Token.h:24
const T & getValue() const
Definition Token.h:37
Definition AccessModifier.h:10
NodeType
Definition NodeTypes.h:12