diff options
author | Jb Evain <jb@evain.net> | 2019-08-30 01:20:36 +0300 |
---|---|---|
committer | Jb Evain <jb@evain.net> | 2019-08-30 01:20:36 +0300 |
commit | dcc3c632a754ccdfb65d4fb6b41eb0b99eb34da5 (patch) | |
tree | 241ce5bf0c8374cdb356a0155566c6e2c751afce | |
parent | b632818fd4b4488956f12fe065fa8573c1982eb4 (diff) |
Clean public API of Mono.Cecil.Pdb
-rw-r--r-- | symbols/pdb/Microsoft.Cci.Pdb/Interfaces.cs | 10 | ||||
-rw-r--r-- | symbols/pdb/Microsoft.Cci.Pdb/PdbInfo.cs | 6 | ||||
-rw-r--r-- | symbols/pdb/Microsoft.Cci.Pdb/SourceLocationProvider.cs | 2 |
3 files changed, 8 insertions, 10 deletions
diff --git a/symbols/pdb/Microsoft.Cci.Pdb/Interfaces.cs b/symbols/pdb/Microsoft.Cci.Pdb/Interfaces.cs index 82561fb..acc7f26 100644 --- a/symbols/pdb/Microsoft.Cci.Pdb/Interfaces.cs +++ b/symbols/pdb/Microsoft.Cci.Pdb/Interfaces.cs @@ -1,12 +1,12 @@ using System; using System.Collections.Generic; -namespace Microsoft.Cci { +namespace Microsoft.Cci.Pdb { /// <summary> /// A range of CLR IL operations that comprise a lexical scope, specified as an IL offset and a length. /// </summary> - public interface ILocalScope { + interface ILocalScope { /// <summary> /// The offset of the first operation in the scope. /// </summary> @@ -22,7 +22,7 @@ namespace Microsoft.Cci { /// A description of the lexical scope in which a namespace type has been nested. This scope is tied to a particular /// method body, so that partial types can be accommodated. /// </summary> - public interface INamespaceScope { + interface INamespaceScope { /// <summary> /// Zero or more used namespaces. These correspond to using clauses in C#. @@ -35,7 +35,7 @@ namespace Microsoft.Cci { /// <summary> /// A namespace that is used (imported) inside a namespace scope. /// </summary> - public interface IUsedNamespace { + interface IUsedNamespace { /// <summary> /// An alias for a namespace. For example the "x" of "using x = y.z;" in C#. Empty if no alias is present. /// </summary> @@ -50,7 +50,7 @@ namespace Microsoft.Cci { /// <summary> /// The name of an entity. Typically name instances come from a common pool. Within the pool no two distinct instances will have the same Value or UniqueKey. /// </summary> - public interface IName { + interface IName { /// <summary> /// An integer that is unique within the pool from which the name instance has been allocated. Useful as a hashtable key. /// </summary> diff --git a/symbols/pdb/Microsoft.Cci.Pdb/PdbInfo.cs b/symbols/pdb/Microsoft.Cci.Pdb/PdbInfo.cs index 38a930c..5a4e32b 100644 --- a/symbols/pdb/Microsoft.Cci.Pdb/PdbInfo.cs +++ b/symbols/pdb/Microsoft.Cci.Pdb/PdbInfo.cs @@ -4,9 +4,7 @@ using System; using System.Collections.Generic; -using Microsoft.Cci.Pdb; - -namespace Microsoft.Cci { +namespace Microsoft.Cci.Pdb { /// <summary> /// This class represents the information read from a PDB file (both legacy Windows and Portable). @@ -15,7 +13,7 @@ namespace Microsoft.Cci { /// <summary> /// Enumeration of per-function information contained in the PDB file. /// </summary> - public IEnumerable<PdbFunction> Functions; + public PdbFunction[] Functions; /// <summary> /// Mapping from tokens to source files and line numbers. diff --git a/symbols/pdb/Microsoft.Cci.Pdb/SourceLocationProvider.cs b/symbols/pdb/Microsoft.Cci.Pdb/SourceLocationProvider.cs index 4b6b152..74d0e63 100644 --- a/symbols/pdb/Microsoft.Cci.Pdb/SourceLocationProvider.cs +++ b/symbols/pdb/Microsoft.Cci.Pdb/SourceLocationProvider.cs @@ -7,7 +7,7 @@ using System.IO; #pragma warning disable 1591 // TODO: doc comments -namespace Microsoft.Cci { +namespace Microsoft.Cci.Pdb { internal sealed class PdbIteratorScope : ILocalScope { |