Struct NothingLit

Inheritance Relationships

Base Type

Struct Documentation

struct NothingLit : public AST::Literal<std::string>

Public Functions

NothingLit()
void print_original_src(unsigned int indent_depth = 0)
std::string generate_code(CodeGen::Settings &settings, unsigned indent_lvl, bool is_lhs) const
bool perform_type_inference(TypeCheck::Settings &settings, Quack::Class *parent_type)

Implements type inference for a single note in the AST.

Return
True if type inference was successful.
Parameters
  • st: Symbol table for the method
  • return_type: Return type from the block
  • parent_type: Type of the parent node. If parent node has no type, then BASE_CLASS.