This repository has been archived by the owner on Sep 24, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add INamespace.ContributingAssemblies.
- Loading branch information
Showing
5 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
|
@@ -20,7 +20,6 @@ | ||
using System.Collections.Generic; | using System.Collections.Generic; | ||
using System.Globalization; | using System.Globalization; | ||
using System.Linq; | using System.Linq; | ||
using System.Text; | |||
using ICSharpCode.NRefactory.Utils; | using ICSharpCode.NRefactory.Utils; | ||
|
|
||
namespace ICSharpCode.NRefactory.TypeSystem.Implementation | namespace ICSharpCode.NRefactory.TypeSystem.Implementation | ||
|
@@ -96,6 +95,10 @@ public MergedNamespace(INamespace parentNamespace, INamespace[] namespaces) | ||
get { return compilation; } | get { return compilation; } | ||
} | } | ||
|
|
||
public IEnumerable<IAssembly> ContributingAssemblies { | |||
get { return namespaces.SelectMany(ns => ns.ContributingAssemblies); } | |||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
dgrunwald
Author
Member
|
|||
} | |||
|
|||
public IEnumerable<INamespace> ChildNamespaces { | public IEnumerable<INamespace> ChildNamespaces { | ||
get { return GetChildNamespaces().Values; } | get { return GetChildNamespaces().Values; } | ||
} | } | ||
|
Shouldn't there be a
Distinct()
here?