提交 0a5af9d4 编写于 作者: B Brett V. Forsgren

update doc comments

上级 1c4be1a0
......@@ -167,14 +167,16 @@ public static SyntaxTrivia PreprocessingMessage(string text)
}
/// <summary>
/// Trivia nodes represents parts of the program text that are not parts of the
/// syntactic grammar, such as spaces, newlines, comments, preprocessors
/// Trivia nodes represent parts of the program text that are not parts of the
/// syntactic grammar, such as spaces, newlines, comments, preprocessor
/// directives, and disabled code.
/// </summary>
/// <param name="kind">
/// A <cref c="SyntaxKind"/> representing the specific kind of SyntaxTrivia. One of
/// WhitespaceTrivia, EndOfLineTrivia, CommentTrivia,
/// DocumentationCommentExteriorTrivia, DisabledTextTrivia.
/// A <see cref="SyntaxKind"/> representing the specific kind of <see cref="SyntaxTrivia"/>. One of
/// <see cref="SyntaxKind.WhitespaceTrivia"/>, <see cref="SyntaxKind.EndOfLineTrivia"/>,
/// <see cref="SyntaxKind.SingleLineCommentTrivia"/>, <see cref="SyntaxKind.MultiLineCommentTrivia"/>,
/// <see cref="SyntaxKind.DocumentationCommentExteriorTrivia"/>, <see cref="SyntaxKind.DisabledTextTrivia"/>,
/// <see cref="SyntaxKind.ShebangCommentTrivia"/>
/// </param>
/// <param name="text">
/// The actual text of this token.
......
......@@ -110,6 +110,11 @@ private void AddEndOfLine()
}
}
/// <summary>
/// Returns whether the specified <see cref="SyntaxTrivia"/> token is also the end of the line. This will
/// be true for <see cref="SyntaxKind.EndOfLineTrivia"/>, <see cref="SyntaxKind.SingleLineCommentTrivia"/>,
/// <see cref="SyntaxKind.ShebangCommentTrivia"/>, and all preprocessor directives.
/// </summary>
private static bool IsEndOfLine(SyntaxTrivia trivia)
{
return trivia.Kind() == SyntaxKind.EndOfLineTrivia
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册