~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to contrib/ICSharpCode.NRefactory/TypeSystem/IAssembly.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
Import upstream version 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team
2
 
// 
3
 
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
4
 
// software and associated documentation files (the "Software"), to deal in the Software
5
 
// without restriction, including without limitation the rights to use, copy, modify, merge,
6
 
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
7
 
// to whom the Software is furnished to do so, subject to the following conditions:
8
 
// 
9
 
// The above copyright notice and this permission notice shall be included in all copies or
10
 
// substantial portions of the Software.
11
 
// 
12
 
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
13
 
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14
 
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
15
 
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
16
 
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
17
 
// DEALINGS IN THE SOFTWARE.
18
 
 
19
 
using System;
20
 
using System.Collections.Generic;
21
 
 
22
 
namespace ICSharpCode.NRefactory.TypeSystem
23
 
{
24
 
        /// <summary>
25
 
        /// Represents an unresolved assembly.
26
 
        /// </summary>
27
 
        public interface IUnresolvedAssembly : IAssemblyReference
28
 
        {
29
 
                /// <summary>
30
 
                /// Gets the assembly name (short name).
31
 
                /// </summary>
32
 
                string AssemblyName { get; }
33
 
 
34
 
                string Location { get; set; }
35
 
                
36
 
                /// <summary>
37
 
                /// Gets the list of all assembly attributes in the project.
38
 
                /// </summary>
39
 
                IEnumerable<IUnresolvedAttribute> AssemblyAttributes { get; }
40
 
                
41
 
                /// <summary>
42
 
                /// Gets the list of all module attributes in the project.
43
 
                /// </summary>
44
 
                IEnumerable<IUnresolvedAttribute> ModuleAttributes { get; }
45
 
                
46
 
                /// <summary>
47
 
                /// Gets all non-nested types in the assembly.
48
 
                /// </summary>
49
 
                IEnumerable<IUnresolvedTypeDefinition> TopLevelTypeDefinitions { get; }
50
 
        }
51
 
        
52
 
        public interface IAssemblyReference
53
 
        {
54
 
                /// <summary>
55
 
                /// Resolves this assembly.
56
 
                /// </summary>
57
 
                IAssembly Resolve(ITypeResolveContext context);
58
 
        }
59
 
        
60
 
        /// <summary>
61
 
        /// Represents an assembly.
62
 
        /// </summary>
63
 
        public interface IAssembly : IResolved
64
 
        {
65
 
                /// <summary>
66
 
                /// Gets the original unresolved assembly.
67
 
                /// </summary>
68
 
                IUnresolvedAssembly UnresolvedAssembly { get; }
69
 
                
70
 
                /// <summary>
71
 
                /// Gets whether this assembly is the main assembly of the compilation.
72
 
                /// </summary>
73
 
                bool IsMainAssembly { get; }
74
 
                
75
 
                /// <summary>
76
 
                /// Gets the assembly name (short name).
77
 
                /// </summary>
78
 
                string AssemblyName { get; }
79
 
                
80
 
                /// <summary>
81
 
                /// Gets the list of all assembly attributes in the project.
82
 
                /// </summary>
83
 
                IList<IAttribute> AssemblyAttributes { get; }
84
 
                
85
 
                /// <summary>
86
 
                /// Gets the list of all module attributes in the project.
87
 
                /// </summary>
88
 
                IList<IAttribute> ModuleAttributes { get; }
89
 
                
90
 
                /// <summary>
91
 
                /// Gets whether the internals of this assembly are visible in the specified assembly.
92
 
                /// </summary>
93
 
                bool InternalsVisibleTo(IAssembly assembly);
94
 
                
95
 
                /// <summary>
96
 
                /// Gets the root namespace for this assembly.
97
 
                /// </summary>
98
 
                INamespace RootNamespace { get; }
99
 
                
100
 
                /// <summary>
101
 
                /// Gets the type definition for a top-level type.
102
 
                /// </summary>
103
 
                /// <remarks>This method uses ordinal name comparison, not the compilation's name comparer.</remarks>
104
 
                ITypeDefinition GetTypeDefinition(string ns, string name, int typeParameterCount);
105
 
                
106
 
                /// <summary>
107
 
                /// Gets all non-nested types in the assembly.
108
 
                /// </summary>
109
 
                IEnumerable<ITypeDefinition> TopLevelTypeDefinitions { get; }
110
 
        }
111
 
}