[csdoc-patches] CVS: csdoc/src/csdoc ChangeLog,1.19,1.20 cs-parser.jay,1.7,1.8
Status: Planning
Brought to you by:
mastergaurav
From: Gaurav V. <mas...@us...> - 2003-03-28 18:10:57
|
Update of /cvsroot/csdoc/csdoc/src/csdoc In directory sc8-pr-cvs1:/tmp/cvs-serv24871 Modified Files: ChangeLog cs-parser.jay Log Message: 2003-03-28 * cs-parser.jay : Attributes cannot be applied to namesapces. Index: ChangeLog =================================================================== RCS file: /cvsroot/csdoc/csdoc/src/csdoc/ChangeLog,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- ChangeLog 28 Mar 2003 14:29:38 -0000 1.19 +++ ChangeLog 28 Mar 2003 18:10:42 -0000 1.20 @@ -1,6 +1,11 @@ 2003-03-28 Gaurav Vaish <mastergaurav AT users DOT sf DOT net> + * cs-parser.jay : Attributes cannot be applied + to namesapces. + +2003-03-28 Gaurav Vaish <mastergaurav AT users DOT sf DOT net> + * rootcontext.cs : Set the type of AttributeTypes 2003-03-28 Gaurav Vaish <mastergaurav AT users DOT sf DOT net> Index: cs-parser.jay =================================================================== RCS file: /cvsroot/csdoc/csdoc/src/csdoc/cs-parser.jay,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- cs-parser.jay 27 Mar 2003 17:50:51 -0000 1.7 +++ cs-parser.jay 28 Mar 2003 18:10:45 -0000 1.8 @@ -320,6 +320,10 @@ foreach (AttributeSection asec in attrs.AttributeSections) if (asec.Target == "assembly") RootContext.AddGlobalAttributeSection (current_container, asec); + else + Report.Error(1518, Lexer.Location, + "Attributes cannot be applied to namespaces." + + " Expected class, delegate, enum, interface, or struct"); } current_namespace = RootContext.Tree.RecordNamespace (current_namespace, file, (string) $3); |