Skip to content

Commit

Permalink
- Removed unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
wmjordan committed May 18, 2023
1 parent 32c09d6 commit e7854a0
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions Codist/Taggers/CSharpTagger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,6 @@ static Chain<ITagSpan<IClassificationTag>> GetTagsInternal(IEnumerable<SnapshotS
var lastTriviaSpan = default(TextSpan);
SyntaxNode node;
TagSpan<IClassificationTag> 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) {
Expand Down Expand Up @@ -167,20 +162,6 @@ static Chain<ITagSpan<IClassificationTag>> GetTagsInternal(IEnumerable<SnapshotS
return tags;
}

static TagSpan<IClassificationTag> 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<IClassificationTag> ClassifyDeclarationKeyword(TextSpan itemSpan, ITextSnapshot snapshot, SyntaxNode node, CompilationUnitSyntax unitCompilation, out TagSpan<IClassificationTag> secondaryTag) {
secondaryTag = null;
switch (unitCompilation.FindToken(itemSpan.Start).Kind()) {
Expand Down

0 comments on commit e7854a0

Please sign in to comment.