Update of /cvsroot/nice/Nice/src/bossa/syntax
In directory sc8-pr-cvs1:/tmp/cvs-serv32592/F:/nice/src/bossa/syntax
Modified Files:
typecheck.nice
Log Message:
Removed method monoSymbol which was a duplicate of the method localVariable.
Index: typecheck.nice
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/syntax/typecheck.nice,v
retrieving revision 1.70
retrieving revision 1.71
diff -C2 -d -r1.70 -r1.71
*** typecheck.nice 27 May 2003 20:43:20 -0000 1.70
--- typecheck.nice 27 May 2003 23:42:15 -0000 1.71
***************
*** 46,50 ****
}
catch(TypingEx t){
! ?MonoSymbol variable = monoSymbol(to);
if (variable != null)
if (hasConditionalType(variable) && isNullError(t)) {
--- 46,50 ----
}
catch(TypingEx t){
! ?MonoSymbol variable = localVariable(to);
if (variable != null)
if (hasConditionalType(variable) && isNullError(t)) {
***************
*** 77,90 ****
to.getType().toString(), notNull(e.value));
}
- }
-
- ?MonoSymbol monoSymbol(Expression);
- monoSymbol(e) = null;
- monoSymbol(e@SymbolExp)
- {
- if (e.getSymbol() instanceof bossa.syntax.MonoSymbol)
- return cast(e.getSymbol());
- else
- return null;
}
--- 77,80 ----
|