use MOONLIGHT symbol
[mcs.git] / tools / pdb2mdb / SourceLocationProvider.cs
blobed916afc7ee6220b2af88d741da544a1b91b803f
1 //-----------------------------------------------------------------------------
2 //
3 // Copyright (C) Microsoft Corporation. All Rights Reserved.
4 //
5 //-----------------------------------------------------------------------------
6 using System;
7 using System.Collections.Generic;
8 using System.IO;
9 using Microsoft.Cci;
10 using Microsoft.Cci.Pdb;
11 using System.Text;
12 using System.Diagnostics.SymbolStore;
14 namespace Microsoft.Cci {
16 internal sealed class UsedNamespace : IUsedNamespace {
18 internal UsedNamespace(IName alias, IName namespaceName) {
19 this.alias = alias;
20 this.namespaceName = namespaceName;
23 public IName Alias {
24 get { return this.alias; }
26 readonly IName 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) {
51 this.offset = offset;
52 this.length = length;
55 public uint Offset {
56 get { return this.offset; }
58 uint offset;
60 public uint Length {
61 get { return this.length; }
63 uint length;