36 references to IsNewLine
Microsoft.CodeAnalysis.VisualBasic (23)
Scanner\Scanner.vb (20)
308ElseIf IsNewLine(c) Then 333If IsNewLine(c) Then 496Debug.Assert(IsNewLine(StartCharacter)) 566Dim atNewLine As Boolean = IsNewLine(ch) 586atNewLine = IsNewLine(ch) 604Not IsNewLine(Peek(here)) Then 695ElseIf IsNewLine(ch) Then 724If position = 0 OrElse SyntaxFacts.IsNewLine(text(position - 1)) Then 790While CanGet() AndAlso SyntaxFacts.IsNewLine(Peek()) 805If SyntaxFacts.IsNewLine(ch) Then 837Return _lineBufferOffset = 0 OrElse IsNewLine(Peek(-1)) 981If IsNewLine(ch) Then 1083If Not CanGet(i + 3) OrElse IsNewLine(Peek(i + 3)) Then 1105Not IsNewLine(Peek(length)) 1302If Not CanGet(len) OrElse IsNewLine(Peek(len)) OrElse PeekStartComment(len) > 0 Then 1329Debug.Assert(Not IsNewLine(ch)) 1669ElseIf IsNewLine([Next]) Then 2498If IsHash(ch) OrElse IsNewLine(ch) Then 2504If Not CanGet(here) OrElse IsNewLine(Peek(here)) Then 2590ElseIf IsNewLine(ch) Then
Scanner\ScannerInterpolatedString.vb (1)
197ElseIf IsNewLine(c) AndAlso scanTrailingWhitespaceAsTrivia
Scanner\ScannerXml.vb (1)
270(IsNewLine(c) AndAlso (c <> CARRIAGE_RETURN) AndAlso (c <> LINE_FEED)) OrElse
Scanner\XmlDocComments.vb (1)
186ElseIf IsNewLine(c) Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
ElasticTriviaFormattingRule.vb (1)
363Return list.Sum(Function(t) t.ToFullString().Replace(vbCrLf, vbCr).OfType(Of Char).Count(Function(c) SyntaxFacts.IsNewLine(c)))
VisualBasicTriviaFormatter.vb (1)
48Return SyntaxFacts.IsNewLine(ch)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
MetadataAsSource\VisualBasicMetadataAsSourceService.vb (1)
119Return c = vbCr OrElse c = vbLf OrElse SyntaxFacts.IsNewLine(c)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (8)
Scanner\ScannerTests.vb (8)
2132Assert.True(SyntaxFacts.IsNewLine(ChrW(13))) 2133Assert.True(SyntaxFacts.IsNewLine(ChrW(10))) 2134Assert.True(SyntaxFacts.IsNewLine(ChrW(133))) 2135Assert.True(SyntaxFacts.IsNewLine(ChrW(8232))) 2136Assert.True(SyntaxFacts.IsNewLine(ChrW(8233))) 2137Assert.False(SyntaxFacts.IsNewLine(ChrW(132))) 2138Assert.False(SyntaxFacts.IsNewLine(ChrW(160))) 2139Assert.False(SyntaxFacts.IsNewLine(" "c))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
Formatting\Engine\Trivia\VisualBasicTriviaFormatter.vb (1)
48Return SyntaxFacts.IsNewLine(ch)
Formatting\Rules\ElasticTriviaFormattingRule.vb (1)
363Return list.Sum(Function(t) t.ToFullString().Replace(vbCrLf, vbCr).OfType(Of Char).Count(Function(c) SyntaxFacts.IsNewLine(c)))