100 references to NewLine
Microsoft.AspNetCore.Razor.Language.Legacy.UnitTests (13)
Legacy\CSharpTokenizerTest.cs (13)
26SyntaxFactory.Token(SyntaxKind.NewLine, "\r"), 27SyntaxFactory.Token(SyntaxKind.NewLine, "\r"), 36SyntaxFactory.Token(SyntaxKind.NewLine, "\n"), 37SyntaxFactory.Token(SyntaxKind.NewLine, "\n"), 47SyntaxFactory.Token(SyntaxKind.NewLine, "\u0085"), 48SyntaxFactory.Token(SyntaxKind.NewLine, "\u0085"), 58SyntaxFactory.Token(SyntaxKind.NewLine, "\u2028"), 59SyntaxFactory.Token(SyntaxKind.NewLine, "\u2028"), 69SyntaxFactory.Token(SyntaxKind.NewLine, "\u2029"), 70SyntaxFactory.Token(SyntaxKind.NewLine, "\u2029"), 79SyntaxFactory.Token(SyntaxKind.NewLine, "\r\n"), 80SyntaxFactory.Token(SyntaxKind.NewLine, "\r\n"), 90SyntaxFactory.Token(SyntaxKind.NewLine, "\n"),
Microsoft.AspNetCore.Razor.Language.UnitTests (22)
Legacy\CSharpTokenizerTest.cs (13)
26SyntaxFactory.Token(SyntaxKind.NewLine, "\r"), 27SyntaxFactory.Token(SyntaxKind.NewLine, "\r"), 36SyntaxFactory.Token(SyntaxKind.NewLine, "\n"), 37SyntaxFactory.Token(SyntaxKind.NewLine, "\n"), 47SyntaxFactory.Token(SyntaxKind.NewLine, "\u0085"), 48SyntaxFactory.Token(SyntaxKind.NewLine, "\u0085"), 58SyntaxFactory.Token(SyntaxKind.NewLine, "\u2028"), 59SyntaxFactory.Token(SyntaxKind.NewLine, "\u2028"), 69SyntaxFactory.Token(SyntaxKind.NewLine, "\u2029"), 70SyntaxFactory.Token(SyntaxKind.NewLine, "\u2029"), 79SyntaxFactory.Token(SyntaxKind.NewLine, "\r\n"), 80SyntaxFactory.Token(SyntaxKind.NewLine, "\r\n"), 90SyntaxFactory.Token(SyntaxKind.NewLine, "\n"),
Legacy\DirectiveCSharpTokenizerTest.cs (4)
18SyntaxFactory.Token(SyntaxKind.NewLine, "\r\n"), 23SyntaxFactory.Token(SyntaxKind.NewLine, "\r\n")); 36SyntaxFactory.Token(SyntaxKind.NewLine, "\r\n"), 42SyntaxFactory.Token(SyntaxKind.NewLine, "\r\n"));
Legacy\DirectiveHtmlTokenizerTest.cs (2)
18SyntaxFactory.Token(SyntaxKind.NewLine, "\r\n"), 28SyntaxFactory.Token(SyntaxKind.NewLine, "\r\n"),
Legacy\HtmlTokenizerTest.cs (3)
37SyntaxFactory.Token(SyntaxKind.NewLine, "\n"), 38SyntaxFactory.Token(SyntaxKind.NewLine, "\r"), 39SyntaxFactory.Token(SyntaxKind.NewLine, "\r\n"));
Microsoft.CodeAnalysis.Razor.Compiler (61)
Language\Legacy\CSharpCodeParser.cs (17)
408if (At(SyntaxKind.Whitespace) || At(SyntaxKind.NewLine)) 694else if (!At(SyntaxKind.Whitespace) && !At(SyntaxKind.NewLine)) 755if (At(SyntaxKind.NewLine) || 756(At(SyntaxKind.Whitespace) && NextIs(SyntaxKind.NewLine))) 1346if (EndOfFile || At(SyntaxKind.NewLine)) 1361AcceptUntil(SyntaxKind.NewLine); 1570!At(SyntaxKind.NewLine) && 1602if (EndOfFile || At(SyntaxKind.NewLine)) 1622if (tokenDescriptor.Optional && (EndOfFile || At(SyntaxKind.NewLine))) 1748while (!At(SyntaxKind.NewLine)) 1827if (At(SyntaxKind.NewLine)) 1980type != SyntaxKind.NewLine) 2196AcceptUntil(SyntaxKind.NewLine); 2631token.Kind != SyntaxKind.NewLine) 2780if (At(SyntaxKind.NewLine)) 2944!(stopAtEndOfLine && At(SyntaxKind.NewLine))) 2999while (nesting > 0 && EnsureCurrent() && !(stopAtEndOfLine && At(SyntaxKind.NewLine)));
Language\Legacy\DirectiveCSharpTokenizer.cs (2)
23else if (result.Result != null && _visitedFirstTokenStart && result.Result.Kind == SyntaxKind.NewLine) 53kind != SyntaxKind.NewLine &&
Language\Legacy\DirectiveHtmlTokenizer.cs (1)
53kind != SyntaxKind.NewLine &&
Language\Legacy\HtmlLanguageCharacteristics.cs (2)
27case SyntaxKind.NewLine: 109return SyntaxKind.NewLine;
Language\Legacy\HtmlMarkupParser.cs (20)
367static f => (f.Kind == SyntaxKind.Whitespace) || (f.Kind == SyntaxKind.NewLine), 386TryAccept(SyntaxKind.NewLine); 456ParseMarkupNodes(builder, ParseMode.Text, token => token.Kind == SyntaxKind.Whitespace || token.Kind == SyntaxKind.NewLine); 461} while (!EndOfFile && CurrentToken.Kind != SyntaxKind.NewLine); 467if (!EndOfFile && CurrentToken.Kind == SyntaxKind.NewLine) 845AcceptUntil(SyntaxKind.CloseAngle, SyntaxKind.NewLine); 1009if (!At(SyntaxKind.Whitespace) && !At(SyntaxKind.NewLine)) 1114static token => token.Kind == SyntaxKind.Whitespace || token.Kind == SyntaxKind.NewLine, 1235token.Kind != SyntaxKind.NewLine && 1254AcceptWhile(static token => token.Kind == SyntaxKind.Whitespace || token.Kind == SyntaxKind.NewLine); 1262static token => token.Kind == SyntaxKind.Whitespace || token.Kind == SyntaxKind.NewLine, 1370static token => token.Kind == SyntaxKind.Whitespace || token.Kind == SyntaxKind.NewLine, 1444token.Kind != SyntaxKind.NewLine && 1480token.Kind == SyntaxKind.NewLine; 1739(At(SyntaxKind.NewLine) || 1740(At(SyntaxKind.Whitespace) && NextIs(SyntaxKind.NewLine)))) 1772if (At(SyntaxKind.NewLine)) 1881if (EnsureCurrent() && (CurrentToken.Kind == SyntaxKind.Whitespace || CurrentToken.Kind == SyntaxKind.NewLine)) 1886while (EnsureCurrent() && (CurrentToken.Kind == SyntaxKind.Whitespace || CurrentToken.Kind == SyntaxKind.NewLine)) 2282tokenType != SyntaxKind.NewLine &&
Language\Legacy\HtmlTokenizer.cs (3)
124case SyntaxKind.NewLine: 137case SyntaxKind.NewLine: 282return EndToken(SyntaxKind.NewLine);
Language\Legacy\NativeCSharpLanguageCharacteristics.cs (2)
99case SyntaxKind.NewLine: 132return SyntaxKind.NewLine;
Language\Legacy\NativeCSharpTokenizer.cs (3)
215case SyntaxKind.NewLine: 290case SyntaxKind.NewLine: 372return Stay(EndToken(SyntaxKind.NewLine));
Language\Legacy\RoslynCSharpLanguageCharacteristics.cs (2)
91case SyntaxKind.NewLine: 124return SyntaxKind.NewLine;
Language\Legacy\RoslynCSharpTokenizer.cs (3)
155case SyntaxKind.NewLine: 200case SyntaxKind.NewLine: 510tokenType = SyntaxKind.NewLine;
Language\Legacy\TokenizerBackedParser.cs (3)
34return IsSpacingToken(token) || token.Kind == SyntaxKind.NewLine; 276token.Kind == SyntaxKind.Whitespace || (includeNewLines && token.Kind == SyntaxKind.NewLine), 526if (token.Kind == SyntaxKind.NewLine)
Language\Syntax\SyntaxNode.cs (3)
471if (includeWhitespace || foundToken.Kind is not (SyntaxKind.Whitespace or SyntaxKind.NewLine)) 495if (foundToken.Kind is SyntaxKind.None or SyntaxKind.NewLine) 525while (currentToken is { Kind: SyntaxKind.NewLine or SyntaxKind.Whitespace });
Microsoft.CodeAnalysis.Razor.Workspaces (4)
Extensions\RazorSyntaxNodeExtensions.cs (1)
333if (token.Kind != SyntaxKind.NewLine)
Extensions\RazorSyntaxTokenExtensions.cs (2)
28=> token.Kind is SyntaxKind.Whitespace or SyntaxKind.NewLine; 55=> token.Kind == SyntaxKind.Whitespace || (includingNewLines && token.Kind == SyntaxKind.NewLine);
Formatting\Passes\RazorFormattingPass.cs (1)
440codeNode.GetLastToken(includeZeroWidth: false) is not { Kind: SyntaxKind.NewLine })