[csdoc-patches] CVS: csdoc/src/mcs cs-parser.jay,1.3,1.4 cs-tokenizer.cs,1.2,1.3
Status: Planning
Brought to you by:
mastergaurav
|
From: Gaurav V. <mas...@us...> - 2003-02-19 05:43:16
|
Update of /cvsroot/csdoc/csdoc/src/mcs
In directory sc8-pr-cvs1:/tmp/cvs-serv7161
Modified Files:
cs-parser.jay cs-tokenizer.cs
Log Message:
2003-02-19
* **: Reverting changes. Will update in ../csodc.
Index: cs-parser.jay
===================================================================
RCS file: /cvsroot/csdoc/csdoc/src/mcs/cs-parser.jay,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- cs-parser.jay 18 Feb 2003 14:30:17 -0000 1.3
+++ cs-parser.jay 19 Feb 2003 05:43:13 -0000 1.4
@@ -650,7 +650,6 @@
current_container = new_struct;
current_container.Namespace = current_namespace;
RootContext.Tree.RecordDecl (full_struct_name, new_struct);
- lexer.SaveDocumentFor(new_struct);
}
opt_class_base
struct_body
@@ -805,7 +804,6 @@
}
;
-// Modified by Gaurav Vaish
method_declaration
: method_header
method_body
@@ -830,7 +828,6 @@
method.Block = (Block) $2;
CheckDef (current_container.AddMethod (method), method.Name, method.Location);
- lexer.SaveDocumentFor(method);
current_local_parameters = null;
}
@@ -1098,7 +1095,6 @@
current_interface = new_interface;
new_interface.Namespace = current_namespace;
RootContext.Tree.RecordDecl (full_interface_name, new_interface);
- lexer.SaveDocumentFor(new_interface);
}
opt_interface_base
interface_body opt_semicolon
@@ -1492,7 +1488,6 @@
}
;
-// Added by Gaurav Vaish
event_declaration
: opt_attributes
opt_modifiers
@@ -1504,7 +1499,6 @@
var.expression_or_array_initializer,
(int) $2, null, null, (Attributes) $1, lexer.Location);
- lexer.SaveDocumentFor(e);
CheckDef (current_container.AddEvent (e), e.Name, e.Location);
}
@@ -1537,7 +1531,6 @@
Event e = new Event ((Expression) $4, (string) $5, null, (int) $2, add_accessor, rem_accessor,
(Attributes) $1, loc);
- lexer.SaveDocumentFor(e);
CheckDef (current_container.AddEvent (e), e.Name, loc);
implicit_value_parameter_type = null;
@@ -1688,7 +1681,6 @@
CheckDef (current_container.AddEnum (e), full_name, enum_location);
RootContext.Tree.RecordDecl (full_name, e);
- lexer.SaveDocumentFor(e);
}
;
@@ -1759,8 +1751,7 @@
del.Namespace = current_namespace;
CheckDef (current_container.AddDelegate (del), del.Name, l);
- lexer.SaveDocumentFor(del);
- }
+ }
| opt_attributes
opt_modifiers
DELEGATE VOID
@@ -1777,7 +1768,6 @@
del.Namespace = current_namespace;
CheckDef (current_container.AddDelegate (del), del.Name, l);
- lexer.SaveDocumentFor(del);
}
;
@@ -2587,8 +2577,6 @@
//
// 10 classes
-// Adding support for documentation.
-// Modified by Gaurav Vaish.
//
class_declaration
: opt_attributes
@@ -2602,7 +2590,6 @@
new_class = new Class (current_container, name, (int) $2,
(Attributes) $1, lexer.Location);
- lexer.SaveDocumentFor(new_class);
current_container = new_class;
current_container.Namespace = current_namespace;
RootContext.Tree.RecordDecl (name, new_class);
@@ -2612,7 +2599,6 @@
opt_semicolon
{
Class new_class = (Class) current_container;
- //lexer.SaveDocumentFor(new_class);
if ($6 != null)
new_class.Bases = (ArrayList) $6;
Index: cs-tokenizer.cs
===================================================================
RCS file: /cvsroot/csdoc/csdoc/src/mcs/cs-tokenizer.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- cs-tokenizer.cs 18 Feb 2003 11:39:21 -0000 1.2
+++ cs-tokenizer.cs 19 Feb 2003 05:43:13 -0000 1.3
@@ -54,19 +54,6 @@
bool any_token_seen = false;
static Hashtable tokenValues;
- // Adding support for documentation.
- // Modified by Gaurav Vaish
-
- private Hashtable documentationStrings = new Hashtable();
- private string commentString = "";
-
- public void SaveDocumentFor(object new_class)
- {
- documentationStrings[new_class] = commentString;
- System.Console.WriteLine("Document for {0}:\n\n{1}", new_class.ToString(), commentString);
- commentString = "";
- }
-
private static Hashtable TokenValueName
{
get {
@@ -1612,12 +1599,8 @@
if (d == '/'){
getChar ();
- // Modified by Gaurav Vaish
while ((d = getChar ()) != -1 && (d != '\n') && d != '\r')
- {
- commentString += (char)d;
col++;
- }
if (d == '\n'){
line++;
ref_line++;
@@ -1635,7 +1618,6 @@
col++;
break;
}
- commentString += (char)d;
if (d == '\n'){
line++;
ref_line++;
|