[csdoc-patches] CVS: csdoc/src/csdoc/MCSDoc IContainerDoc.cs,NONE,1.1 IStructDoc.cs,NONE,1.1 ChangeL
Status: Planning
Brought to you by:
mastergaurav
|
From: Gaurav V. <mas...@us...> - 2003-03-09 15:17:33
|
Update of /cvsroot/csdoc/csdoc/src/csdoc/MCSDoc
In directory sc8-pr-cvs1:/tmp/cvs-serv5817
Modified Files:
ChangeLog IClassDoc.cs INamespaceDoc.cs IRootDoc.cs
Added Files:
IContainerDoc.cs IStructDoc.cs
Log Message:
2003-03-09
* IRootDoc.cs,
* IClassDoc.cs,
* INamespaceDoc.cs : Don't use *List classes.
* ClassDocList.cs : Will remove it later.
* IContainerDoc.cs : Superinterfaces for
IClassDoc, IStructDoc since both of them
can hold all other types inside them.
* IStructDoc.cs : Added interface.
--- NEW FILE ---
/**
* Project: Master C# Document Generator
* Contact: mas...@us...
* Web: http://csdoc.sourceforge.net
*
* Copyright: (C) 2003, Gaurav Vaish
*
*/
using Mono.CSharp;
namespace MCSDoc
{
public interface IContainerDoc
{
string Comments { get; }
AccessFlags Flags { get; }
bool IsContained { get; }
// Returns non null only if(IsContained)
// may throw an exception otherwise
IContainerDoc GetContainerDoc();
IAttributeDoc[] Attributes { get; }
IMethodDoc[] Methods { get; }
IPropertyDoc[] Properties { get; }
IMemberDoc[] Members { get; }
IClassDoc[] InnerClasses { get; }
IDelegateDoc[] InnerDelegates { get; }
IEnumDoc[] InnerEnums { get; }
IInterfaceDoc[] InnerInterfaces { get; }
IStructDoc[] InnerStructs { get; }
}
}
--- NEW FILE ---
/**
* Project: Master C# Document Generator
* Contact: mas...@us...
* Web: http://csdoc.sourceforge.net
*
* Copyright: (C) 2003, Gaurav Vaish
*
*/
using Mono.CSharp;
namespace MCSDoc
{
public interface IStructDoc : IContainerDoc
{
}
}
Index: ChangeLog
===================================================================
RCS file: /cvsroot/csdoc/csdoc/src/csdoc/MCSDoc/ChangeLog,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ChangeLog 8 Mar 2003 10:59:29 -0000 1.3
+++ ChangeLog 9 Mar 2003 15:17:29 -0000 1.4
@@ -1,19 +1,30 @@
-
-2003-03-08 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
-
- * IRootDoc.cs,
- * IClassDoc.cs,
- * INamespaceDoc.cs,
- * ClassDocList.cs : Trying to see what
- works best. Still not sure of what classes
- to have and what properties will they have.
-
-2003-02-25 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
-
- * RootDoc.cs : Removed
- * IRootDoc.cs : Added interface
- * ClassDocList.cs : List of IClassDoc
-
-2003-02-25 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
-
- * RootDoc.cs : Initial implementaion.
+
+2003-03-09 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
+
+ * IRootDoc.cs,
+ * IClassDoc.cs,
+ * INamespaceDoc.cs : Don't use *List classes.
+ * ClassDocList.cs : Will remove it later.
+ * IContainerDoc.cs : Superinterfaces for
+ IClassDoc, IStructDoc since both of them
+ can hold all other types inside them.
+ * IStructDoc.cs : Added interface.
+
+2003-03-08 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
+
+ * IRootDoc.cs,
+ * IClassDoc.cs,
+ * INamespaceDoc.cs,
+ * ClassDocList.cs : Trying to see what
+ works best. Still not sure of what classes
+ to have and what properties will they have.
+
+2003-02-25 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
+
+ * RootDoc.cs : Removed
+ * IRootDoc.cs : Added interface
+ * ClassDocList.cs : List of IClassDoc
+
+2003-02-25 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
+
+ * RootDoc.cs : Initial implementaion.
Index: IClassDoc.cs
===================================================================
RCS file: /cvsroot/csdoc/csdoc/src/csdoc/MCSDoc/IClassDoc.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- IClassDoc.cs 8 Mar 2003 10:59:30 -0000 1.1
+++ IClassDoc.cs 9 Mar 2003 15:17:29 -0000 1.2
@@ -8,27 +8,24 @@
*/
using Mono.CSharp;
-using System.Collections;
-using System.Reflection;
namespace MCSDoc
{
- public interface IClassDoc
+ public interface IClassDoc : IContainerDoc
{
- string Comments { get; }
- AttributeDocList Attributes { get; }
- MethodDocList Methods { get; }
- PropertyDocList Properties { get; }
- MemberDocList Members { get; }
-
bool IsException { get; }
bool IsAttribute { get; }
- bool IsInnerClass { get; }
-
- ClassDocList InnerClasses { get; }
- StructDocList InnerStructs { get; }
- ClassDocList BaseClass { get; }
- ClassDocList Interfaces { get; }
+ /// <summary>
+ /// Returns document element for the
+ /// base class, if any.
+ /// </summary>
+ IClassDoc[] BaseClass { get; }
+
+ /// <summary>
+ /// Returns document elements for the
+ /// implemented interfaces, if any.
+ /// </summary>
+ IInterfaceDoc[] Interfaces { get; }
}
}
Index: INamespaceDoc.cs
===================================================================
RCS file: /cvsroot/csdoc/csdoc/src/csdoc/MCSDoc/INamespaceDoc.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- INamespaceDoc.cs 8 Mar 2003 10:59:30 -0000 1.1
+++ INamespaceDoc.cs 9 Mar 2003 15:17:29 -0000 1.2
@@ -13,12 +13,13 @@
{
public interface INamespaceDoc
{
- string Comments { get; }
- AttributeDocList Attributes { get; }
- ClassDocList Classes { get; }
- DelegateDocList Delegates { get; }
- EnumDocList Enums { get; }
- InterfaceDocList Interfaces { get; }
- StructDocList Structs { get; }
+ string Comments { get; }
+
+ IAttributeDoc[] Attributes { get; }
+ IClassDoc[] Classes { get; }
+ IDelegateDoc[] Delegates { get; }
+ IEnumDoc[] Enums { get; }
+ IInterfaceDoc[] Interfaces { get; }
+ IStructDoc[] Structs { get; }
}
}
Index: IRootDoc.cs
===================================================================
RCS file: /cvsroot/csdoc/csdoc/src/csdoc/MCSDoc/IRootDoc.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- IRootDoc.cs 8 Mar 2003 10:59:30 -0000 1.2
+++ IRootDoc.cs 9 Mar 2003 15:17:29 -0000 1.3
@@ -13,11 +13,12 @@
{
public interface IRootDoc
{
- NamespaceDocList Namespaces { get; }
- ClassDocList Classes { get; }
- DelegateDocList Delegates { get; }
- EnumDocList Enums { get; }
- InterfaceDocList Interfaces { get; }
- StructDocList Structs { get; }
+ NamespaceDoc[] Namespaces { get; }
+
+ IClassDoc[] Classes { get; }
+ IDelegateDoc[] Delegates { get; }
+ IEnumDoc[] Enums { get; }
+ IInterfaceDoc[] Interfaces { get; }
+ IStructDoc[] Structs { get; }
}
}
|