~ubuntu-branches/ubuntu/lucid/monodevelop/lucid

« back to all changes in this revision

Viewing changes to contrib/Mono.Cecil/Mono.Cecil/Mono.Cecil/PropertyDefinition.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-02-02 11:39:59 UTC
  • mfrom: (1.2.6 upstream) (1.3.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100202113959-s4exdz7er7igylz2
Tags: 2.2.1+dfsg-1
* New upstream release
* debian/control:
  + Standards version 3.8.4 (no changes needed)
* debian/patches/remove_support_for_non_debian_functionality.patch,
  debian/patches/remove_support_for_soft_debugger.patch,
  debian/patches/remove_support_for_moonlight.patch,
  debian/rules:
  + Split patch into two pieces, to make it easier to enable either
    SDB or Moonlight support with a rebuild
* debian/monodevelop-moonlight.install,
  debian/monodevelop-debugger-sdb.install,
  debian/control:
  + Create packaging data for the Soft Debugger addin and Moonlight addin -
    and comment them out of debian/control as we can't provide them on
    Debian for now

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
                        set { m_attributes = value; }
50
50
                }
51
51
 
 
52
                public bool HasCustomAttributes {
 
53
                        get { return (m_customAttrs == null) ? false : (m_customAttrs.Count > 0); }
 
54
                }
 
55
 
52
56
                public CustomAttributeCollection CustomAttributes {
53
57
                        get {
54
58
                                if (m_customAttrs == null)
58
62
                        }
59
63
                }
60
64
 
 
65
                public override bool HasParameters {
 
66
                        get {
 
67
                                if (m_getMeth != null)
 
68
                                        return m_getMeth.HasParameters;
 
69
                                else if (m_setMeth != null)
 
70
                                        return m_setMeth.HasParameters;
 
71
                                else if (m_parameters == null)
 
72
                                        return false;
 
73
                                else
 
74
                                        return m_parameters.Count > 0;
 
75
                        }
 
76
                }
 
77
 
61
78
                public override ParameterDefinitionCollection Parameters {
62
79
                        get {
63
80
                                if (this.GetMethod != null)
142
159
 
143
160
                #endregion
144
161
 
 
162
                public new TypeDefinition DeclaringType {
 
163
                        get { return (TypeDefinition) base.DeclaringType; }
 
164
                        set { base.DeclaringType = value; }
 
165
                }
 
166
 
145
167
                public PropertyDefinition (string name, TypeReference propertyType, PropertyAttributes attrs) : base (name, propertyType)
146
168
                {
147
169
                        m_attributes = attrs;
148
170
                }
149
171
 
 
172
                public override PropertyDefinition Resolve ()
 
173
                {
 
174
                        return this;
 
175
                }
 
176
 
150
177
                public static MethodDefinition CreateGetMethod (PropertyDefinition prop)
151
178
                {
152
179
                        MethodDefinition get = new MethodDefinition (