Bash++
Bash++ compiler internal documentation
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
AST::ParameterExpansion Class Reference

#include <ParameterExpansion.h>

Inheritance diagram for AST::ParameterExpansion:
Inheritance graph
[legend]
Collaboration diagram for AST::ParameterExpansion:
Collaboration graph
[legend]

Public Member Functions

constexpr AST::NodeType getType () const override
 
const AST::Token< std::string > & EXPANSIONBEGIN () const
 
void setExpansionBegin (const AST::Token< std::string > &expansionBegin)
 
std::ostream & prettyPrint (std::ostream &os, int indentation_level=0) const override
 
- Public Member Functions inherited from AST::StringType
void addText (const AST::Token< std::string > &text)
 Adds text to the string, either by appending to the last RawText child or creating a new one. The result should be that the node contains an alternating sequence of RawText nodes and interpolations, each RawText node holding a contiguous segment of text.
 
void addText (const std::string &text)
 
- 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::FilePositiongetPosition () const
 
void setEndPosition (const AST::FilePosition &pos)
 
void setEndPosition (uint32_t line, uint32_t column)
 
const AST::FilePositiongetEndPosition () const
 
uint32_t getLine () const
 
uint32_t getCharPositionInLine () const
 
std::shared_ptr< ASTNodegetChildAt (size_t index) const
 
std::shared_ptr< ASTNodegetFirstChild () const
 
std::shared_ptr< ASTNodegetLastChild () const
 
size_t getChildrenCount () const
 
void clear ()
 
void clearChildren ()
 

Static Public Attributes

static constexpr AST::NodeType static_type = AST::NodeType::ParameterExpansion
 

Protected Attributes

AST::Token< std::string > m_EXPANSIONBEGIN
 
- Protected Attributes inherited from AST::ASTNode
std::vector< std::shared_ptr< ASTNode > > children
 
AST::FilePosition position
 
AST::FilePosition end_position
 

Member Function Documentation

◆ EXPANSIONBEGIN()

const AST::Token< std::string > & AST::ParameterExpansion::EXPANSIONBEGIN ( ) const
inline

◆ getType()

constexpr AST::NodeType AST::ParameterExpansion::getType ( ) const
inlineconstexproverridevirtual

Implements AST::ASTNode.

◆ prettyPrint()

std::ostream & AST::ParameterExpansion::prettyPrint ( std::ostream &  os,
int  indentation_level = 0 
) const
inlineoverridevirtual

Implements AST::StringType.

◆ setExpansionBegin()

void AST::ParameterExpansion::setExpansionBegin ( const AST::Token< std::string > &  expansionBegin)
inline

Member Data Documentation

◆ m_EXPANSIONBEGIN

AST::Token<std::string> AST::ParameterExpansion::m_EXPANSIONBEGIN
protected

◆ static_type

constexpr AST::NodeType AST::ParameterExpansion::static_type = AST::NodeType::ParameterExpansion
staticconstexpr

The documentation for this class was generated from the following file: