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