correction params
This commit is contained in:
@@ -37,7 +37,7 @@ public class PrettyprinterVisitor implements ProgramVisitor<String,String>,
|
||||
String str= indent + "PROTO "+proto.type().accept(this, "")+ " "+ proto.nom() + "(";
|
||||
|
||||
for(int i=0; i<proto.params().size();i++){
|
||||
str+=proto.params().get(i);
|
||||
str+=proto.params().get(i).accept(this, "");
|
||||
if((i<proto.params().size()-1)){
|
||||
str+=", ";
|
||||
}
|
||||
@@ -51,7 +51,7 @@ public class PrettyprinterVisitor implements ProgramVisitor<String,String>,
|
||||
String str = indent+"FUNC " + fun.type().accept(this,"")+ " " + fun.nom() +"(";
|
||||
|
||||
for(int i=0; i<fun.params().size();i++){
|
||||
str+=fun.params().get(i);
|
||||
str+=fun.params().get(i).accept(this, "");
|
||||
if((i<fun.params().size()-1)){
|
||||
str+=", ";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user