|
Bash++
Bash++ compiler internal documentation
|
#include <IncludeStatement.h>


Public Types | |
| enum class | IncludeKeyword { INCLUDE , INCLUDE_ONCE } |
| enum class | IncludeType { STATIC , DYNAMIC } |
| enum class | PathType { ANGLEBRACKET , QUOTED } |
Public Member Functions | |
| constexpr AST::NodeType | getType () const override |
| const AST::Token< IncludeKeyword > & | KEYWORD () const |
| void | setKeyword (const AST::Token< IncludeKeyword > &keyword) |
| const AST::Token< IncludeType > & | TYPE () const |
| void | setType (const AST::Token< IncludeType > &type) |
| const PathType & | PATHTYPE () const |
| void | setPathType (const PathType &pathtype) |
| const AST::Token< std::string > & | PATH () const |
| void | setPath (const AST::Token< std::string > &path) |
| const std::optional< AST::Token< std::string > > & | ASPATH () const |
| void | setAsPath (const AST::Token< std::string > &aspath) |
| void | clearAsPath () |
| std::ostream & | prettyPrint (std::ostream &os, int indentation_level=0) const override |
Public Member Functions inherited from AST::ASTNode | |
| ASTNode ()=default | |
| void | addChild (const std::shared_ptr< ASTNode > &child) |
| Add a child node to this AST node. This function also: | |
| void | addChildren (const std::vector< std::shared_ptr< ASTNode > > &childs) |
| Add a vector of child nodes to this AST node. This function also: | |
| const std::vector< std::shared_ptr< ASTNode > > & | getChildren () const |
| void | setPosition (const AST::FilePosition &pos) |
| void | setPosition (uint32_t line, uint32_t column) |
| const AST::FilePosition & | getPosition () const |
| void | setEndPosition (const AST::FilePosition &pos) |
| void | setEndPosition (uint32_t line, uint32_t column) |
| const AST::FilePosition & | getEndPosition () const |
| uint32_t | getLine () const |
| uint32_t | getCharPositionInLine () const |
| std::shared_ptr< ASTNode > | getChildAt (size_t index) const |
| std::shared_ptr< ASTNode > | getFirstChild () const |
| std::shared_ptr< ASTNode > | getLastChild () const |
| size_t | getChildrenCount () const |
| void | clear () |
| void | clearChildren () |
Static Public Attributes | |
| static constexpr AST::NodeType | static_type = AST::NodeType::IncludeStatement |
Protected Attributes | |
| AST::Token< IncludeKeyword > | m_KEYWORD |
| AST::Token< IncludeType > | m_TYPE |
| PathType | m_PATHTYPE |
| AST::Token< std::string > | m_PATH |
| std::optional< AST::Token< std::string > > | m_ASPATH |
Protected Attributes inherited from AST::ASTNode | |
| std::vector< std::shared_ptr< ASTNode > > | children |
| AST::FilePosition | position |
| AST::FilePosition | end_position |
|
strong |
|
strong |
|
strong |
|
inline |
|
inline |
|
inlineconstexproverridevirtual |
Implements AST::ASTNode.
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements AST::ASTNode.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticconstexpr |