Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Decl.hpp

    rd76c588 r9d6e7fa9  
    1616#pragma once
    1717
    18 #include <iosfwd>
    1918#include <string>              // for string, to_string
    2019#include <unordered_map>
     
    122121        ptr<FunctionType> type;
    123122        ptr<CompoundStmt> stmts;
    124         std::vector< ptr<Expr> > withExprs;
     123        std::list< ptr<Expr> > withExprs;
    125124
    126125        FunctionDecl( const CodeLocation & loc, const std::string &name, FunctionType * type,
     
    173172
    174173                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 ) {}
    176175                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 )
    178177                : kind( d1.kind ), isComplete( d1.isComplete || d2.isComplete ) {}
    179178
    180                 bool operator== ( const Data & o ) const {
     179                bool operator== ( const Data& o ) const {
    181180                        return kind == o.kind && isComplete == o.isComplete;
    182181                }
    183                 bool operator!= ( const Data & o ) const { return !(*this == o); }
     182                bool operator!= ( const Data& o ) const { return !(*this == o); }
    184183        };
    185184
     
    201200        MUTATE_FRIEND
    202201};
    203 
    204 std::ostream & operator<< ( std::ostream &, const TypeDecl::Data & );
    205202
    206203/// C-style typedef `typedef Foo Bar`
Note: See TracChangeset for help on using the changeset viewer.