tan
0.0.1
|
Public Member Functions | |
Context & | operator= (const Context &)=delete |
Context (const Context &)=delete | |
Context (ASTBase *owner) | |
void | set_decl (const str &name, Decl *decl) |
Register a type declaration. More... | |
Decl * | get_decl (const str &name) const |
Search for a declaration by name. More... | |
vector< Decl * > | get_decls () const |
Get all type declarations in the context. More... | |
void | set_function_decl (FunctionDecl *func) |
Register a function declaration. More... | |
FunctionDecl * | get_func_decl (const str &name) const |
Search for a function declaration by name. More... | |
vector< FunctionDecl * > | get_func_decls () const |
Get all functions registered in the context. More... | |
ASTBase * | owner () const |
Decl * Context::get_decl | ( | const str & | name | ) | const |
Search for a declaration by name.
Definition at line 15 of file context.cpp.
vector< Decl * > Context::get_decls | ( | ) | const |
Get all type declarations in the context.
Definition at line 24 of file context.cpp.
FunctionDecl * Context::get_func_decl | ( | const str & | name | ) | const |
Search for a function declaration by name.
Definition at line 32 of file context.cpp.
vector< FunctionDecl * > Context::get_func_decls | ( | ) | const |
Get all functions registered in the context.
Definition at line 47 of file context.cpp.
void Context::set_decl | ( | const str & | name, |
Decl * | decl | ||
) |
Register a type declaration.
Definition at line 10 of file context.cpp.
void Context::set_function_decl | ( | FunctionDecl * | func | ) |
Register a function declaration.
Definition at line 41 of file context.cpp.