Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7068a26

Browse files
committed
Fix XML comment processing
1 parent d3244fe commit 7068a26

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

csharp/extractor/Semmle.Extraction.CSharp/Analyser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ private void DoExtractTree(SyntaxTree tree)
393393
}
394394
catch (Exception ex) // lgtm[cs/catch-of-all-exceptions]
395395
{
396-
extractor.Message(new Message("Unhandled exception processing syntax tree", tree.FilePath, null, ex.StackTrace));
396+
extractor.Message(new Message($"Unhandled exception processing syntax tree. {ex.Message}", tree.FilePath, null, ex.StackTrace));
397397
}
398398
}
399399

csharp/extractor/Semmle.Extraction.CSharp/Populators/CommentPopulator.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,6 @@ So we split it into separate lines
117117
currentLocation = nextLineLocation;
118118
}
119119
break;
120-
// Strangely, these are reported as SingleLineCommentTrivia.
121-
case SyntaxKind.DocumentationCommentExteriorTrivia:
122-
cx.ModelError($"Unhandled comment type {trivia.Kind()} for {trivia}");
123-
break;
124120
}
125121
}
126122
}

0 commit comments

Comments
 (0)