mail-archives/mono-bugs/2003-March/004351.html

105 строки
3.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 40473][Cri] Changed - Wrong parsing of global attributes
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:bugzilla-daemon%40rocky.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="004350.html">
<LINK REL="Next" HREF="004352.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 40473][Cri] Changed - Wrong parsing of global attributes
</H1>
<B>bugzilla-daemon@rocky.ximian.com
</B>
<A HREF="mailto:bugzilla-daemon%40rocky.ximian.com"
TITLE="[Mono-bugs] [Bug 40473][Cri] Changed - Wrong parsing of global attributes">bugzilla-daemon@rocky.ximian.com
</A><BR>
<I>Fri, 28 Mar 2003 10:40:35 -0500 (EST)</I>
<P><UL>
<LI> Previous message: <A HREF="004350.html">[Mono-bugs] [Bug 40473][Cri] Changed - Wrong parsing of global attributes
</A></li>
<LI> Next message: <A HREF="004352.html">[Mono-bugs] [Bug 40473][Cri] Changed - Wrong parsing of global attributes
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4351">[ date ]</a>
<a href="thread.html#4351">[ thread ]</a>
<a href="subject.html#4351">[ subject ]</a>
<a href="author.html#4351">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by <A HREF="mailto:gvaish@adobe.com.">gvaish@adobe.com.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=40473">http://bugzilla.ximian.com/show_bug.cgi?id=40473</A>
--- shadow/40473 Fri Mar 28 10:38:36 2003
+++ shadow/40473.tmp.1083 Fri Mar 28 10:40:35 2003
@@ -39,6 +39,41 @@
Error in grammar.
------- Additional Comments From <A HREF="mailto:gvaish@adobe.com">gvaish@adobe.com</A> 2003-03-28 10:38 -------
Created an attachment (id=3854)
Test case for bug #40473
+
+------- Additional Comments From <A HREF="mailto:gvaish@adobe.com">gvaish@adobe.com</A> 2003-03-28 10:40 -------
+Need to modify the rule:
+
+&lt;snip file=&quot;cs-parser.jay&quot;&gt;
+namespace_declaration
+ : opt_attributes NAMESPACE qualified_identifier
+ {
+ Attributes attrs = (Attributes) $1;
+
+ if (attrs != null) {
+ foreach (AttributeSection asec in attrs.AttributeSections)
+ if (asec.Target == &quot;assembly&quot;)
+ RootContext.AddGlobalAttributeSection
+(current_container,
+asec);
+ }
+
+ current_namespace = RootContext.Tree.RecordNamespace
+(current_namespace, file, (string) $3);
+ }
+
+&lt;/snip&gt;
+
+ to:
+
+&lt;modified_rule&gt;
+ if(asec.Target == &quot;assembly&quot;)
+ RootContext.AddGlobalAttributeSection(current_container,
+asec);
+ else
+ Reports.Error(&quot;Cannot apply non-assembly attribute to a
+namespace&quot;);
+&lt;/modified_rule&gt;
+
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="004350.html">[Mono-bugs] [Bug 40473][Cri] Changed - Wrong parsing of global attributes
</A></li>
<LI> Next message: <A HREF="004352.html">[Mono-bugs] [Bug 40473][Cri] Changed - Wrong parsing of global attributes
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4351">[ date ]</a>
<a href="thread.html#4351">[ thread ]</a>
<a href="subject.html#4351">[ subject ]</a>
<a href="author.html#4351">[ author ]</a>
</LI>
</UL>
</body></html>