Joos1W Compiler Framework
All Classes Functions Typedefs Pages
ast::DeclContext Class Reference

Base class for all declaration contexts (i.e., methods). More...

#include <AstNode.h>

Inheritance diagram for ast::DeclContext:

Public Member Functions

virtual utils::Generator< ast::Decl const * > decls () const
 Generator to yield all children decls of the context.
 
virtual Decl const * asDecl () const
 
- Public Member Functions inherited from ast::AstNode
 AstNode (const AstNode &)=delete
 
 AstNode (AstNode &&)=delete
 
AstNodeoperator= (const AstNode &)=delete
 
AstNodeoperator= (AstNode &&)=delete
 
std::ostream & printDot (std::ostream &os) const
 
virtual std::ostream & print (std::ostream &os, int indentation=0) const =0
 
virtual int printDotNode (DotPrinter &dp) const =0
 
void dump () const
 
virtual utils::Generator< AstNode const * > children () const =0
 Returns a generator for the children of this node.
 
utils::Generator< AstNode * > mut_children ()
 Returns a generator for the mutable children of this node.
 

Additional Inherited Members

- Static Protected Member Functions inherited from ast::AstNode
static std::string indent (int indentation)
 Get a string of spaces for indentation. More...
 

Detailed Description

Base class for all declaration contexts (i.e., methods).

Definition at line 129 of file AstNode.h.


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