Changes in src/AST/Decl.hpp [d76c588:9d6e7fa9]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Decl.hpp
rd76c588 r9d6e7fa9 16 16 #pragma once 17 17 18 #include <iosfwd>19 18 #include <string> // for string, to_string 20 19 #include <unordered_map> … … 122 121 ptr<FunctionType> type; 123 122 ptr<CompoundStmt> stmts; 124 std:: vector< ptr<Expr> > withExprs;123 std::list< ptr<Expr> > withExprs; 125 124 126 125 FunctionDecl( const CodeLocation & loc, const std::string &name, FunctionType * type, … … 173 172 174 173 Data() : kind( (TypeVar::Kind)-1 ), isComplete( false ) {} 175 Data( const TypeDecl* d ) : kind( d->kind ), isComplete( d->sized ) {}174 Data( TypeDecl* d ) : kind( d->kind ), isComplete( d->sized ) {} 176 175 Data( TypeVar::Kind k, bool c ) : kind( k ), isComplete( c ) {} 177 Data( const Data & d1, const Data& d2 )176 Data( const Data& d1, const Data& d2 ) 178 177 : kind( d1.kind ), isComplete( d1.isComplete || d2.isComplete ) {} 179 178 180 bool operator== ( const Data 179 bool operator== ( const Data& o ) const { 181 180 return kind == o.kind && isComplete == o.isComplete; 182 181 } 183 bool operator!= ( const Data 182 bool operator!= ( const Data& o ) const { return !(*this == o); } 184 183 }; 185 184 … … 201 200 MUTATE_FRIEND 202 201 }; 203 204 std::ostream & operator<< ( std::ostream &, const TypeDecl::Data & );205 202 206 203 /// C-style typedef `typedef Foo Bar`
Note:
See TracChangeset
for help on using the changeset viewer.