156 references to Peek
Microsoft.CodeAnalysis.VisualBasic (156)
Scanner\Scanner.vb (106)
242
Dim length = If(IsHighSurrogate(c) AndAlso CanGet(1) AndAlso IsLowSurrogate(
Peek
(1)), 2, 1)
417
If chars(i) <>
Peek
(offset + i) Then Return False
423
Return CanGet(offset) AndAlso (
Peek
(offset) = c)
498
Debug.Assert(StartCharacter =
Peek
(here))
542
ch =
Peek
(num)
604
Not IsNewLine(
Peek
(here)) Then
821
IsSingleQuote(
Peek
(here)) AndAlso
822
IsSingleQuote(
Peek
(here + 1)) AndAlso
823
IsSingleQuote(
Peek
(here + 2)) AndAlso
824
Not IsSingleQuote(
Peek
(here + 3))
830
Dim ch =
Peek
(here)
837
Return _lineBufferOffset = 0 OrElse IsNewLine(
Peek
(-1))
845
Dim prevChar =
Peek
(-1)
994
ch =
Peek
(len)
1030
While CanGet(len) AndAlso IsWhitespace(
Peek
(len))
1038
While CanGet(len) AndAlso IsXmlWhitespace(
Peek
(len))
1075
Dim ch =
Peek
(i)
1080
CanGet(i + 2) AndAlso MatchOneOrAnotherOrFullwidth(
Peek
(i + 1), "E"c, "e"c) AndAlso
1081
MatchOneOrAnotherOrFullwidth(
Peek
(i + 2), "M"c, "m"c) Then
1083
If Not CanGet(i + 3) OrElse IsNewLine(
Peek
(i + 3)) Then
1086
ElseIf Not IsIdentifierPartCharacter(
Peek
(i + 3)) Then
1105
Not IsNewLine(
Peek
(length))
1176
If CanGet(1) AndAlso BeginsBaseLiteral(
Peek
(1)) Then
1248
If CanGet(1) AndAlso IsDecimalDigit(
Peek
(1)) Then
1296
If CanGet(1) AndAlso IsIdentifierPartCharacter(
Peek
(1)) Then
1302
If Not CanGet(len) OrElse IsNewLine(
Peek
(len)) OrElse PeekStartComment(len) > 0 Then
1321
If Not fullWidth AndAlso CanGet(1) AndAlso IsDoubleQuote(
Peek
(1)) Then
1365
eq =
Peek
(here)
1389
Dim c As Char =
Peek
(length)
1414
Dim c As Char =
Peek
(length)
1418
Select Case (
Peek
(length + 1))
1420
If CanGet(length + 3) AndAlso
Peek
(length + 2) = "-"c Then
1443
Dim c As Char =
Peek
(length)
1455
c =
Peek
(length)
1508
Dim ch1 =
Peek
(1)
1520
ch =
Peek
(len)
1535
ch =
Peek
(len)
1542
Dim NextChar As Char =
Peek
(len + 1)
1632
Dim ch =
Peek
(here)
1638
IsIdentifierPartCharacter(
Peek
(here + 1)))) Then
1645
Dim [Next] As Char =
Peek
(here)
1713
ch = If(CanGet(here),
Peek
(here), ChrW(0))
1722
If CanGet(here) AndAlso
Peek
(here) = "_"c Then
1727
ch =
Peek
(here)
1736
UnderscoreInWrongPlace = UnderscoreInWrongPlace Or (
Peek
(here - 1) = "_"c)
1743
If CanGet(here) AndAlso
Peek
(here) = "_"c Then
1748
ch =
Peek
(here)
1757
UnderscoreInWrongPlace = UnderscoreInWrongPlace Or (
Peek
(here - 1) = "_"c)
1764
If CanGet(here) AndAlso
Peek
(here) = "_"c Then
1769
ch =
Peek
(here)
1778
UnderscoreInWrongPlace = UnderscoreInWrongPlace Or (
Peek
(here - 1) = "_"c)
1791
UnderscoreInWrongPlace = (CanGet(here) AndAlso
Peek
(here) = "_"c)
1793
ch =
Peek
(here)
1803
UnderscoreInWrongPlace = UnderscoreInWrongPlace Or (
Peek
(here - 1) = "_"c)
1814
ch =
Peek
(here)
1817
IsDecimalDigit(
Peek
(here + 1)) Then
1823
ch =
Peek
(here)
1829
UnderscoreInWrongPlace = UnderscoreInWrongPlace Or (
Peek
(here - 1) = "_"c)
1835
If CanGet(here) AndAlso BeginsExponent(
Peek
(here)) Then
1839
ch =
Peek
(here)
1846
If CanGet(here) AndAlso IsDecimalDigit(
Peek
(here)) Then
1849
ch =
Peek
(here)
1855
UnderscoreInWrongPlace = UnderscoreInWrongPlace Or (
Peek
(here - 1) = "_"c)
1873
ch =
Peek
(here)
1950
ch =
Peek
(here + 1)
1962
Dim NextChar As Char =
Peek
(here + 1)
2003
Dim LiteralCharacterValue As Char =
Peek
(LiteralCharacter)
2028
Dim LiteralCharacterValue As Char =
Peek
(LiteralCharacter)
2079
Dim curCh =
Peek
(i)
2167
Dim ch =
Peek
(here)
2176
ch =
Peek
(here)
2232
If CanGet(here) AndAlso IsDateSeparatorCharacter(
Peek
(here)) Then
2253
If CanGet(here) AndAlso IsDateSeparatorCharacter(
Peek
(here)) Then
2256
If
Peek
(here) <>
Peek
(FirstDateSeparator) Then
2279
If CanGet(here) AndAlso IsDateSeparatorCharacter(
Peek
(here)) Then
2282
If
Peek
(here) <>
Peek
(FirstDateSeparator) Then
2322
If CanGet(here) AndAlso IsColon(
Peek
(here)) Then
2335
If CanGet(here) AndAlso IsColon(
Peek
(here)) Then
2351
If
Peek
(here) = "A"c OrElse
Peek
(here) = FULLWIDTH_LATIN_CAPITAL_LETTER_A OrElse
2352
Peek
(here) = "a"c OrElse
Peek
(here) = FULLWIDTH_LATIN_SMALL_LETTER_A Then
2357
ElseIf
Peek
(here) = "P"c OrElse
Peek
(here) = FULLWIDTH_LATIN_CAPITAL_LETTER_P OrElse
2358
Peek
(here) = "p"c OrElse
Peek
(here) = FULLWIDTH_LATIN_SMALL_LETTER_P Then
2366
If
Peek
(here) = "M"c OrElse
Peek
(here) = FULLWIDTH_LATIN_CAPITAL_LETTER_M OrElse
2367
Peek
(here) = "m"c OrElse
Peek
(here) = FULLWIDTH_LATIN_SMALL_LETTER_M Then
2384
If Not CanGet(here) OrElse Not IsHash(
Peek
(here)) Then
2497
Dim ch As Char =
Peek
(here)
2504
If Not CanGet(here) OrElse IsNewLine(
Peek
(here)) Then
2508
Debug.Assert(IsHash(
Peek
(here)))
2525
If CanGet(3) AndAlso IsDoubleQuote(
Peek
(2)) Then
2526
If IsDoubleQuote(
Peek
(1)) Then
2527
If IsDoubleQuote(
Peek
(3)) AndAlso
2529
IsLetterC(
Peek
(4)) Then
2535
ElseIf IsLetterC(
Peek
(3)) Then
2537
Return MakeCharacterLiteralToken(precedingTrivia,
Peek
(1), 4)
2542
IsDoubleQuote(
Peek
(1)) AndAlso
2543
IsLetterC(
Peek
(2)) Then
2553
ch =
Peek
(length)
2557
ch =
Peek
(length + 1)
Scanner\ScannerInterpolatedString.vb (12)
30
Dim c =
Peek
(offset)
37
Debug.Assert(Not CanGet(offset + 1) OrElse
Peek
(offset + 1) <> c OrElse Not (IsLeftCurlyBracket(c) OrElse IsDoubleQuote(c)), "Escape sequence not detected.")
44
If CanGet(offset + 1) AndAlso IsDoubleQuote(
Peek
(offset + 1)) Then
80
Debug.Assert(Not CanGet(offset + 1) OrElse Not IsDoubleQuote(
Peek
(offset + 1)))
120
Dim c =
Peek
(offset)
123
Return Not CanGet(offset + 1) OrElse Not IsLeftCurlyBracket(
Peek
(offset + 1))
126
Return Not CanGet(offset + 1) OrElse Not IsRightCurlyBracket(
Peek
(offset + 1))
133
Return Not CanGet(offset + 1) OrElse Not IsDoubleQuote(
Peek
(offset + 1))
149
Dim c =
Peek
(offset)
156
If CanGet(offset + 1) AndAlso IsLeftCurlyBracket(
Peek
(offset + 1)) Then
170
If CanGet(offset + 1) AndAlso IsRightCurlyBracket(
Peek
(offset + 1)) Then
184
If CanGet(offset + 1) AndAlso IsDoubleQuote(
Peek
(offset + 1)) Then
Scanner\ScannerXml.vb (29)
41
c =
Peek
(len)
97
If CanGet(1) AndAlso
Peek
(1) = ">" Then
118
Dim ch As Char =
Peek
(1)
122
Select Case (
Peek
(2))
305
Dim prevChar =
Peek
(-1)
314
Dim c As Char =
Peek
(Here)
347
Dim ch As Char =
Peek
(1)
351
Select Case (
Peek
(2))
497
Dim c As Char =
Peek
(Here)
517
c =
Peek
(Here + 2)
589
Dim c As Char =
Peek
(Here)
665
Dim c As Char =
Peek
(Here)
737
Dim ch As Char =
Peek
(1)
801
Dim c As Char =
Peek
(Here)
894
Dim c As Char =
Peek
(Here)
994
Debug.Assert(
Peek
(Here) = c1)
997
Dim c2 =
Peek
(Here + 1)
1039
Dim c =
Peek
(Here)
1071
Dim c As Char =
Peek
(Here)
1139
Dim c As Char =
Peek
(1)
1154
If CanGet(Here) AndAlso
Peek
(Here) = ";"c Then
1168
If
Peek
(4) = ";"c Then
1178
If
Peek
(5) = ";"c Then
1192
If
Peek
(3) = ";"c Then
1206
If
Peek
(3) = ";"c Then
1220
If
Peek
(5) = ";"c Then
1249
Dim ch =
Peek
(Here)
1254
ch =
Peek
(Here)
1271
ch =
Peek
(Here)
Scanner\XmlDocComments.vb (8)
146
Dim c =
Peek
(Here)
209
c =
Peek
(len)
239
Dim c As Char =
Peek
(Here)
280
Dim ch As Char =
Peek
(1)
284
Select Case (
Peek
(2))
385
Dim c As Char =
Peek
(Here)
504
Dim ch As Char =
Peek
(1)
508
Select Case (
Peek
(2))
Scanner\XmlTokenFactories.vb (1)
325
Debug.Assert(
Peek
(1) = ">"c)