diff --git a/src/Compilers/CSharp/Portable/CSharpExtensions.cs b/src/Compilers/CSharp/Portable/CSharpExtensions.cs index 06da90f727aaf9548d5ace124b676f62343db59d..6e66dfcde52c7101f6bd3c47c02a7baa443bf731 100644 --- a/src/Compilers/CSharp/Portable/CSharpExtensions.cs +++ b/src/Compilers/CSharp/Portable/CSharpExtensions.cs @@ -18,7 +18,7 @@ public static class CSharpExtensions /// /// The source token. /// The syntax kind to test for. - /// true if token is of specified kind; false otherwise. + /// if the token is of the specified kind; otherwise, . public static bool IsKind(this SyntaxToken token, SyntaxKind kind) { return token.RawKind == (int)kind; @@ -29,7 +29,7 @@ public static bool IsKind(this SyntaxToken token, SyntaxKind kind) /// /// The source trivia. /// The syntax kind to test for. - /// true if trivia is of specified kind; false otherwise. + /// if the trivia is of the specified kind; otherwise, . public static bool IsKind(this SyntaxTrivia trivia, SyntaxKind kind) { return trivia.RawKind == (int)kind; @@ -40,7 +40,7 @@ public static bool IsKind(this SyntaxTrivia trivia, SyntaxKind kind) /// /// The source node. /// The syntax kind to test for. - /// true if node is of specified kind; false otherwise. + /// if the node is of the specified kind; otherwise, . public static bool IsKind(this SyntaxNode node, SyntaxKind kind) { return node?.RawKind == (int)kind; @@ -51,7 +51,7 @@ public static bool IsKind(this SyntaxNode node, SyntaxKind kind) /// /// The source node or token. /// The syntax kind to test for. - /// true if node or token is of specified kind; false otherwise. + /// if the node or token is of the specified kind; otherwise, . public static bool IsKind(this SyntaxNodeOrToken nodeOrToken, SyntaxKind kind) { return nodeOrToken.RawKind == (int)kind; @@ -166,7 +166,7 @@ public static class CSharpExtensions /// Determines if the given raw kind value belongs to the C# enumeration. /// /// The raw value to test. - /// true when the raw value belongs to the C# syntax kind; false otherwise. + /// when the raw value belongs to the C# syntax kind; otherwise, . internal static bool IsCSharpKind(int rawKind) { const int FirstVisualBasicKind = (int)SyntaxKind.List + 1; diff --git a/src/Compilers/VisualBasic/Portable/VisualBasicExtensions.vb b/src/Compilers/VisualBasic/Portable/VisualBasicExtensions.vb index 8af4271f1003329f450a809f8bdd80fcf3863998..6642905888e67631cd38acb1f3f9e75b3dc4cfe0 100644 --- a/src/Compilers/VisualBasic/Portable/VisualBasicExtensions.vb +++ b/src/Compilers/VisualBasic/Portable/VisualBasicExtensions.vb @@ -22,7 +22,7 @@ Namespace Microsoft.CodeAnalysis ''' ''' The source trivia. ''' The syntax kind to test for. - ''' true if trivia is of specified kind; false otherwise. + ''' if the trivia is of the specified kind; otherwise, . Public Function IsKind(trivia As SyntaxTrivia, kind As SyntaxKind) As Boolean Return trivia.RawKind = kind @@ -33,7 +33,7 @@ Namespace Microsoft.CodeAnalysis ''' ''' The source token. ''' The syntax kind to test for. - ''' true if token is of specified kind; false otherwise. + ''' if the token is of the specified kind; otherwise, . Public Function IsKind(token As SyntaxToken, kind As SyntaxKind) As Boolean Return token.RawKind = kind @@ -44,7 +44,7 @@ Namespace Microsoft.CodeAnalysis ''' ''' The Source node. ''' The syntax kind to test for. - ''' true if node is of specified kind; false otherwise. + ''' if the node is of the specified kind; otherwise, . Public Function IsKind(node As SyntaxNode, kind As SyntaxKind) As Boolean Return node IsNot Nothing AndAlso node.RawKind = kind @@ -55,7 +55,7 @@ Namespace Microsoft.CodeAnalysis ''' ''' The source node or token. ''' The syntax kind to test for. - ''' true if node or token is of specified kind; false otherwise. + ''' if the node or token is of the specified kind; otherwise, . Public Function IsKind(nodeOrToken As SyntaxNodeOrToken, kind As SyntaxKind) As Boolean Return nodeOrToken.RawKind = kind @@ -168,7 +168,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic ''' Determines if the given raw kind value belongs to the Visual Basic enumeration. ''' ''' The raw value to test. - ''' true when the raw value belongs to the Visual Basic syntax kind; false otherwise. + ''' when the raw value belongs to the Visual Basic syntax kind; otherwise, . Friend Function IsVisualBasicKind(rawKind As Integer) As Boolean Const LastPossibleVisualBasicKind As Integer = 8192