blob: 78b9f0a3254f121e5f9ce7be756ac9d332ca07ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
namespace Internal.TypeSystem
{
public abstract partial class ModuleDesc
{
/// <summary>
/// Gets the type system context the module belongs to.
/// </summary>
public TypeSystemContext Context
{
get;
private set;
}
public ModuleDesc(TypeSystemContext context)
{
Context = context;
}
/// <summary>
/// Gets a type in this module with the specified name.
/// </summary>
public abstract MetadataType GetType(string nameSpace, string name, bool throwIfNotFound = true);
/// <summary>
/// Gets the global <Module> type.
/// </summary>
public abstract TypeDesc GetGlobalModuleType();
/// <summary>
/// Retrieves a collection of all types defined in the current module. This includes nested types.
/// </summary>
public abstract IEnumerable<MetadataType> GetAllTypes();
}
}
|