blob: 2b28971cbbbb5221abdceaa233203d25068d6a09 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
//-----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All Rights Reserved.
//
//-----------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.IO;
using Microsoft.Cci;
using Microsoft.Cci.Pdb;
using System.Text;
using System.Diagnostics.SymbolStore;
namespace Microsoft.Cci {
internal sealed class UsedNamespace : IUsedNamespace {
internal UsedNamespace(IName alias, IName namespaceName) {
this.alias = alias;
this.namespaceName = namespaceName;
}
public IName Alias {
get { return this.alias; }
}
readonly IName alias;
public IName NamespaceName {
get { return this.namespaceName; }
}
readonly IName namespaceName;
}
internal class NamespaceScope : INamespaceScope {
internal NamespaceScope(IEnumerable<IUsedNamespace> usedNamespaces) {
this.usedNamespaces = usedNamespaces;
}
public IEnumerable<IUsedNamespace> UsedNamespaces {
get { return this.usedNamespaces; }
}
readonly IEnumerable<IUsedNamespace> usedNamespaces;
}
internal sealed class PdbIteratorScope : ILocalScope {
internal PdbIteratorScope(uint offset, uint length) {
this.offset = offset;
this.length = length;
}
public uint Offset {
get { return this.offset; }
}
uint offset;
public uint Length {
get { return this.length; }
}
uint length;
}
}
|