Skip to content

Commit

Permalink
enums and records
Browse files Browse the repository at this point in the history
  • Loading branch information
tmat committed Sep 29, 2022
1 parent aa3e2ad commit bd1f0dc
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/BuiltInTools/dotnet-watch/DotNetWatchOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Microsoft.DotNet.Watcher
{
public record DotNetWatchOptions(
internal sealed record DotNetWatchOptions(
bool SuppressHandlingStaticContentFiles,
bool SuppressMSBuildIncrementalism,
bool SuppressLaunchBrowser,
Expand Down
2 changes: 1 addition & 1 deletion src/BuiltInTools/dotnet-watch/FileItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Microsoft.DotNet.Watcher
{
public readonly struct FileItem
internal readonly struct FileItem
{
public string FilePath { get; init; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private readonly struct UpdateDelta
public int[] UpdatedTypes { get; init; }
}

public readonly struct HotReloadDiagnostics
private readonly struct HotReloadDiagnostics
{
public string Type => "HotReloadDiagnosticsv1";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,14 @@ public void Dispose()
_pipe?.Dispose();
}

public readonly struct HotReloadDiagnostics
private readonly struct HotReloadDiagnostics
{
public string Type => "HotReloadDiagnosticsv1";

public IEnumerable<string> Diagnostics { get; init; }
}

public readonly struct AspNetCoreHotReloadApplied
private readonly struct AspNetCoreHotReloadApplied
{
public string Type => "AspNetCoreHotReloadApplied";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
namespace Microsoft.DotNet.Watcher.Tools
{
[EventSource(Name = "HotReload")]
class HotReloadEventSource : EventSource
internal sealed class HotReloadEventSource : EventSource
{

public enum StartType
{
Main,
Expand All @@ -31,4 +30,4 @@ internal sealed class Keywords

public static readonly HotReloadEventSource Log = new HotReloadEventSource();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Microsoft.DotNet.Watcher.Tools
{
public enum HotReloadProfile
internal enum HotReloadProfile
{
Default,

Expand Down
2 changes: 1 addition & 1 deletion src/BuiltInTools/dotnet-watch/ProjectInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace Microsoft.DotNet.Watcher
{
public record ProjectInfo
internal sealed record ProjectInfo
(
string ProjectPath,
bool IsNetCoreApp,
Expand Down

0 comments on commit bd1f0dc

Please sign in to comment.