Update of /cvsroot/nice/Nice/src/bossa/syntax
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13889/src/bossa/syntax
Modified Files:
AbstractInterface.java
Log Message:
Represent methods defined inside abstract interfaces directly in the AST,
instead of as children of the abstract interface.
Index: AbstractInterface.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/syntax/AbstractInterface.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** AbstractInterface.java 12 Aug 2004 23:21:42 -0000 1.19
--- AbstractInterface.java 12 Oct 2004 16:57:19 -0000 1.20
***************
*** 41,54 ****
}
- public void addMethod(Definition m)
- {
- addChild(m);
- }
-
mlsub.typing.TypeSymbol getTypeSymbol()
{
return itf;
}
!
/****************************************************************
* Resolution
--- 41,49 ----
}
mlsub.typing.TypeSymbol getTypeSymbol()
{
return itf;
}
!
/****************************************************************
* Resolution
***************
*** 81,95 ****
}
- void resolveBody()
- {
- if (children != null)
- for (Iterator i = children.iterator(); i.hasNext();)
- {
- Object child = i.next();
- if (child instanceof DefaultMethodImplementation)
- ((DefaultMethodImplementation) child).resolveBody();
- }
- }
-
/****************************************************************
* Initial Context
--- 76,79 ----
***************
*** 108,112 ****
}
}
!
/****************************************************************
* Module interface
--- 92,96 ----
}
}
!
/****************************************************************
* Module interface
***************
*** 121,148 ****
+ Util.map(" extends ",", ","", superInterfaces)
+ "{}\n");
-
- if (children != null)
- for(Iterator i = children.iterator(); i.hasNext(); )
- {
- Object o = i.next();
- if (o instanceof Definition)
- ((Definition) o).printInterface(w);
- }
}
!
/****************************************************************
* Code generation
****************************************************************/
-
public void compile()
{
- // Compile children methods and functions.
- if (children != null)
- for(Iterator i = children.iterator(); i.hasNext(); )
- {
- Object o = i.next();
- if (o instanceof Definition)
- ((Definition) o).compile();
- }
}
--- 105,115 ----
+ Util.map(" extends ",", ","", superInterfaces)
+ "{}\n");
}
!
/****************************************************************
* Code generation
****************************************************************/
public void compile()
{
}
|