src/cfir/Printer.cpp
// TODO: Stop typing these now, pre-declare them.
Stop typing these now, pre-declare them.
Stop typing these now pre - declare them .
void print_type_checker_condition(std::ostream &stream, const std::shared_ptr<CFIR::Identifier> &current_id, const std::string &type_name, const std::shared_ptr<CFIR::Identifier> &output_id) {
    if (!output_id->pre_declared) {
        stream << "const " << type_name << " *";
    }
    output_id->print(stream);
    stream << " = ";
    current_id->print(stream);
    stream << ".as<" << type_name << ">()";
}
void print_type_checker_condition ( std :: ostream & stream , const std :: shared_ptr < CFIR :: Identifier > & current_id , const std :: string & type_name , const std :: shared_ptr < CFIR :: Identifier > & output_id ) { if ( ! output_id -> pre_declared ) { stream << " " << type_name << " " ; } output_id -> print ( stream ) ; stream << " " ; current_id -> print ( stream ) ; stream << " " << type_name << " " ; }
TODO: Stop typing these now, pre-declare them.
TODO : Stop typing these now pre - declare them .
// TODO: force the identifier to do the cast?