From e7854a0dde180ca72524b666205ae6bcc6b20295 Mon Sep 17 00:00:00 2001 From: WMJ Date: Thu, 18 May 2023 18:00:51 +0800 Subject: [PATCH] - Removed unnecessary code --- Codist/Taggers/CSharpTagger.cs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/Codist/Taggers/CSharpTagger.cs b/Codist/Taggers/CSharpTagger.cs index 9421acf3..c372c8fe 100644 --- a/Codist/Taggers/CSharpTagger.cs +++ b/Codist/Taggers/CSharpTagger.cs @@ -114,11 +114,6 @@ static Chain> GetTagsInternal(IEnumerable tag = null; - var r = GetAttributeNotationSpan(snapshot, textSpan, compilationUnit); - if (r != null) { - tags.Add(r); - } - foreach (var item in classifiedSpans) { var ct = item.ClassificationType; switch (ct) { @@ -167,20 +162,6 @@ static Chain> GetTagsInternal(IEnumerable GetAttributeNotationSpan(ITextSnapshot snapshot, TextSpan textSpan, CompilationUnitSyntax unitCompilation) { - var spanNode = unitCompilation.FindNode(textSpan, true, false); - if (spanNode.HasLeadingTrivia && spanNode.GetLeadingTrivia().FullSpan.Contains(textSpan)) { - return null; - } - switch (spanNode.Kind()) { - case SyntaxKind.AttributeArgument: - //case SyntaxKind.AttributeList: - case SyntaxKind.AttributeArgumentList: - return CreateClassificationSpan(snapshot, textSpan, __Classifications.AttributeNotation); - } - return null; - } - static TagSpan ClassifyDeclarationKeyword(TextSpan itemSpan, ITextSnapshot snapshot, SyntaxNode node, CompilationUnitSyntax unitCompilation, out TagSpan secondaryTag) { secondaryTag = null; switch (unitCompilation.FindToken(itemSpan.Start).Kind()) {