~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom.Serialization/ClassEntry.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
                // Position of the complete class information in the pidb file
41
41
                long position;
42
42
                
43
 
                NamespaceEntry namespaceRef;
 
43
                string nspace;
44
44
                string name;
45
45
                
46
46
                [NonSerialized]
56
56
                Modifiers modifiers;
57
57
                TypeModifier typeModifier;
58
58
                
59
 
                public ClassEntry (IType cls, NamespaceEntry namespaceRef)
 
59
                public ClassEntry (IType cls)
60
60
                {
61
61
                        this.cls = cls;
62
 
                        this.namespaceRef = namespaceRef;
63
62
                        position = -1;
64
63
                        UpdateContent (cls);
65
64
                }
108
107
                void UpdateContent (IType cls)
109
108
                {
110
109
                        Name = cls.Name; 
 
110
                        Namespace = cls.Namespace;
111
111
                        ctype = cls.ClassType;
112
112
                        modifiers = cls.Modifiers;
113
113
                        typeModifier = cls.TypeModifier;
161
161
                        }
162
162
                }
163
163
                
164
 
                public NamespaceEntry NamespaceRef
 
164
                public string Namespace
165
165
                {
166
 
                        get { return namespaceRef; }
 
166
                        get { return nspace; }
 
167
                        set { nspace = value; }
167
168
                }
168
169
                
169
170
                public int LastGetTime
207
208
                
208
209
                public override string ToString()
209
210
                {
210
 
                        return string.Format("[ClassEntry: Position={0}, ClassType={1}, Modifiers={2}, ContentFlags={3}, Name={4}, NamespaceRef={5}, LastGetTime={6}, Subclasses={7}, TypeParameterCount={8}]", Position, ClassType, Modifiers, ContentFlags, Name, NamespaceRef, LastGetTime, Subclasses, TypeParameterCount);
 
211
                        return string.Format("[ClassEntry: Position={0}, ClassType={1}, Modifiers={2}, ContentFlags={3}, Name={4}, Namespace={5}, LastGetTime={6}, Subclasses={7}, TypeParameterCount={8}]", Position, ClassType, Modifiers, ContentFlags, Name, Namespace, LastGetTime, Subclasses, TypeParameterCount);
211
212
                }
212
213
        }
213
214