Represents a variable declaration, possibly containing an initialization expression. More...
#include <variable_declaration.h>
Public Member Functions | |
variable_declaration (variable *v, namespace_context ns, expression *init, location loc) | |
void | set_initializer (expression *init) |
variable * | get_variable () |
bool | has_initializer () |
expression * | get_initializer () |
const namespace_context & | get_namespace () const |
void | print () |
node ** | get_init_ref () |
virtual string | to_string () const |
virtual bool | is_fun_decl () |
virtual bool | is_var_decl () |
Friends | |
class | boost::serialization::access |
ostream & | operator<< (ostream &os, const variable_declaration *obj) |
Represents a variable declaration, possibly containing an initialization expression.