42 references to IsWhitespace
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder_InterpolatedString.cs (1)
131else if (SyntaxFacts.IsWhitespace(lastChar = text[text.Length - 1]) || SyntaxFacts.IsNewLine(lastChar))
Compiler\DocumentationCommentCompiler.cs (3)
823if (!SyntaxFacts.IsWhitespace(str[start])) 909if (trimmedLength < 4 || !SyntaxFacts.IsWhitespace(text[trimStart + 3])) 1025if (SyntaxFacts.IsWhitespace(ch))
Parser\LanguageParser_InterpolatedString.cs (3)
305SyntaxFacts.IsWhitespace(currentLineChar) && 306SyntaxFacts.IsWhitespace(indentationLineChar)) 326while (currentIndex < text.Length && SyntaxFacts.IsWhitespace(text[currentIndex]))
Parser\Lexer.cs (10)
1907if (SyntaxFacts.IsWhitespace(ch)) 2322if (ch > 127 && SyntaxFacts.IsWhitespace(ch)) 2409if (SyntaxFacts.IsWhitespace(TextWindow.PeekChar())) 2483allWhitespace = allWhitespace && SyntaxFacts.IsWhitespace(ch); 2779if (SyntaxFacts.IsWhitespace(ch)) 3058if (SyntaxFacts.IsWhitespace(ch) || SyntaxFacts.IsNewLine(ch)) 3292else if (SyntaxFacts.IsWhitespace(ch) || SyntaxFacts.IsNewLine(ch)) 4456if (SyntaxFacts.IsWhitespace(ch)) 4505&& (SyntaxFacts.IsWhitespace(ch) || SyntaxFacts.IsNewLine(ch))) 4553if (SyntaxFacts.IsWhitespace(ch))
Parser\Lexer_RawStringLiteral.cs (3)
46if (!SyntaxFacts.IsWhitespace(ch)) 402SyntaxFacts.IsWhitespace(currentLineChar) && 403SyntaxFacts.IsWhitespace(indentationLineChar))
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
137if (!SyntaxFacts.IsWhitespace(text[i]))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
44=> SyntaxFacts.IsWhitespace(ch);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.cs (1)
27=> SyntaxFacts.IsWhitespace(c) || SyntaxFacts.IsNewLine(c);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpRemoveDocCommentNodeCodeFixProvider.cs (1)
56if (!SyntaxFacts.IsWhitespace(c))
Microsoft.CodeAnalysis.CSharp.EditorFeatures (8)
BlockCommentEditing\BlockCommentEditingCommandHandler.cs (2)
90while (end < snapshot.Length && SyntaxFacts.IsWhitespace(end.GetChar()) && !SyntaxFacts.IsNewLine(end.GetChar())) 253while (currentChar < caretPosition && SyntaxFacts.IsWhitespace(textSnapshot[currentChar]))
StringCopyPaste\StringCopyPasteHelpers.cs (4)
92if (!SyntaxFacts.IsWhitespace(ch)) 108if (!SyntaxFacts.IsWhitespace(text[i])) 138/// Removes all characters matching <see cref="SyntaxFacts.IsWhitespace(char)"/> from the start of <paramref 144while (start < value.Length && SyntaxFacts.IsWhitespace(value[start]))
StringCopyPaste\StringInfo.cs (2)
113while (SyntaxFacts.IsWhitespace(SafeCharAt(text, rawStart))) 129while (SyntaxFacts.IsWhitespace(SafeCharAt(text, rawEnd - 1)))
Microsoft.CodeAnalysis.CSharp.Features (7)
ConvertToRawString\ConvertInterpolatedStringToRawStringCodeRefactoringProvider.cs (1)
678while (current < length && SyntaxFacts.IsWhitespace(leadingWhitespace1[current]) && leadingWhitespace1[current] == leadingWhitespace2[current])
ConvertToRawString\ConvertToRawStringHelpers.cs (1)
36=> ch.Rune.Utf16SequenceLength == 1 && SyntaxFacts.IsWhitespace((char)ch.Value);
EditAndContinue\BreakpointSpans.cs (1)
48if (!SyntaxFacts.IsWhitespace(text[i]))
EmbeddedLanguages\CSharpTestEmbeddedLanguageClassifier.cs (1)
77for (var i = lastLine.Start; i < lastLine.End && SyntaxFacts.IsWhitespace(text[i]); i++)
src\Analyzers\CSharp\Analyzers\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
137if (!SyntaxFacts.IsWhitespace(text[i]))
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpRemoveDocCommentNodeCodeFixProvider.cs (1)
56if (!SyntaxFacts.IsWhitespace(c))
TaskList\CSharpTaskListService.cs (1)
73if (!SyntaxFacts.IsWhitespace(ch) &&
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
DocumentationComments\DocumentationCommentCompilerTests.cs (1)
3351Assert.True(SyntaxFacts.IsWhitespace(ch));
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
44=> SyntaxFacts.IsWhitespace(ch);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.cs (1)
27=> SyntaxFacts.IsWhitespace(c) || SyntaxFacts.IsNewLine(c);