Changes in src/SynTree/BaseSyntaxNode.h [50377a4:2b7bf59]
- File:
-
- 1 edited
-
src/SynTree/BaseSyntaxNode.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/BaseSyntaxNode.h
r50377a4 r2b7bf59 17 17 18 18 #include "Common/CodeLocation.h" 19 #include "Common/Indenter.h"20 19 class Visitor; 21 20 class Mutator; … … 30 29 virtual void accept( Visitor & v ) = 0; 31 30 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 } 31 virtual void print( std::ostream & os, int indent = 0 ) const = 0; 39 32 }; 40 33
Note:
See TracChangeset
for help on using the changeset viewer.