From f794c816bf233d016854fbee42ce0f9e04e9f7bf Mon Sep 17 00:00:00 2001 From: Chidozie Ononiwu Date: Thu, 18 Jul 2024 16:21:06 -0700 Subject: [PATCH] Add SkipDiff for Dependency Version --- src/dotnet/APIView/APIView/Model/StructuredTokenModel.cs | 4 ++++ .../CSharpAPIParser/TreeToken/CodeFileBuilder.cs | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/dotnet/APIView/APIView/Model/StructuredTokenModel.cs b/src/dotnet/APIView/APIView/Model/StructuredTokenModel.cs index fc2bae2d674..c8153e3741c 100644 --- a/src/dotnet/APIView/APIView/Model/StructuredTokenModel.cs +++ b/src/dotnet/APIView/APIView/Model/StructuredTokenModel.cs @@ -98,6 +98,10 @@ public class StructuredToken /// public static string NAVIGATE_TO_ID = "NavigateToId"; /// + /// Property key to indicate that a token should be ignored for computing diff + /// + public static string SKIPP_DIFF = "SkippDiff"; + /// /// Property value that marks a token as documentation /// public static string DOCUMENTATION = "doc"; diff --git a/tools/apiview/parsers/csharp-api-parser/CSharpAPIParser/TreeToken/CodeFileBuilder.cs b/tools/apiview/parsers/csharp-api-parser/CSharpAPIParser/TreeToken/CodeFileBuilder.cs index d6d158680f5..3c04f44b51d 100644 --- a/tools/apiview/parsers/csharp-api-parser/CSharpAPIParser/TreeToken/CodeFileBuilder.cs +++ b/tools/apiview/parsers/csharp-api-parser/CSharpAPIParser/TreeToken/CodeFileBuilder.cs @@ -167,7 +167,9 @@ public static void BuildDependencies(List apiTree, List