Skip to content

Commit

Permalink
Make all Demystifier classes internal (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaboss-rsb authored Jun 8, 2022
1 parent 2a472ed commit 645a596
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/Exceptionless/Demystifier/EnhancedStackFrame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace System.Diagnostics
{
public class EnhancedStackFrame : StackFrame
internal class EnhancedStackFrame : StackFrame
{
private readonly string? _fileName;
private readonly int _lineNumber;
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptionless/Demystifier/EnhancedStackTrace.Frames.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

namespace System.Diagnostics
{
public partial class EnhancedStackTrace
internal partial class EnhancedStackTrace
{
private static readonly Type? StackTraceHiddenAttributeType = Type.GetType("System.Diagnostics.StackTraceHiddenAttribute", false);

Expand Down
2 changes: 1 addition & 1 deletion src/Exceptionless/Demystifier/EnhancedStackTrace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace System.Diagnostics
{
public partial class EnhancedStackTrace : StackTrace, IEnumerable<EnhancedStackFrame>
internal partial class EnhancedStackTrace : StackTrace, IEnumerable<EnhancedStackFrame>
{
public static EnhancedStackTrace Current() => new EnhancedStackTrace(new StackTrace(1 /* skip this one frame */, true));

Expand Down
4 changes: 2 additions & 2 deletions src/Exceptionless/Demystifier/Enumerable/EnumerableIList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

namespace System.Collections.Generic.Enumerable
{
public static class EnumerableIList
internal static class EnumerableIList
{
public static EnumerableIList<T> Create<T>(IList<T> list) => new EnumerableIList<T>(list);
}

public struct EnumerableIList<T> : IEnumerableIList<T>, IList<T>
internal struct EnumerableIList<T> : IEnumerableIList<T>, IList<T>
{
private readonly IList<T> _list;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace System.Collections.Generic.Enumerable
{
public struct EnumeratorIList<T> : IEnumerator<T>
internal struct EnumeratorIList<T> : IEnumerator<T>
{
private readonly IList<T> _list;
private int _index;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace System.Collections.Generic.Enumerable
{
interface IEnumerableIList<T> : IEnumerable<T>
internal interface IEnumerableIList<T> : IEnumerable<T>
{
new EnumeratorIList<T> GetEnumerator();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptionless/Demystifier/Internal/ReflectionHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace System.Diagnostics.Internal
/// <summary>
/// A helper class that contains utilities methods for dealing with reflection.
/// </summary>
public static class ReflectionHelper
internal static class ReflectionHelper
{
private static PropertyInfo? tranformerNamesLazyPropertyInfo;

Expand Down
2 changes: 1 addition & 1 deletion src/Exceptionless/Demystifier/ResolvedMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace System.Diagnostics
{
public class ResolvedMethod
internal class ResolvedMethod
{
public MethodBase? MethodBase { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion src/Exceptionless/Demystifier/ResolvedParameter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace System.Diagnostics
{
public class ResolvedParameter
internal class ResolvedParameter
{
public string? Name { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion src/Exceptionless/Demystifier/StringBuilderExtentions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace System.Diagnostics
{
public static class StringBuilderExtentions
internal static class StringBuilderExtentions
{
public static StringBuilder AppendDemystified(this StringBuilder builder, Exception exception)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptionless/Demystifier/TypeNameHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace System.Diagnostics
{
// Adapted from https://github.com/aspnet/Common/blob/dev/shared/Microsoft.Extensions.TypeNameHelper.Sources/TypeNameHelper.cs
public static class TypeNameHelper
internal static class TypeNameHelper
{
public static readonly Dictionary<Type, string> BuiltInTypeNames = new Dictionary<Type, string>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace System.Diagnostics
{
public class ValueTupleResolvedParameter : ResolvedParameter
internal class ValueTupleResolvedParameter : ResolvedParameter
{
public IList<string> TupleNames { get; }

Expand Down

0 comments on commit 645a596

Please sign in to comment.