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