Skip to content

Commit

Permalink
Made STJ nodes fully internal
Browse files Browse the repository at this point in the history
  • Loading branch information
Quahu committed Jul 30, 2024
1 parent 5d291be commit 246e56b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
using System.Collections.Generic;
using System.Text.Json;
using System.Text.Json.Nodes;
using Newtonsoft.Json.Linq;

namespace Disqord.Serialization.Json.System;

/// <summary>
/// Represents a default JSON array node.
/// Wraps a <see cref="JArray"/>.
/// Wraps a <see cref="JsonArray"/>.
/// </summary>
public sealed class SystemJsonArray : SystemJsonNode, IJsonArray
internal sealed class SystemJsonArray : SystemJsonNode, IJsonArray
{
/// <inheritdoc cref="Token"/>
public new JsonArray Node => (base.Node as JsonArray)!;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Disqord.Serialization.Json.System;
/// Represents a default JSON node.
/// Wraps a <see cref="JsonNode"/>.
/// </summary>
public abstract class SystemJsonNode : IJsonNode
internal abstract class SystemJsonNode : IJsonNode
{
/// <summary>
/// Gets the underlying <see cref="JsonNode"/>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Disqord.Serialization.Json.System;
/// Represents a default JSON object node.
/// Wraps a <see cref="JsonObject"/>.
/// </summary>
public sealed class SystemJsonObject : SystemJsonNode, IJsonObject
internal sealed class SystemJsonObject : SystemJsonNode, IJsonObject
{
/// <inheritdoc cref="SystemJsonNode.Node"/>
public new JsonObject Node => (base.Node as JsonObject)!;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Disqord.Serialization.Json.System;
/// Wraps a <see cref="JsonValue"/>.
/// </summary>
[DebuggerDisplay($"{nameof(Value)}")]
public sealed class SystemJsonValue : SystemJsonNode, IJsonValue
internal sealed class SystemJsonValue : SystemJsonNode, IJsonValue
{
/// <inheritdoc cref="SystemJsonNode.Node"/>
public new JsonValue Node => (base.Node as JsonValue)!;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@

namespace Disqord.Serialization.Json.System;

public class SystemJsonSerializer : IJsonSerializer
/// <summary>
/// Represents a System.Text.Json implementation of <see cref="IJsonSerializer"/>.
/// </summary>
public sealed class SystemJsonSerializer : IJsonSerializer
{
/// <summary>
/// Gets the underlying <see cref="JsonSerializerOptions"/>.
Expand Down

0 comments on commit 246e56b

Please sign in to comment.