1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using System.Collections.Generic;
7
namespace ICSharpCode.SharpDevelop.Dom
9
public interface IUsing : IFreezable
15
IList<string> Usings {
19
bool HasAliases { get; }
21
void AddAlias(string alias, IReturnType type);
24
/// Gets the list of aliases. Can be null when there are no aliases!
26
IDictionary<string, IReturnType> Aliases {
31
/// Returns a collection of possible types that could be meant when using this Import
32
/// to search the type.
33
/// Types with the incorrect type parameter count might be returned, but for each
34
/// same using entry or alias entry at most one (the best matching) type should be returned.
36
/// <returns>An IEnumerable with zero or more non-null return types.</returns>
37
IEnumerable<IReturnType> SearchType(string partialTypeName, int typeParameterCount);
39
string SearchNamespace(string partialNamespaceName);