~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ClassPad/ProjectNodeBuilder.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
                        var dom = TypeSystemService.GetCompilation (project);
110
110
                        bool nestedNamespaces = builder.Options ["NestedNamespaces"];
111
111
                        HashSet<string> addedNames = new HashSet<string> ();
112
 
                        foreach (var ns in dom.RootNamespace.ChildNamespaces) {
 
112
                        foreach (var ns in dom.MainAssembly.RootNamespace.ChildNamespaces) {
113
113
                                if (nestedNamespaces) {
114
114
                                        if (!addedNames.Contains (ns.Name)) {
115
115
                                                builder.AddChild (new ProjectNamespaceData (project, ns));
119
119
                                        FillNamespaces (builder, project, ns);
120
120
                                }
121
121
                        }
122
 
                        foreach (var type in dom.RootNamespace.Types) {
 
122
                        foreach (var type in dom.MainAssembly.RootNamespace.Types) {
123
123
                                if (!publicOnly || type.IsPublic)
124
124
                                        builder.AddChild (new ClassData (project, type));
125
125
                        }