Joos1W Compiler Framework
|
Public Member Functions | |
CompilationUnit (BumpAllocator &alloc, ReferenceType *package, array_ref< ImportDeclaration > imports, SourceRange location, DeclContext *body) noexcept | |
auto const * | body () const |
auto const * | bodyAsDecl () const |
auto | mut_bodyAsDecl () |
std::ostream & | print (std::ostream &os, int indentation=0) const override |
int | printDotNode (DotPrinter &dp) const override |
string_view | getPackageName () const |
SourceRange | location () const |
auto const * | package () const |
auto | imports () const |
auto | isDefaultPackage () const |
utils::Generator< ast::AstNode const * > | children () const override |
Returns a generator for the children of this node. | |
auto | mut_body () |
bool | isStdLib () const |
![]() | |
virtual utils::Generator< ast::Decl const * > | decls () const |
Generator to yield all children decls of the context. | |
virtual Decl const * | asDecl () const |
![]() | |
AstNode (const AstNode &)=delete | |
AstNode (AstNode &&)=delete | |
AstNode & | operator= (const AstNode &)=delete |
AstNode & | operator= (AstNode &&)=delete |
std::ostream & | printDot (std::ostream &os) const |
void | dump () const |
utils::Generator< AstNode * > | mut_children () |
Returns a generator for the mutable children of this node. | |
Additional Inherited Members | |
![]() | |
static std::string | indent (int indentation) |
Get a string of spaces for indentation. More... | |
Definition at line 28 of file DeclContext.h.