Changeset baf7fee


Ignore:
Timestamp:
Dec 18, 2015, 2:43:06 PM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, string, with_gc
Children:
ae63a18
Parents:
000b914
Message:

added output operators for AST types, made makeTyVars public in PolyMutator?

Location:
src
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/PolyMutator.h

    r000b914 rbaf7fee  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Fri Aug 14 15:27:38 2015
    13 // Update Count     : 4
     12// Last Modified On : Tue Dec 08 15:19:05 2015
     13// Update Count     : 5
    1414//
    1515
     
    5151                virtual void doBeginScope() {}
    5252                virtual void doEndScope() {}
     53               
     54                static void makeTyVarMap( Type *type, TyVarMap &tyVarMap );
    5355          protected:
    5456                void mutateStatementList( std::list< Statement* > &statements );
    5557                Statement* mutateStatement( Statement *stmt );
    5658                Expression* mutateExpression( Expression *expr );
    57                 static void makeTyVarMap( Type *type, TyVarMap &tyVarMap );
    5859 
    5960                TyVarMap scopeTyVars;
  • src/SynTree/Declaration.cc

    r000b914 rbaf7fee  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jul 13 17:58:38 2015
    13 // Update Count     : 10
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Wed Dec 09 14:08:29 2015
     13// Update Count     : 12
    1414//
    1515
     
    5555}
    5656
     57std::ostream & operator<<( std::ostream & out, Declaration * decl ) {
     58        decl->print( out );
     59        return out;
     60}
     61
     62
    5763// Local Variables: //
    5864// tab-width: 4 //
  • src/SynTree/Declaration.h

    r000b914 rbaf7fee  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jul 13 18:15:59 2015
    13 // Update Count     : 28
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Wed Dec 09 14:08:22 2015
     13// Update Count     : 32
    1414//
    1515
     
    259259};
    260260
     261std::ostream & operator<<( std::ostream & out, Declaration * decl );
     262
    261263#endif // DECLARATION_H
    262264
  • src/SynTree/Expression.cc

    r000b914 rbaf7fee  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Wed Sep 02 12:07:10 2015
    13 // Update Count     : 33
     12// Last Modified On : Wed Dec 09 14:10:29 2015
     13// Update Count     : 34
    1414//
    1515
     
    376376}
    377377
     378std::ostream & operator<<( std::ostream & out, Expression * expr ) {
     379        expr->print( out );
     380        return out;
     381}
     382
    378383// Local Variables: //
    379384// tab-width: 4 //
  • src/SynTree/Expression.h

    r000b914 rbaf7fee  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Jul 24 13:49:28 2015
    13 // Update Count     : 18
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Wed Dec 09 14:10:21 2015
     13// Update Count     : 19
    1414//
    1515
     
    512512};
    513513
     514std::ostream & operator<<( std::ostream & out, Expression * expr );
     515
    514516#endif // EXPRESSION_H
    515517
  • src/SynTree/Statement.cc

    r000b914 rbaf7fee  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Jul 25 12:19:50 2015
    13 // Update Count     : 53
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Wed Dec 09 14:09:34 2015
     13// Update Count     : 54
    1414//
    1515
     
    337337}
    338338
     339std::ostream & operator<<( std::ostream & out, Statement * statement ) {
     340        statement->print( out );
     341        return out;
     342}
     343
    339344// Local Variables: //
    340345// tab-width: 4 //
  • src/SynTree/Statement.h

    r000b914 rbaf7fee  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Jul 25 18:25:37 2015
    13 // Update Count     : 44
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Wed Dec 09 14:09:24 2015
     13// Update Count     : 46
    1414//
    1515
     
    396396};
    397397
     398std::ostream & operator<<( std::ostream & out, Statement * statement );
     399
    398400#endif // STATEMENT_H
    399401
  • src/SynTree/Type.cc

    r000b914 rbaf7fee  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Jul  9 16:45:13 2015
    13 // Update Count     : 3
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Wed Dec 09 14:08:48 2015
     13// Update Count     : 4
    1414//
    1515
     
    8080}
    8181
     82std::ostream & operator<<( std::ostream & out, Type * type ) {
     83        type->print( out );
     84        return out;
     85}
     86
    8287// Local Variables: //
    8388// tab-width: 4 //
  • src/SynTree/Type.h

    r000b914 rbaf7fee  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Nov 20 12:54:09 2015
    13 // Update Count     : 15
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Wed Dec 09 14:08:41 2015
     13// Update Count     : 17
    1414//
    1515
     
    463463}
    464464
     465std::ostream & operator<<( std::ostream & out, Type * type );
     466
    465467#endif // TYPE_H
    466468
Note: See TracChangeset for help on using the changeset viewer.