Skip to content

Commit

Permalink
Fix some issues raised in pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu committed Jun 13, 2024
1 parent 044e547 commit a9abecc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/dotnet/APIView/APIView/APIView.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<PackageReference Include="Microsoft.CodeAnalysis" Version="4.4.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.4.0" />
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="6.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.Text.Json" Version="4.6.0-preview9.19421.4" />
</ItemGroup>

Expand Down
2 changes: 0 additions & 2 deletions src/dotnet/APIView/APIView/Model/CodeDiagnostic.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using Newtonsoft.Json;

namespace APIView
{
public class CodeDiagnostic
Expand Down
7 changes: 3 additions & 4 deletions src/dotnet/APIView/APIView/Model/TokenTreeModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public HashSet<string> RenderClasses
}
public string Value { get; set; } = string.Empty;
public string Id { get; set; }
public StructuredTokenKind Kind { get; set; }
public StructuredTokenKind Kind { get; set; } = StructuredTokenKind.Content;
[JsonIgnore]
public HashSet<string> TagsObj { get; set; } = new HashSet<string>();
[JsonIgnore]
Expand Down Expand Up @@ -209,12 +209,11 @@ public override int GetHashCode()

public override bool Equals(object obj)
{
if (obj == null || GetType() != obj.GetType())
var other = obj as APITreeNode;
if (other == null)
{
return false;
}

var other = (APITreeNode)obj;
return Name == other.Name && Id == other.Id && Kind == other.Kind;
}

Expand Down

0 comments on commit a9abecc

Please sign in to comment.