Changeset 50377a4 for src/SynTree/Expression.h
- Timestamp:
- Oct 2, 2017, 4:39:42 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- bf4b4cf
- Parents:
- a8555c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Expression.h
ra8555c5 r50377a4 58 58 virtual void accept( Visitor & v ) override = 0; 59 59 virtual Expression * acceptMutator( Mutator & m ) override = 0; 60 virtual void print( std::ostream & os, int indent = 0) const override;60 virtual void print( std::ostream & os, Indenter indent = {} ) const override; 61 61 }; 62 62 … … 101 101 virtual void accept( Visitor & v ) { v.visit( this ); } 102 102 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 103 virtual void print( std::ostream & os, int indent = 0) const;103 virtual void print( std::ostream & os, Indenter indent = {} ) const; 104 104 }; 105 105 … … 119 119 void set_function( Expression * newValue ) { function = newValue; } 120 120 121 void set_args( std::list<Expression *> & listArgs ) { args = listArgs; }122 121 std::list<Expression*>::iterator begin_args() { return args.begin(); } 123 122 std::list<Expression*>::iterator end_args() { return args.end(); } … … 130 129 virtual void accept( Visitor & v ) { v.visit( this ); } 131 130 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 132 virtual void print( std::ostream & os, int indent = 0 ) const; 133 virtual void printArgs(std::ostream & os, int indent = 0) const; 131 virtual void print( std::ostream & os, Indenter indent = {} ) const; 134 132 }; 135 133 … … 149 147 virtual void accept( Visitor & v ) { v.visit( this ); } 150 148 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 151 virtual void print( std::ostream & os, int indent = 0) const;149 virtual void print( std::ostream & os, Indenter indent = {} ) const; 152 150 }; 153 151 … … 170 168 virtual void accept( Visitor & v ) { v.visit( this ); } 171 169 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 172 virtual void print( std::ostream & os, int indent = 0) const;170 virtual void print( std::ostream & os, Indenter indent = {} ) const; 173 171 }; 174 172 … … 186 184 virtual void accept( Visitor & v ) { v.visit( this ); } 187 185 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 188 virtual void print( std::ostream & os, int indent = 0) const;186 virtual void print( std::ostream & os, Indenter indent = {} ) const; 189 187 }; 190 188 … … 205 203 virtual void accept( Visitor & v ) { v.visit( this ); } 206 204 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 207 virtual void print( std::ostream & os, int indent = 0) const;205 virtual void print( std::ostream & os, Indenter indent = {} ) const; 208 206 }; 209 207 … … 223 221 virtual void accept( Visitor & v ) { v.visit( this ); } 224 222 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 225 virtual void print( std::ostream & os, int indent = 0) const;223 virtual void print( std::ostream & os, Indenter indent = {} ) const; 226 224 }; 227 225 … … 244 242 virtual void accept( Visitor & v ) { v.visit( this ); } 245 243 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 246 virtual void print( std::ostream & os, int indent = 0) const;244 virtual void print( std::ostream & os, Indenter indent = {} ) const; 247 245 }; 248 246 … … 266 264 virtual void accept( Visitor & v ) { v.visit( this ); } 267 265 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 268 virtual void print( std::ostream & os, int indent = 0) const;266 virtual void print( std::ostream & os, Indenter indent = {} ) const; 269 267 }; 270 268 … … 287 285 virtual void accept( Visitor & v ) { v.visit( this ); } 288 286 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 289 virtual void print( std::ostream & os, int indent = 0) const;287 virtual void print( std::ostream & os, Indenter indent = {} ) const; 290 288 }; 291 289 … … 305 303 virtual void accept( Visitor & v ) { v.visit( this ); } 306 304 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 307 virtual void print( std::ostream & os, int indent = 0) const;305 virtual void print( std::ostream & os, Indenter indent = {} ) const; 308 306 }; 309 307 … … 330 328 virtual void accept( Visitor & v ) { v.visit( this ); } 331 329 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 332 virtual void print( std::ostream & os, int indent = 0) const;330 virtual void print( std::ostream & os, Indenter indent = {} ) const; 333 331 }; 334 332 … … 355 353 virtual void accept( Visitor & v ) { v.visit( this ); } 356 354 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 357 virtual void print( std::ostream & os, int indent = 0) const;355 virtual void print( std::ostream & os, Indenter indent = {} ) const; 358 356 }; 359 357 … … 376 374 virtual void accept( Visitor & v ) { v.visit( this ); } 377 375 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 378 virtual void print( std::ostream & os, int indent = 0) const;376 virtual void print( std::ostream & os, Indenter indent = {} ) const; 379 377 }; 380 378 … … 397 395 virtual void accept( Visitor & v ) { v.visit( this ); } 398 396 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 399 virtual void print( std::ostream & os, int indent = 0) const;397 virtual void print( std::ostream & os, Indenter indent = {} ) const; 400 398 }; 401 399 … … 415 413 virtual void accept( Visitor & v ) { v.visit( this ); } 416 414 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 417 virtual void print( std::ostream & os, int indent = 0) const;415 virtual void print( std::ostream & os, Indenter indent = {} ) const; 418 416 }; 419 417 … … 443 441 virtual void accept( Visitor & v ) { v.visit( this ); } 444 442 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 445 virtual void print( std::ostream & os, int indent = 0) const;443 virtual void print( std::ostream & os, Indenter indent = {} ) const; 446 444 }; 447 445 … … 465 463 virtual void accept( Visitor & v ) { v.visit( this ); } 466 464 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 467 virtual void print( std::ostream & os, int indent = 0) const;465 virtual void print( std::ostream & os, Indenter indent = {} ) const; 468 466 469 467 private: … … 492 490 virtual void accept( Visitor & v ) { v.visit( this ); } 493 491 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 494 virtual void print( std::ostream & os, int indent = 0) const;492 virtual void print( std::ostream & os, Indenter indent = {} ) const; 495 493 }; 496 494 … … 513 511 virtual void accept( Visitor & v ) { v.visit( this ); } 514 512 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 515 virtual void print( std::ostream & os, int indent = 0) const;513 virtual void print( std::ostream & os, Indenter indent = {} ) const; 516 514 }; 517 515 … … 531 529 virtual void accept( Visitor & v ) { v.visit( this ); } 532 530 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 533 virtual void print( std::ostream & os, int indent = 0) const;531 virtual void print( std::ostream & os, Indenter indent = {} ) const; 534 532 }; 535 533 … … 557 555 virtual void accept( Visitor & v ) { v.visit( this ); } 558 556 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 559 virtual void print( std::ostream & os, int indent = 0) const;557 virtual void print( std::ostream & os, Indenter indent = {} ) const; 560 558 561 559 // https://gcc.gnu.org/onlinedocs/gcc-4.7.1/gcc/Machine-Constraints.html#Machine-Constraints … … 585 583 virtual void accept( Visitor & v ) { v.visit( this ); } 586 584 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 587 virtual void print( std::ostream & os, int indent = 0) const;585 virtual void print( std::ostream & os, Indenter indent = {} ) const; 588 586 }; 589 587 … … 603 601 virtual void accept( Visitor & v ) { v.visit( this ); } 604 602 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 605 virtual void print( std::ostream & os, int indent = 0) const;603 virtual void print( std::ostream & os, Indenter indent = {} ) const; 606 604 }; 607 605 … … 621 619 virtual void accept( Visitor & v ) { v.visit( this ); } 622 620 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 623 virtual void print( std::ostream & os, int indent = 0) const;621 virtual void print( std::ostream & os, Indenter indent = {} ) const; 624 622 }; 625 623 … … 640 638 virtual void accept( Visitor & v ) { v.visit( this ); } 641 639 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 642 virtual void print( std::ostream & os, int indent = 0) const;640 virtual void print( std::ostream & os, Indenter indent = {} ) const; 643 641 }; 644 642 … … 657 655 virtual void accept( Visitor & v ) { v.visit( this ); } 658 656 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 659 virtual void print( std::ostream & os, int indent = 0) const;657 virtual void print( std::ostream & os, Indenter indent = {} ) const; 660 658 }; 661 659 … … 674 672 virtual void accept( Visitor & v ) { v.visit( this ); } 675 673 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 676 virtual void print( std::ostream & os, int indent = 0) const;674 virtual void print( std::ostream & os, Indenter indent = {} ) const; 677 675 }; 678 676 … … 695 693 virtual void accept( Visitor & v ) { v.visit( this ); } 696 694 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 697 virtual void print( std::ostream & os, int indent = 0) const;695 virtual void print( std::ostream & os, Indenter indent = {} ) const; 698 696 }; 699 697 … … 713 711 virtual void accept( Visitor & v ) { v.visit( this ); } 714 712 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 715 virtual void print( std::ostream & os, int indent = 0) const;713 virtual void print( std::ostream & os, Indenter indent = {} ) const; 716 714 }; 717 715 … … 736 734 virtual void accept( Visitor & v ) { v.visit( this ); } 737 735 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 738 virtual void print( std::ostream & os, int indent = 0) const;736 virtual void print( std::ostream & os, Indenter indent = {} ) const; 739 737 }; 740 738 … … 763 761 virtual void accept( Visitor & v ) { v.visit( this ); } 764 762 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 765 virtual void print( std::ostream & os, int indent = 0) const;763 virtual void print( std::ostream & os, Indenter indent = {} ) const; 766 764 767 765 private: … … 797 795 virtual void accept( Visitor & v ) { v.visit( this ); } 798 796 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 799 virtual void print( std::ostream & os, int indent = 0) const;797 virtual void print( std::ostream & os, Indenter indent = {} ) const; 800 798 }; 801 799 … … 818 816 virtual void accept( Visitor & v ) { v.visit( this ); } 819 817 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); } 820 virtual void print( std::ostream & os, int indent = 0) const;818 virtual void print( std::ostream & os, Indenter indent = {} ) const; 821 819 }; 822 820
Note: See TracChangeset
for help on using the changeset viewer.