Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Decl.hpp

    r9d6e7fa9 rd76c588  
    1616#pragma once
    1717
     18#include <iosfwd>
    1819#include <string>              // for string, to_string
    1920#include <unordered_map>
     
    121122        ptr<FunctionType> type;
    122123        ptr<CompoundStmt> stmts;
    123         std::list< ptr<Expr> > withExprs;
     124        std::vector< ptr<Expr> > withExprs;
    124125
    125126        FunctionDecl( const CodeLocation & loc, const std::string &name, FunctionType * type,
     
    172173
    173174                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 ) {}
    175176                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 )
    177178                : kind( d1.kind ), isComplete( d1.isComplete || d2.isComplete ) {}
    178179
    179                 bool operator== ( const Data& o ) const {
     180                bool operator== ( const Data & o ) const {
    180181                        return kind == o.kind && isComplete == o.isComplete;
    181182                }
    182                 bool operator!= ( const Data& o ) const { return !(*this == o); }
     183                bool operator!= ( const Data & o ) const { return !(*this == o); }
    183184        };
    184185
     
    200201        MUTATE_FRIEND
    201202};
     203
     204std::ostream & operator<< ( std::ostream &, const TypeDecl::Data & );
    202205
    203206/// C-style typedef `typedef Foo Bar`
Note: See TracChangeset for help on using the changeset viewer.