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