summaryrefslogtreecommitdiff
path: root/ast.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ast.cpp')
-rw-r--r--ast.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ast.cpp b/ast.cpp
index b57b5ef..e1abf81 100644
--- a/ast.cpp
+++ b/ast.cpp
@@ -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<<')';
}