Changeset 8d7bef2 for src/SynTree
- Timestamp:
- Mar 20, 2018, 5:12:25 PM (8 years ago)
- Branches:
- new-env, with_gc
- Children:
- 7e4b44db
- Parents:
- 68f9c43
- Location:
- src/SynTree
- Files:
-
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/ApplicationExpr.cc
r68f9c43 r8d7bef2 17 17 #include <list> // for list 18 18 #include <map> // for _Rb_tree_const_iterator, map, map<>:... 19 #include <memory> // for unique_ptr20 19 #include <ostream> // for operator<<, ostream, basic_ostream 21 20 #include <string> // for operator<<, string, char_traits -
src/SynTree/BaseSyntaxNode.h
r68f9c43 r8d7bef2 24 24 25 25 class BaseSyntaxNode : GC_Object { 26 friend class GcTracer; 26 27 public: 27 28 CodeLocation location; -
src/SynTree/GcTracer.h
r68f9c43 r8d7bef2 52 52 static inline const GC& operator<< ( const GC& gc, const std::list<Declaration*>& translationUnit ) { 53 53 PassVisitor<GcTracer> tracer{ gc }; 54 acceptAll( translationUnit, tracer );54 acceptAll( const_cast<std::list<Declaration*>&>( translationUnit ), tracer ); 55 55 return gc; 56 56 } -
src/SynTree/TypeSubstitution.h
r68f9c43 r8d7bef2 59 59 void normalize(); 60 60 61 void accept( Visitor& v ) { v.visit( this ); } 61 62 TypeSubstitution * acceptMutator( Mutator & m ) { return m.mutate( this ); } 62 63 -
src/SynTree/Visitor.h
r68f9c43 r8d7bef2 121 121 122 122 virtual void visit( Attribute * attribute ) = 0; 123 124 virtual void visit( TypeSubstitution * sub ) = 0; 123 125 }; 124 126 -
src/SynTree/module.mk
r68f9c43 r8d7bef2 48 48 SynTree/TypeSubstitution.cc \ 49 49 SynTree/Attribute.cc \ 50 SynTree/GcTracer.cc \51 50 SynTree/VarExprReplacer.cc 52 51
Note:
See TracChangeset
for help on using the changeset viewer.