Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/HeuristicLab.ExtLibs/HeuristicLab.Cecil/0.9.5/Mono.Cecil-0.9.5/Symbols/Mono.Cecil.Pdb/Microsoft.Cci.Pdb/SourceLocationProvider.cs @ 15682

Last change on this file since 15682 was 11700, checked in by jkarder, 10 years ago

#2077: created branch and added first version

File size: 1.5 KB
Line 
1//-----------------------------------------------------------------------------
2//
3// Copyright (C) Microsoft Corporation.  All Rights Reserved.
4//
5//-----------------------------------------------------------------------------
6using System;
7using System.Collections.Generic;
8using System.IO;
9using Microsoft.Cci;
10using Microsoft.Cci.Pdb;
11using System.Text;
12using System.Diagnostics.SymbolStore;
13
14namespace Microsoft.Cci {
15
16  internal sealed class UsedNamespace : IUsedNamespace {
17
18    internal UsedNamespace(IName alias, IName namespaceName) {
19      this.alias = alias;
20      this.namespaceName = namespaceName;
21    }
22
23    public IName Alias {
24      get { return this.alias; }
25    }
26    readonly IName alias;
27
28    public IName NamespaceName {
29      get { return this.namespaceName; }
30    }
31    readonly IName namespaceName;
32
33  }
34
35  internal class NamespaceScope : INamespaceScope {
36
37    internal NamespaceScope(IEnumerable<IUsedNamespace> usedNamespaces) {
38      this.usedNamespaces = usedNamespaces;
39    }
40
41    public IEnumerable<IUsedNamespace> UsedNamespaces {
42      get { return this.usedNamespaces; }
43    }
44    readonly IEnumerable<IUsedNamespace> usedNamespaces;
45
46  }
47
48  internal sealed class PdbIteratorScope : ILocalScope {
49
50    internal PdbIteratorScope(uint offset, uint length) {
51      this.offset = offset;
52      this.length = length;
53    }
54
55    public uint Offset {
56      get { return this.offset; }
57    }
58    uint offset;
59
60    public uint Length {
61      get { return this.length; }
62    }
63    uint length;
64
65  }
66}
Note: See TracBrowser for help on using the repository browser.