[csdoc-patches] CVS: csdoc/src/csdoc/MCSDoc RootDoc.cs,1.2,1.3 ChangeLog,1.6,1.7 ClassDoc.cs,1.1,1.2
Status: Planning
Brought to you by:
mastergaurav
|
From: Gaurav V. <mas...@us...> - 2003-03-27 17:57:32
|
Update of /cvsroot/csdoc/csdoc/src/csdoc/MCSDoc
In directory sc8-pr-cvs1:/tmp/cvs-serv14130
Modified Files:
ChangeLog ClassDoc.cs DocTreeGenerator.cs IContainerDoc.cs
IRootDoc.cs
Added Files:
RootDoc.cs
Log Message:
2003-03-27
* RootDoc.cs : Initial implementation.
* ClassDoc.cs : Initial implementation.
* DocTreeGenerator.cs : Going ahead and back and ahead.
* IContainerDoc.cs : IContainerDoc made property.
* IRootDoc.cs : Namespaces is INamespace[]
Index: ChangeLog
===================================================================
RCS file: /cvsroot/csdoc/csdoc/src/csdoc/MCSDoc/ChangeLog,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ChangeLog 22 Mar 2003 07:57:32 -0000 1.6
+++ ChangeLog 27 Mar 2003 17:57:17 -0000 1.7
@@ -1,4 +1,12 @@
+2003-03-27 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
+
+ * RootDoc.cs : Initial implementation.
+ * ClassDoc.cs : Initial implementation.
+ * DocTreeGenerator.cs : Going ahead and back and ahead.
+ * IContainerDoc.cs : IContainerDoc made property.
+ * IRootDoc.cs : Namespaces is INamespace[]
+
2003-03-22 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
* DocTreeGenerator.cs : Stubbed RootDoc { get; }
Index: ClassDoc.cs
===================================================================
RCS file: /cvsroot/csdoc/csdoc/src/csdoc/MCSDoc/ClassDoc.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ClassDoc.cs 22 Mar 2003 07:43:45 -0000 1.1
+++ ClassDoc.cs 27 Mar 2003 17:57:17 -0000 1.2
@@ -8,28 +8,45 @@
*/
using System;
+using System.Collections;
using Mono.CSharp;
namespace MCSDoc
{
- public interface ClassDoc : IClassDoc
+ public class ClassDoc : IClassDoc
{
private Class klass;
private bool isException;
private bool isAttribute;
- private IClassDoc baseClass;
- private IInterfaceDoc[] interfaces;
+ private IClassDoc baseClass = null;
+ private IInterfaceDoc[] interfaces = null;
+ private IContainerDoc container = null;
public ClassDoc(Class klass)
{
this.klass = klass;
- Parse();
+ // need to Set - BaseClass, Interfaces, Container
+ throw new NotImplementedException();
}
-
+
private void Parse()
{
- throw new NotImplementedException();
+ /*
+ ArrayList bases = klass.Bases;
+ if(bases != null || bases.Count > 0)
+ {
+ //
+ }
+ */
+ }
+
+ public bool IsContained
+ {
+ get
+ {
+ return this.container != null;
+ }
}
public bool IsException
@@ -61,6 +78,14 @@
get
{
return interfaces;
+ }
+ }
+
+ public IContainerDoc Container
+ {
+ get
+ {
+ return this.container;
}
}
}
Index: DocTreeGenerator.cs
===================================================================
RCS file: /cvsroot/csdoc/csdoc/src/csdoc/MCSDoc/DocTreeGenerator.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DocTreeGenerator.cs 22 Mar 2003 07:57:32 -0000 1.2
+++ DocTreeGenerator.cs 27 Mar 2003 17:57:18 -0000 1.3
@@ -15,15 +15,20 @@
internal class DocTreeGenerator
{
private TypeContainer root;
+ private IRootDoc rootDoc;
public DocTreeGenerator(TypeContainer root)
{
this.root = root;
+ rootDoc = new RootDoc();
CreateTree();
}
private void CreateTree()
{
+ /* go through each Types, Delegates,
+ * Enums, Interfaces
+ */
throw new NotImplementedException();
}
@@ -31,7 +36,7 @@
{
get
{
- throw new NotImplementedException();
+ return rootDoc;
}
}
}
Index: IContainerDoc.cs
===================================================================
RCS file: /cvsroot/csdoc/csdoc/src/csdoc/MCSDoc/IContainerDoc.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- IContainerDoc.cs 9 Mar 2003 15:17:29 -0000 1.1
+++ IContainerDoc.cs 27 Mar 2003 17:57:18 -0000 1.2
@@ -19,7 +19,7 @@
// Returns non null only if(IsContained)
// may throw an exception otherwise
- IContainerDoc GetContainerDoc();
+ IContainerDoc ContainerDoc { get; }
IAttributeDoc[] Attributes { get; }
IMethodDoc[] Methods { get; }
Index: IRootDoc.cs
===================================================================
RCS file: /cvsroot/csdoc/csdoc/src/csdoc/MCSDoc/IRootDoc.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- IRootDoc.cs 9 Mar 2003 15:17:29 -0000 1.3
+++ IRootDoc.cs 27 Mar 2003 17:57:18 -0000 1.4
@@ -13,7 +13,7 @@
{
public interface IRootDoc
{
- NamespaceDoc[] Namespaces { get; }
+ INamespaceDoc[] Namespaces { get; }
IClassDoc[] Classes { get; }
IDelegateDoc[] Delegates { get; }
|