|
const vector< Expr * > & | get_member_decls () const |
|
void | set_member_decls (const vector< Expr * > &member_decls) |
|
Type * | get_struct_member_ty (int i) const |
|
vector< Type * > | get_member_types () const |
|
int | get_struct_member_index (const str &name) const |
|
void | set_member_index (const str &name, int idx) |
|
Expr * | get_member_default_val (int i) const |
|
void | set_member_default_val (int i, Expr *val) |
|
vector< ASTBase * > | get_children () const override |
| Get a ordered list of child nodes. More...
|
|
str | terminal_token () const override |
| Which terminal token is expected immediately after this node. More...
|
|
| TypeDecl (ASTNodeType node_type, TokenizedSourceFile *src, bool is_extern, bool is_public) |
|
bool | is_type_decl () const override |
|
bool | is_lvalue () override |
|
void | set_lvalue (bool) override |
|
bool | is_public () const |
|
void | set_public (bool is_public) |
|
bool | is_external () const |
|
void | set_external (bool is_external) |
|
virtual bool | is_comptime_known () |
|
vector< ASTBase * > | get_children () const override |
| Get a ordered list of child nodes. More...
|
|
bool | is_expr () const override |
|
bool | is_stmt () const override |
|
| ASTBase (ASTNodeType node_type, TokenizedSourceFile *src, int bp) |
|
ASTNodeType | get_node_type () const |
|
void | set_node_type (ASTNodeType node_type) |
|
int | get_bp () const |
|
Context * | ctx () |
|
str | repr (const str &prefix="-") const |
| AST tree string representation. More...
|
|
| SourceTraceable (TokenizedSourceFile *src) |
|
uint32_t | start () const |
|
uint32_t | end () const |
|
void | set_start (uint32_t val) |
|
void | set_end (uint32_t val) |
|
TokenizedSourceFile * | src () const |
|
virtual Type * | get_type () const |
|
virtual void | set_type (Type *type) |
|
str | get_name () const |
|
void | set_name (const str &name) |
|
|
| StructDecl (TokenizedSourceFile *src, bool is_extern, bool is_public) |
|
| Decl (ASTNodeType type, TokenizedSourceFile *src, int bp, bool is_extern, bool is_public) |
|
| Expr (ASTNodeType type, TokenizedSourceFile *src, int bp) |
|
virtual str | to_string (bool include_source_code=false) const |
| Different from repr, to_string output doesn't include child nodes. More...
|
|
virtual ASTBase * | get () const |
| Get the "actual" this. Used for implementing proxy classes. More...
|
|
Definition at line 93 of file decl.h.