diff options
Diffstat (limited to 'ast.cpp')
-rw-r--r-- | ast.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -45,7 +45,7 @@ ostream& operator<<(ostream &os,Site site){ ScopeDef::ScopeDef():type(Type::direct){} -ScopeDef::ScopeDef(Type type,const StatementList &body,const vector<Expression> &args) +ScopeDef::ScopeDef(Type type,const StatementList &body,const vector<Name> &args) :type(type),body(body),args(args){} /*ScopeDef::ScopeDef(Type type,const StatementList &body,const vector<Name> &nameargs) :type(type),body(body){ @@ -67,10 +67,10 @@ ostream& operator<<(ostream &os,const ScopeDef &scope){ if(scope.args.size()!=0){ os<<'('; bool first=true; - for(const Expression &ex : scope.args){ + for(const Name &name : scope.args){ if(!first)os<<", "; else first=false; - os<<ex; + os<<name; } os<<')'; } |