提交 c4aebf84 编写于 作者: C Cyrus Najmabadi

Add comment.

上级 abb86704
......@@ -143,6 +143,8 @@ public static bool IsDefinitelyNotPattern(SyntaxToken token, ISyntaxFactsService
{
if (syntaxFacts.IsRegularComment(trivia))
{
// Note: ToString on SyntaxTrivia is non-allocating. It will just return the
// underlying text that the trivia is already pointing to.
var text = trivia.ToString();
var match = s_languageCommentDetector.Match(text);
if (match.Success)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册