[Monodevelop-patches-list] r2457 - in trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory: . src/Parser/AST tests
John Luke <jluke@cfl.rr.com>
jluke at mono-cvs.ximian.com
Fri Apr 15 12:11:17 EDT 2005
Author: jluke
Date: 2005-04-15 12:11:17 -0400 (Fri, 15 Apr 2005)
New Revision: 2457
Added:
trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/tests/unsafe-1.cs
Modified:
trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/ChangeLog
trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/src/Parser/AST/Modifier.cs
Log:
unsafe is valid on properties, events and methods
Modified: trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/ChangeLog 2005-04-15 12:42:04 UTC (rev 2456)
+++ trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/ChangeLog 2005-04-15 16:11:17 UTC (rev 2457)
@@ -1,3 +1,8 @@
+2005-04-15 John Luke <john.luke at gmail.com>
+
+ * src/Parser/AST/Modifier.cs: add Unsafe to PropertysEventsMethods
+ * tests/unsafe-1.cs: new test
+
2005-04-13 John Luke <john.luke at gmail.com>
* src/Parser/AST/GlobalScope/TypeDeclaration.cs: add IsStaticClass
Modified: trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/src/Parser/AST/Modifier.cs
===================================================================
--- trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/src/Parser/AST/Modifier.cs 2005-04-15 12:42:04 UTC (rev 2456)
+++ trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/src/Parser/AST/Modifier.cs 2005-04-15 16:11:17 UTC (rev 2457)
@@ -31,7 +31,7 @@
Classes = New | Public | Protected | Internal | Private | Abstract | Sealed | Static,
Fields = New | Public | Protected | Internal | Private | Static | Readonly | Volatile,
- PropertysEventsMethods = New | Public | Protected | Internal | Private | Static | Virtual | Sealed | Override | Abstract | Extern,
+ PropertysEventsMethods = New | Public | Protected | Internal | Private | Static | Virtual | Sealed | Override | Abstract | Extern | Unsafe,
Indexers = New | Public | Protected | Internal | Private | Virtual | Sealed | Override | Abstract | Extern,
Operators = Public | Static | Extern,
Constants = New | Public | Protected | Internal | Private,
Added: trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/tests/unsafe-1.cs
===================================================================
--- trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/tests/unsafe-1.cs 2005-04-15 12:42:04 UTC (rev 2456)
+++ trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/tests/unsafe-1.cs 2005-04-15 16:11:17 UTC (rev 2457)
@@ -0,0 +1,14 @@
+using System;
+
+class T
+{
+ unsafe private void Foo ()
+ {
+ }
+
+ unsafe int Bar {
+ get { return 0; }
+ }
+
+ unsafe public event EventHandler Notify;
+}
More information about the Monodevelop-patches-list
mailing list