~ubuntu-branches/ubuntu/feisty/monodevelop/feisty

« back to all changes in this revision

Viewing changes to Core/src/MonoDevelop.Projects/MonoDevelop.Projects.CodeGeneration/CodeRefactorer.cs

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-08-18 00:51:23 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060818005123-5iit07y0j7wjg55f
Tags: 0.11+svn20060818-0ubuntu1
* New SVN snapshot
  + Works with Gtk# 2.9.0
* debian/control:
  + Updated Build-Depends
* debian/patches/use_nunit2.2.dpatch,
  debian/patches/use_real_libs.dpatch:
  + Updated
* debian/patches/versioncontrol_buildfix.dpatch:
  + Fix build failure in the version control addin

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
                
159
159
                bool IsSubclass (IParserContext ctx, IClass baseClass, IClass subclass)
160
160
                {
161
 
                        foreach (string clsName in subclass.BaseTypes)
162
 
                                if (clsName == baseClass.FullyQualifiedName)
 
161
                        foreach (IReturnType clsName in subclass.BaseTypes)
 
162
                                if (clsName.FullyQualifiedName == baseClass.FullyQualifiedName)
163
163
                                        return true;
164
164
 
165
 
                        foreach (string clsName in subclass.BaseTypes) {
166
 
                                IClass cls = ctx.GetClass (clsName, true, true);
 
165
                        foreach (IReturnType clsName in subclass.BaseTypes) {
 
166
                                IClass cls = ctx.GetClass (clsName.FullyQualifiedName, true, true);
167
167
                                if (cls != null && IsSubclass (ctx, baseClass, cls))
168
168
                                        return true;
169
169
                        }