Public Types | Static Public Member Functions | Public Attributes | List of all members
Rosebud::Ast::ArgumentList Class Reference


A node that holds a list of arguments.

Definition at line 195 of file Ast.h.

#include <Rosebud/Ast.h>

Inheritance diagram for Rosebud::Ast::ArgumentList:
Inheritance graph
Collaboration diagram for Rosebud::Ast::ArgumentList:
Collaboration graph

Public Types

using Ptr = ArgumentListPtr
 Shared-ownership pointer. More...
- Public Types inherited from Rosebud::Ast::Node
using Ptr = NodePtr
- Public Types inherited from Sawyer::Tree::Vertex< Node >
using UserBase = Node
 User's base class. More...
using UserBasePtr = std::shared_ptr< UserBase >
 Pointer to user's base class. More...
using TraversalEvent = Sawyer::Tree::TraversalEvent
 Alias for traversal events. More...

Static Public Member Functions

static Ptr instance ()
 Allocating constructor. More...

Public Attributes

EdgeVector< TokenListelmts
- Public Attributes inherited from Sawyer::Tree::Vertex< Node >
ReverseEdge parent
 Pointer to the parent in the tree. More...
EdgeBase * treeEdges_

Additional Inherited Members

- Public Member Functions inherited from Rosebud::Ast::Node
template<class T >
std::shared_ptr< T > findAncestor ()
- Public Member Functions inherited from Sawyer::Tree::Vertex< Node >
UserBasePtr pointer ()
 Returns a shared pointer to this vertex. More...
std::shared_ptr< T > isa ()
 Tests whether this object is a certain type. More...
auto traverseReverse (const Visitor &visitor)
 Traverse in reverse direction from children to parents. More...
auto traverse (const Visitor &visitor)
 Traverse in forward direction from parents to children. More...
auto traversePre (const Visitor &visitor)
 Pre-order forward traversal. More...
auto traversePost (const Visitor &visitor)
 Post-order forward traversal. More...
std::shared_ptr< T > findFirstAncestor ()
 Traversal that finds the closest ancestor of type T or derived from T. More...
std::shared_ptr< T > findLastAncestor ()
 Traversal that finds the farthest ancestor of type T or derived from T. More...
std::vector< std::shared_ptr< T > > findDescendants ()
 Traversal that finds all the descendants of a particular type. More...
UserBasePtr child (size_t i) const
 Returns the pointer for a child. More...
size_t nChildren () const
 Returns the number of children. More...
- Protected Member Functions inherited from Sawyer::Tree::Vertex< Node >
virtual void destructorHelper ()

Member Typedef Documentation

Shared-ownership pointer.

Definition at line 198 of file Ast.h.

Member Function Documentation

static Ptr Rosebud::Ast::ArgumentList::instance ( )

Allocating constructor.

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