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

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom/InstantiatedParameterType.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:
53
53
                        Namespace = outerType.DecoratedFullName;
54
54
                        Location = outerType.Location;
55
55
                        DeclaringType = outerType;
56
 
                        if (tp.ValueTypeRequired)
57
 
                                BaseType = new DomReturnType ("System.ValueType");
58
56
                        
59
57
                        if (tp.Constraints.Count > 0)
60
58
                                ClassType = ClassType.Interface;
61
59
                        foreach (IReturnType rt in tp.Constraints) {
62
60
                                if (FindCyclicReference (new HashSet<ITypeParameter> () { tp }, outerType, ((DomReturnType)rt).DecoratedFullName))
63
61
                                        continue;
64
 
                                IType bt = dom.SearchType (typeParameterMember, rt);
 
62
                                IType bt = dom.SearchType (compilationUnit, outerType, outerType.Location, rt);
 
63
                                
65
64
                                IReturnType resolvedType = rt;
66
65
                                if (bt != null) {
67
66
                                        resolvedType = new DomReturnType (bt);
117
116
                        }
118
117
                }
119
118
 
120
 
                public bool ConstructorRequired {
121
 
                        get {
122
 
                                return typeparam.ConstructorRequired;
123
 
                        }
124
 
                }
125
 
 
126
 
                public bool ClassRequired {
127
 
                        get { 
128
 
                                return typeparam.ClassRequired; 
129
 
                        }
130
 
                }
131
 
 
132
 
                public bool ValueTypeRequired {
133
 
                        get { 
134
 
                                return typeparam.ValueTypeRequired;
135
 
                        }
136
 
                }
137
 
 
138
119
                public TypeParameterVariance Variance {
139
120
                        get {
140
121
                                return typeparam.Variance;
141
122
                        }
142
123
                }
 
124
                
 
125
                public TypeParameterModifier TypeParameterModifier {
 
126
                        get {
 
127
                                return typeparam.TypeParameterModifier;
 
128
                        }
 
129
                }
143
130
 
144
131
                #endregion
145
132