Class Method

Nested Relationships

Class Documentation

class Method

Public Functions

Method(std::string name, const std::string &return_type, Param::Container *params, AST::Block *block)
~Method()
void print_original_src(unsigned int indent_depth = 0)

Debug method used to print the original source code.

Parameters
  • indent_depth: Amount of tabs to indent the block.

Public Members

const std::string name_

Name of the method

Class *return_type_

Type of the return object

Param::Container *params_
Symbol::Table *symbol_table_ = nullptr
InitializedList *init_list_ = nullptr
const std::string return_type_name_

Name of the return type of the method (if any)

Class *obj_class_ = nullptr

Class of the object associated with the method

Friends

friend Quack::Method::Quack::Class
friend Quack::Method::Quack::Program
friend Quack::Method::CodeGen::Gen
class Container : public MapContainer<Method>

Public Functions

const void print_original_src(unsigned int indent_depth)