Skip to content

Commit 437f305

Browse files
committed
fix: Adjusting public to internal for classes
1 parent ab33c51 commit 437f305

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/PowerShellEditorServices/Services/PowerShell/Handlers/HandlerErrorException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Microsoft.PowerShell.EditorServices.Handlers;
1313
/// <param name="message">The message describing the reason for the request failure.</param>
1414
/// <param name="logDetails">Additional details to be logged regarding the failure. It should be serializable to JSON.</param>
1515
/// <param name="severity">The severity level of the message. This is only shown in internal logging.</param>
16-
public class HandlerErrorException
16+
internal class HandlerErrorException
1717
(
1818
string message,
1919
object logDetails = null,

src/PowerShellEditorServices/Services/PowerShell/Refactoring/Exceptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System;
55
namespace Microsoft.PowerShell.EditorServices.Refactoring
66
{
7-
public class TargetSymbolNotFoundException : Exception
7+
internal class TargetSymbolNotFoundException : Exception
88
{
99
public TargetSymbolNotFoundException()
1010
{
@@ -21,7 +21,7 @@ public TargetSymbolNotFoundException(string message, Exception inner)
2121
}
2222
}
2323

24-
public class FunctionDefinitionNotFoundException : Exception
24+
internal class FunctionDefinitionNotFoundException : Exception
2525
{
2626
public FunctionDefinitionNotFoundException()
2727
{

src/PowerShellEditorServices/Services/TextDocument/RenameService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace Microsoft.PowerShell.EditorServices.Services;
2222
/// <summary>
2323
/// Used with Configuration Bind to sync the settings to what is set on the client.
2424
/// </summary>
25-
public class RenameServiceOptions
25+
internal class RenameServiceOptions
2626
{
2727
public bool createFunctionAlias { get; set; }
2828
public bool createParameterAlias { get; set; }
@@ -519,7 +519,7 @@ internal static bool IsValidCommandParameterName(string name)
519519
/// <summary>
520520
/// Represents a position in a script file that adapts and implicitly converts based on context. PowerShell script lines/columns start at 1, but LSP textdocument lines/columns start at 0. The default line/column constructor is 1-based.
521521
/// </summary>
522-
public record ScriptPositionAdapter(IScriptPosition position) : IScriptPosition, IComparable<ScriptPositionAdapter>, IComparable<Position>, IComparable<ScriptPosition>
522+
internal record ScriptPositionAdapter(IScriptPosition position) : IScriptPosition, IComparable<ScriptPositionAdapter>, IComparable<Position>, IComparable<ScriptPosition>
523523
{
524524
public int Line => position.LineNumber;
525525
public int LineNumber => position.LineNumber;

src/PowerShellEditorServices/Utility/AstExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Microsoft.PowerShell.EditorServices.Language;
1212

1313
// NOTE: A lot of this is reimplementation of https://github.com/PowerShell/PowerShell/blob/2d5d702273060b416aea9601e939ff63bb5679c9/src/System.Management.Automation/engine/parser/Position.cs which is internal and sealed.
1414

15-
public static class AstExtensions
15+
internal static class AstExtensions
1616
{
1717
private const int IS_BEFORE = -1;
1818
private const int IS_AFTER = 1;

0 commit comments

Comments
 (0)