|
| ClassDecl (BumpAllocator &alloc, Modifiers modifiers, SourceRange location, string_view name, ReferenceType *super1, ReferenceType *super2, array_ref< ReferenceType * > interfaces, array_ref< Decl * > classBodyDecls) throw () |
|
auto | fields () const |
|
auto | methods () const |
|
auto | constructors () const |
|
auto | interfaces () const |
|
auto | superClasses () const |
| Grabs a view of the super classes. Warning: the super classes may be null.
|
|
auto & | mut_superClasses () |
|
auto | modifiers () const |
|
bool | hasCanonicalName () const override |
| Returns if the declaration has a canonical name.
|
|
std::ostream & | print (std::ostream &os, int indentation=0) const override |
|
int | printDotNode (DotPrinter &dp) const override |
|
void | setParent (DeclContext *parent) override |
| Overrides the setParent to construct canonical name.
|
|
SourceRange | location () const override |
| Returns the location of the declaration. This is an abstract method to allow abstract classes of Decl without location.
|
|
DeclContext const * | asDeclContext () const override |
|
Decl const * | asDecl () const override |
|
utils::Generator< ast::AstNode const * > | children () const override |
| Returns a generator for the children of this node.
|
|
bool | hasDefaultCtor () const |
|
virtual utils::Generator< ast::Decl const * > | decls () const |
| Generator to yield all children decls of the context.
|
|
| 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.
|
|
| Decl (BumpAllocator &alloc, std::string_view name) noexcept |
|
std::string_view | name () const |
| Gets the simple name of this declaration.
|
|
DeclContext * | parent () const |
| Gets the context in which this declaration is declared.
|
|
std::string_view | getCanonicalName () const |
| Gets the fully qualified name of this declaration. Returns undefined value if the declaration does not have a canonical name.
|
|