125 references to CanGet
Microsoft.CodeAnalysis.VisualBasic (125)
Scanner\Scanner.vb (77)
242
Dim length = If(IsHighSurrogate(c) AndAlso
CanGet
(1) AndAlso IsLowSurrogate(Peek(1)), 2, 1)
415
If Not
CanGet
(offset + n - 1) Then Return False
423
Return
CanGet
(offset) AndAlso (Peek(offset) = c)
439
Debug.Assert(
CanGet
(result - 1))
445
Debug.Assert(
CanGet
(length - 1))
458
Debug.Assert(
CanGet
(length - 1))
472
Debug.Assert(
CanGet
(howFar - 1))
495
Debug.Assert(
CanGet
(here))
541
If
CanGet
(num) Then
567
If Not foundComment AndAlso Not atNewLine AndAlso
CanGet
(here) Then
603
CanGet
(here) AndAlso
820
CanGet
(here + 3) AndAlso
829
If
CanGet
(here) Then
990
If Not
CanGet
(len) Then
1030
While
CanGet
(len) AndAlso IsWhitespace(Peek(len))
1038
While
CanGet
(len) AndAlso IsXmlWhitespace(Peek(len))
1074
If
CanGet
(i) Then
1080
CanGet
(i + 2) AndAlso MatchOneOrAnotherOrFullwidth(Peek(i + 1), "E"c, "e"c) AndAlso
1083
If Not
CanGet
(i + 3) OrElse IsNewLine(Peek(i + 3)) Then
1104
While
CanGet
(length) AndAlso
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
1359
Debug.Assert(
CanGet
(index - 1))
1364
While
CanGet
(here)
1388
If
CanGet
(length) Then
1413
If Not charIsFullWidth AndAlso
CanGet
(length) Then
1417
If
CanGet
(length + 2) Then
1420
If
CanGet
(length + 3) AndAlso Peek(length + 2) = "-"c Then
1442
If
CanGet
(length) Then
1454
If
CanGet
(length) Then
1507
If
CanGet
(1) Then
1519
While
CanGet
(len)
1534
If
CanGet
(len) Then
1541
If
CanGet
(len + 1) Then
1628
If Not
CanGet
(here) Then
1637
Not (
CanGet
(here + 1) AndAlso
1644
While
CanGet
(here)
1713
ch = If(
CanGet
(here), Peek(here), ChrW(0))
1722
If
CanGet
(here) AndAlso Peek(here) = "_"c Then
1726
While
CanGet
(here)
1743
If
CanGet
(here) AndAlso Peek(here) = "_"c Then
1747
While
CanGet
(here)
1764
If
CanGet
(here) AndAlso Peek(here) = "_"c Then
1768
While
CanGet
(here)
1791
UnderscoreInWrongPlace = (
CanGet
(here) AndAlso Peek(here) = "_"c)
1792
While
CanGet
(here)
1812
If base = LiteralBase.Decimal AndAlso
CanGet
(here) Then
1816
CanGet
(here + 1) AndAlso
1822
While
CanGet
(here)
1835
If
CanGet
(here) AndAlso BeginsExponent(Peek(here)) Then
1838
If
CanGet
(here) Then
1846
If
CanGet
(here) AndAlso IsDecimalDigit(Peek(here)) Then
1848
While
CanGet
(here)
1872
If
CanGet
(here) Then
1949
If
CanGet
(here + 1) Then
1961
If literalKind <> NumericLiteralKind.Float AndAlso
CanGet
(here + 1) Then
2163
If Not
CanGet
(here) Then
2175
While
CanGet
(here)
2232
If
CanGet
(here) AndAlso IsDateSeparatorCharacter(Peek(here)) Then
2253
If
CanGet
(here) AndAlso IsDateSeparatorCharacter(Peek(here)) Then
2279
If
CanGet
(here) AndAlso IsDateSeparatorCharacter(Peek(here)) Then
2322
If
CanGet
(here) AndAlso IsColon(Peek(here)) Then
2335
If
CanGet
(here) AndAlso IsColon(Peek(here)) Then
2350
If
CanGet
(here) Then
2365
If
CanGet
(here) AndAlso (haveAM OrElse havePM) Then
2384
If Not
CanGet
(here) OrElse Not IsHash(Peek(here)) Then
2496
While
CanGet
(here)
2504
If Not
CanGet
(here) OrElse IsNewLine(Peek(here)) Then
2525
If
CanGet
(3) AndAlso IsDoubleQuote(Peek(2)) Then
2528
CanGet
(4) AndAlso
2541
If
CanGet
(2) AndAlso
2552
While
CanGet
(length)
2556
If
CanGet
(length + 1) Then
2603
Debug.Assert(
CanGet
(length - 1))
Scanner\ScannerBuffer.vb (1)
103
Debug.Assert(
CanGet
(skip))
Scanner\ScannerInterpolatedString.vb (12)
26
If Not
CanGet
(offset) Then
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)))
118
If Not
CanGet
(offset) Then Return False
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))
147
Do While
CanGet
(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 (28)
38
If Not
CanGet
(len) Then
97
If
CanGet
(1) AndAlso Peek(1) = ">" Then
117
If
CanGet
(1) Then
121
If
CanGet
(2) Then
313
While
CanGet
(Here)
346
If
CanGet
(1) Then
350
If
CanGet
(2) Then
496
While
CanGet
(Here)
515
If
CanGet
(Here + 2) Then
588
While
CanGet
(Here)
664
While
CanGet
(Here)
736
If
CanGet
(1) Then
800
While
CanGet
(Here)
893
While
CanGet
(Here)
993
Debug.Assert(
CanGet
(Here))
996
If IsHighSurrogate(c1) AndAlso
CanGet
(Here + 1) Then
1037
Debug.Assert(
CanGet
(Here))
1070
While
CanGet
(Here)
1138
If
CanGet
(1) Then
1154
If
CanGet
(Here) AndAlso Peek(Here) = ";"c Then
1167
If
CanGet
(4) AndAlso NextAre(2, "mp") Then
1176
ElseIf
CanGet
(5) AndAlso NextAre(2, "pos") Then
1190
If
CanGet
(3) AndAlso NextIs(2, "t"c) Then
1204
If
CanGet
(3) AndAlso NextIs(2, "t"c) Then
1218
If
CanGet
(5) AndAlso NextAre(2, "uot") Then
1241
If Not
CanGet
(index) Then
1253
While
CanGet
(Here)
1270
While
CanGet
(Here)
Scanner\XmlDocComments.vb (7)
145
While
CanGet
(Here)
238
While
CanGet
(Here)
279
If
CanGet
(1) Then
283
If
CanGet
(2) Then
384
While
CanGet
(Here)
503
If
CanGet
(1) Then
507
If
CanGet
(2) Then