Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaja R Harinath <harinath@hurrynot.org>2006-03-22 16:56:52 +0300
committerRaja R Harinath <harinath@hurrynot.org>2006-03-22 16:56:52 +0300
commit67597881bd4731b3f1c848fc9f8f13e63e7d2c0f (patch)
tree5ac9caf7f1d149b20e9aa55b12d5284d0a2ac667 /mcs/gmcs/typemanager.cs
parentfaeb69cda632060c54c62431e8ab2888e10422c1 (diff)
In gmcs:
Support ParameterDefaultValueAttribute in gmcs. Also applied to mcs to keep code differences small. * attribute.cs (Attribute.GetParameterDefaultValue): New. * typemanager.cs (parameter_default_value_attribute_type): New. * parameter.cs (Parameter.ApplyAttributeBuilder): Use them. Add CS1908 check. In mcs: Support ParameterDefaultValueAttribute in gmcs. Also applied to mcs to keep code differences small. * attribute.cs (Attribute.GetParameterDefaultValue): New. * typemanager.cs (parameter_default_value_attribute_type): New. * parameter.cs (Parameter.ApplyAttributeBuilder): Use them. Add CS1908 check. In errors: * gcs1908.cs, gcs1908-2.cs, gcs1908-3.cs, gcs1908-4.cs: New tests for DefaultParameterValueAttribute. In tests: * gtest-262.cs: New test for DefaultParameterValueAttribute. svn path=/trunk/mcs/; revision=58300
Diffstat (limited to 'mcs/gmcs/typemanager.cs')
-rw-r--r--mcs/gmcs/typemanager.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/mcs/gmcs/typemanager.cs b/mcs/gmcs/typemanager.cs
index 8cd99af71b6..6d13970cc1b 100644
--- a/mcs/gmcs/typemanager.cs
+++ b/mcs/gmcs/typemanager.cs
@@ -90,6 +90,8 @@ public partial class TypeManager {
static public Type conditional_attribute_type;
static public Type in_attribute_type;
static public Type out_attribute_type;
+ static public Type default_parameter_value_attribute_type;
+
static public Type anonymous_method_type;
static public Type cls_compliant_attribute_type;
static public Type typed_reference_type;
@@ -978,6 +980,9 @@ public partial class TypeManager {
param_array_type = CoreLookupType ("System", "ParamArrayAttribute");
in_attribute_type = CoreLookupType ("System.Runtime.InteropServices", "InAttribute");
out_attribute_type = CoreLookupType ("System.Runtime.InteropServices", "OutAttribute");
+#if NET_2_0
+ default_parameter_value_attribute_type = CoreLookupType ("System.Runtime.InteropServices", "DefaultParameterValueAttribute");
+#endif
typed_reference_type = CoreLookupType ("System", "TypedReference");
arg_iterator_type = CoreLookupType ("System", "ArgIterator");
mbr_type = CoreLookupType ("System", "MarshalByRefObject");