Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGeneratorNew.hpp

    r0bd3faf r6e7ed0aa  
    2525namespace CodeGen {
    2626
    27 struct CodeGenerator final :
     27#warning Remove the _new when old version is removed.
     28struct CodeGenerator_new :
    2829                public ast::WithGuards,
    2930                public ast::WithShortCircuiting,
    30                 public ast::WithVisitorRef<CodeGenerator> {
    31         CodeGenerator( std::ostream & out, Options const & options );
     31                public ast::WithVisitorRef<CodeGenerator_new> {
     32        CodeGenerator_new( std::ostream & out, Options const & options );
    3233
    3334        // Turn off visit_children for all nodes.
     
    118119        /// Custom local implementation of endl that updates print location.
    119120        struct LineEnder {
    120                 CodeGenerator & cg;
    121                 LineEnder( CodeGenerator & cg ) : cg( cg ) {}
     121                CodeGenerator_new & cg;
     122                LineEnder( CodeGenerator_new & cg ) : cg( cg ) {}
    122123                std::ostream & operator()( std::ostream & ) const;
    123124        };
     
    128129        /// Wrapper class to help print vectors of Labels.
    129130        struct LabelPrinter {
    130                 LabelPrinter( CodeGenerator & cg ) : cg( cg ), labels( nullptr ) {}
     131                LabelPrinter( CodeGenerator_new & cg ) : cg( cg ), labels( nullptr ) {}
    131132                LabelPrinter & operator()( std::vector<ast::Label> const & l );
    132133                std::ostream & operator()( std::ostream & ) const;
    133                 CodeGenerator & cg;
     134                CodeGenerator_new & cg;
    134135                std::vector<ast::Label> const * labels;
    135136        };
Note: See TracChangeset for help on using the changeset viewer.