Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/BaseSyntaxNode.h

    r50377a4 r9857e8d  
    1717
    1818#include "Common/CodeLocation.h"
    19 #include "Common/Indenter.h"
    2019class Visitor;
    21 class Mutator;
    2220
    2321class BaseSyntaxNode {
     
    2725        virtual ~BaseSyntaxNode() {}
    2826
    29         virtual BaseSyntaxNode * clone() const = 0;
    3027        virtual void accept( Visitor & v ) = 0;
    31         virtual BaseSyntaxNode * acceptMutator( Mutator & m ) = 0;
    32   /// Notes:
    33   /// * each node is responsible for indenting its children.
    34   /// * Expressions should not finish with a newline, since the expression's parent has better information.
    35         virtual void print( std::ostream & os, Indenter indent = {} ) const = 0;
    36   void print( std::ostream & os, unsigned int indent ) {
    37     print( os, Indenter{ Indenter::tabsize, indent });
    38   }
     28  virtual void print( std::ostream & os, int indent = 0 ) const = 0;
    3929};
    40 
    41 std::ostream & operator<<( std::ostream & out, const BaseSyntaxNode * node );
    4230
    4331// Local Variables: //
Note: See TracChangeset for help on using the changeset viewer.