1
//-----------------------------------------------------------------------------
3 // Copyright (C) Microsoft Corporation. All Rights Reserved.
5 //-----------------------------------------------------------------------------
7 using System
.Collections
.Generic
;
10 using Microsoft
.Cci
.Pdb
;
12 using System
.Diagnostics
.SymbolStore
;
14 namespace Microsoft
.Cci
{
16 internal sealed class UsedNamespace
: IUsedNamespace
{
18 internal UsedNamespace(IName
alias, IName namespaceName
) {
20 this.namespaceName
= namespaceName
;
24 get { return this.alias; }
28 public IName NamespaceName
{
29 get { return this.namespaceName; }
31 readonly IName namespaceName
;
35 internal class NamespaceScope
: INamespaceScope
{
37 internal NamespaceScope(IEnumerable
<IUsedNamespace
> usedNamespaces
) {
38 this.usedNamespaces
= usedNamespaces
;
41 public IEnumerable
<IUsedNamespace
> UsedNamespaces
{
42 get { return this.usedNamespaces; }
44 readonly IEnumerable
<IUsedNamespace
> usedNamespaces
;
48 internal sealed class PdbIteratorScope
: ILocalScope
{
50 internal PdbIteratorScope(uint offset
, uint length
) {
56 get { return this.offset; }
61 get { return this.length; }