[Nice-commit] Nice/src/bossa/syntax MethodBodyDefinition.java,1.119,1.120
Brought to you by:
bonniot
|
From: <bo...@us...> - 2003-04-28 18:29:00
|
Update of /cvsroot/nice/Nice/src/bossa/syntax
In directory sc8-pr-cvs1:/tmp/cvs-serv32665/src/bossa/syntax
Modified Files:
MethodBodyDefinition.java
Log Message:
Simple simplification.
Index: MethodBodyDefinition.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/syntax/MethodBodyDefinition.java,v
retrieving revision 1.119
retrieving revision 1.120
diff -C2 -d -r1.119 -r1.120
*** MethodBodyDefinition.java 28 Apr 2003 18:10:30 -0000 1.119
--- MethodBodyDefinition.java 28 Apr 2003 18:28:54 -0000 1.120
***************
*** 120,132 ****
type = new MonotypeVar("anonymous argument " + tn);
else
! // XXX optimize using this:
! // type = new MonotypeVar("type(" + p.name + ")<" + types[tn]);
! {
! LocatedString typeName;
! typeName = p.name.cloneLS();
! typeName.prepend("type(");
! typeName.append(")<" + types[tn]);
! type = new MonotypeVar(typeName.toString());
! }
}
--- 120,124 ----
type = new MonotypeVar("anonymous argument " + tn);
else
! type = new MonotypeVar("type(" + p.name + ")<" + types[tn]);
}
|