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