Skip to content

Commit

Permalink
FindReferences: add support for searching in a different compilation …
Browse files Browse the repository at this point in the history
…than the entity is defined in.
  • Loading branch information
dgrunwald committed Dec 8, 2011
1 parent 119bc9b commit 93a5c13
Show file tree
Hide file tree
Showing 5 changed files with 296 additions and 127 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ namespace ICSharpCode.NRefactory.CSharp.Resolver
public interface IFindReferenceSearchScope
{
/// <summary>
/// Gets the parent compilation for this search scope.
/// Gets the compilation in which the entity being search for was defined.
/// This is not necessarily the same compilation as is being searched in.
/// </summary>
ICompilation Compilation { get; }

Expand All @@ -51,6 +52,6 @@ public interface IFindReferenceSearchScope
/// Creates a navigator that can find references to this entity and reports
/// them to the specified callback.
/// </summary>
IResolveVisitorNavigator GetNavigator(FoundReferenceCallback callback);
IResolveVisitorNavigator GetNavigator(ICompilation compilation, FoundReferenceCallback callback);
}
}
Loading

0 comments on commit 93a5c13

Please sign in to comment.