~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/Main/ICSharpCode.SharpDevelop.Dom/Project/Src/Interfaces/IUsing.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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)
 
3
 
 
4
using System;
 
5
using System.Collections.Generic;
 
6
 
 
7
namespace ICSharpCode.SharpDevelop.Dom
 
8
{
 
9
        public interface IUsing : IFreezable
 
10
        {
 
11
                DomRegion Region {
 
12
                        get;
 
13
                }
 
14
                
 
15
                IList<string> Usings {
 
16
                        get;
 
17
                }
 
18
                
 
19
                bool HasAliases { get; }
 
20
                
 
21
                void AddAlias(string alias, IReturnType type);
 
22
                
 
23
                /// <summary>
 
24
                /// Gets the list of aliases. Can be null when there are no aliases!
 
25
                /// </summary>
 
26
                IDictionary<string, IReturnType> Aliases {
 
27
                        get;
 
28
                }
 
29
                
 
30
                /// <summary>
 
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.
 
35
                /// </summary>
 
36
                /// <returns>An IEnumerable with zero or more non-null return types.</returns>
 
37
                IEnumerable<IReturnType> SearchType(string partialTypeName, int typeParameterCount);
 
38
                
 
39
                string SearchNamespace(string partialNamespaceName);
 
40
        }
 
41
}