Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.h

    rf7cb0bc rbf2438c  
    1717#define CODEGENV_H
    1818
    19 #include <list>
     19#include <list>                   // for list
     20#include <ostream>                // for ostream, operator<<
     21#include <string>                 // for string
    2022
    21 #include "SynTree/Declaration.h"
    22 #include "SynTree/SynTree.h"
    23 #include "SynTree/Visitor.h"
    24 
    25 #include "SymTab/Indexer.h"
    26 
    27 #include "Common/Indenter.h"
    28 #include "Common/utility.h"
     23#include "SynTree/Declaration.h"  // for DeclarationWithType (ptr only), Fun...
     24#include "SynTree/Visitor.h"      // for Visitor
     25#include "SynTree/SynTree.h"      // for Visitor Nodes
    2926
    3027namespace CodeGen {
     
    103100                template< class Iterator > void genCommaList( Iterator begin, Iterator end );
    104101
     102                struct Indenter {
     103                        Indenter(CodeGenerator &cg) : cg(cg) {}
     104                        CodeGenerator & cg;
     105                        std::ostream& operator()(std::ostream & os) const;
     106                };
     107
    105108                struct LabelPrinter {
    106109                        LabelPrinter(CodeGenerator &cg) : cg(cg), labels( 0 ) {}
     
    125128          private:
    126129                Indenter indent;
     130                int cur_indent;
    127131                bool insideFunction;
    128132                std::ostream &output;
Note: See TracChangeset for help on using the changeset viewer.