• Home
  • Raw
  • Download

Lines Matching refs:Current

283     if (Current >= End)  in setError()
284 Current = End - 1; in setError()
289 printError(SMLoc::getFromPointer(Current), SourceMgr::DK_Error, Message); in setError()
294 setError(Message, Current); in setError()
306 return StringRef(Current, End - Current); in currentInput()
528 StringRef::iterator Current; member in llvm::yaml::Scanner
773 Current = InputBuffer.getBufferStart(); in init()
904 auto Final = skip_while(Func, Current); in advanceWhile()
905 Column += Final - Current; in advanceWhile()
906 Current = Final; in advanceWhile()
922 StringRef::iterator Start = Current; in scan_ns_uri_char()
924 if (Current == End) in scan_ns_uri_char()
926 if (( *Current == '%' in scan_ns_uri_char()
927 && Current + 2 < End in scan_ns_uri_char()
928 && is_ns_hex_digit(*(Current + 1)) in scan_ns_uri_char()
929 && is_ns_hex_digit(*(Current + 2))) in scan_ns_uri_char()
930 || is_ns_word_char(*Current) in scan_ns_uri_char()
931 || StringRef(Current, 1).find_first_of("#;/?:@&=+$,_.!~*'()[]") in scan_ns_uri_char()
933 ++Current; in scan_ns_uri_char()
938 return StringRef(Start, Current - Start); in scan_ns_uri_char()
944 if (Current == End) in consume()
946 if (uint8_t(*Current) >= 0x80) in consume()
948 if (uint8_t(*Current) == Expected) { in consume()
949 ++Current; in consume()
957 Current += Distance; in skip()
959 assert(Current <= End && "Skipped past the end"); in skip()
972 auto Next = skip_b_break(Current); in consumeLineBreakIfPresent()
973 if (Next == Current) in consumeLineBreakIfPresent()
977 Current = Next; in consumeLineBreakIfPresent()
1021 T.Range = StringRef(Current, 1); in unrollIndent()
1040 T.Range = StringRef(Current, 0); in rollIndent()
1047 if (*Current != '#') in skipComment()
1052 StringRef::iterator I = skip_nb_char(Current); in skipComment()
1053 if (I == Current) in skipComment()
1055 Current = I; in skipComment()
1062 while (*Current == ' ' || *Current == '\t') { in scanToNextToken()
1069 StringRef::iterator i = skip_b_break(Current); in scanToNextToken()
1070 if (i == Current) in scanToNextToken()
1072 Current = i; in scanToNextToken()
1088 T.Range = StringRef(Current, EI.second); in scanStreamStart()
1090 Current += EI.second; in scanStreamStart()
1107 T.Range = StringRef(Current, 0); in scanStreamEnd()
1118 StringRef::iterator Start = Current; in scanDirective()
1120 StringRef::iterator NameStart = Current; in scanDirective()
1121 Current = skip_while(&Scanner::skip_ns_char, Current); in scanDirective()
1122 StringRef Name(NameStart, Current - NameStart); in scanDirective()
1123 Current = skip_while(&Scanner::skip_s_white, Current); in scanDirective()
1127 Current = skip_while(&Scanner::skip_ns_char, Current); in scanDirective()
1129 T.Range = StringRef(Start, Current - Start); in scanDirective()
1133 Current = skip_while(&Scanner::skip_ns_char, Current); in scanDirective()
1134 Current = skip_while(&Scanner::skip_s_white, Current); in scanDirective()
1135 Current = skip_while(&Scanner::skip_ns_char, Current); in scanDirective()
1137 T.Range = StringRef(Start, Current - Start); in scanDirective()
1151 T.Range = StringRef(Current, 3); in scanDocumentIndicator()
1161 T.Range = StringRef(Current, 1); in scanFlowCollectionStart()
1180 T.Range = StringRef(Current, 1); in scanFlowCollectionEnd()
1193 T.Range = StringRef(Current, 1); in scanFlowEntry()
1205 T.Range = StringRef(Current, 1); in scanBlockEntry()
1220 T.Range = StringRef(Current, 1); in scanKey()
1254 T.Range = StringRef(Current, 1); in scanValue()
1280 StringRef::iterator Start = Current; in scanFlowScalar()
1284 ++Current; in scanFlowScalar()
1285 while (Current != End && *Current != '"') in scanFlowScalar()
1286 ++Current; in scanFlowScalar()
1289 } while ( Current != End in scanFlowScalar()
1290 && *(Current - 1) == '\\' in scanFlowScalar()
1291 && wasEscaped(Start + 1, Current)); in scanFlowScalar()
1296 if (Current + 1 < End && *Current == '\'' && *(Current + 1) == '\'') { in scanFlowScalar()
1299 } else if (*Current == '\'') in scanFlowScalar()
1301 StringRef::iterator i = skip_nb_char(Current); in scanFlowScalar()
1302 if (i == Current) { in scanFlowScalar()
1303 i = skip_b_break(Current); in scanFlowScalar()
1304 if (i == Current) in scanFlowScalar()
1306 Current = i; in scanFlowScalar()
1312 Current = i; in scanFlowScalar()
1318 if (Current == End) { in scanFlowScalar()
1319 setError("Expected quote at end of scalar", Current); in scanFlowScalar()
1326 T.Range = StringRef(Start, Current - Start); in scanFlowScalar()
1337 StringRef::iterator Start = Current; in scanPlainScalar()
1343 if (*Current == '#') in scanPlainScalar()
1346 while (!isBlankOrBreak(Current)) { in scanPlainScalar()
1347 if ( FlowLevel && *Current == ':' in scanPlainScalar()
1348 && !(isBlankOrBreak(Current + 1) || *(Current + 1) == ',')) { in scanPlainScalar()
1349 setError("Found unexpected ':' while scanning a plain scalar", Current); in scanPlainScalar()
1354 if ( (*Current == ':' && isBlankOrBreak(Current + 1)) in scanPlainScalar()
1356 && (StringRef(Current, 1).find_first_of(",:?[]{}") in scanPlainScalar()
1360 StringRef::iterator i = skip_nb_char(Current); in scanPlainScalar()
1361 if (i == Current) in scanPlainScalar()
1363 Current = i; in scanPlainScalar()
1368 if (!isBlankOrBreak(Current)) in scanPlainScalar()
1372 StringRef::iterator Tmp = Current; in scanPlainScalar()
1395 Current = Tmp; in scanPlainScalar()
1397 if (Start == Current) { in scanPlainScalar()
1403 T.Range = StringRef(Start, Current - Start); in scanPlainScalar()
1415 StringRef::iterator Start = Current; in scanAliasOrAnchor()
1419 if ( *Current == '[' || *Current == ']' in scanAliasOrAnchor()
1420 || *Current == '{' || *Current == '}' in scanAliasOrAnchor()
1421 || *Current == ',' in scanAliasOrAnchor()
1422 || *Current == ':') in scanAliasOrAnchor()
1424 StringRef::iterator i = skip_ns_char(Current); in scanAliasOrAnchor()
1425 if (i == Current) in scanAliasOrAnchor()
1427 Current = i; in scanAliasOrAnchor()
1431 if (Start == Current) { in scanAliasOrAnchor()
1438 T.Range = StringRef(Start, Current - Start); in scanAliasOrAnchor()
1451 if (Current != End && (*Current == '+' || *Current == '-')) { in scanBlockChompingIndicator()
1452 Indicator = *Current; in scanBlockChompingIndicator()
1474 if (Current != End && (*Current >= '1' && *Current <= '9')) { in scanBlockIndentationIndicator()
1475 Indent = unsigned(*Current - '0'); in scanBlockIndentationIndicator()
1483 auto Start = Current; in scanBlockScalarHeader()
1490 Current = skip_while(&Scanner::skip_s_white, Current); in scanBlockScalarHeader()
1493 if (Current == End) { // EOF, we have an empty scalar. in scanBlockScalarHeader()
1496 T.Range = StringRef(Start, Current - Start); in scanBlockScalarHeader()
1503 setError("Expected a line break after block scalar header", Current); in scanBlockScalarHeader()
1517 if (skip_nb_char(Current) != Current) { in findBlockScalarIndent()
1533 if (skip_b_break(Current) != Current && in findBlockScalarIndent()
1538 LongestAllSpaceLine = Current; in findBlockScalarIndent()
1542 if (Current == End) { in findBlockScalarIndent()
1560 auto I = skip_s_space(Current); in scanBlockScalarIndent()
1561 if (I == Current) in scanBlockScalarIndent()
1563 Current = I; in scanBlockScalarIndent()
1567 if (skip_nb_char(Current) == Current) in scanBlockScalarIndent()
1576 if (Current != End && *Current == '#') { // Trailing comment. in scanBlockScalarIndent()
1580 setError("A text line is less indented than the block scalar", Current); in scanBlockScalarIndent()
1588 assert(*Current == '|' || *Current == '>'); in scanBlockScalar()
1599 auto Start = Current; in scanBlockScalar()
1617 auto LineStart = Current; in scanBlockScalar()
1619 if (LineStart != Current) { in scanBlockScalar()
1621 Str.append(StringRef(LineStart, Current - LineStart)); in scanBlockScalar()
1626 if (Current == End) in scanBlockScalar()
1634 if (Current == End && !LineBreaks) in scanBlockScalar()
1645 T.Range = StringRef(Start, Current - Start); in scanBlockScalar()
1652 StringRef::iterator Start = Current; in scanTag()
1655 if (Current == End || isBlankOrBreak(Current)); // An empty tag. in scanTag()
1656 else if (*Current == '<') { in scanTag()
1663 Current = skip_while(&Scanner::skip_ns_char, Current); in scanTag()
1668 T.Range = StringRef(Start, Current - Start); in scanTag()
1685 if (Current == End) in fetchMoreTokens()
1692 if (Column == 0 && *Current == '%') in fetchMoreTokens()
1695 if (Column == 0 && Current + 4 <= End in fetchMoreTokens()
1696 && *Current == '-' in fetchMoreTokens()
1697 && *(Current + 1) == '-' in fetchMoreTokens()
1698 && *(Current + 2) == '-' in fetchMoreTokens()
1699 && (Current + 3 == End || isBlankOrBreak(Current + 3))) in fetchMoreTokens()
1702 if (Column == 0 && Current + 4 <= End in fetchMoreTokens()
1703 && *Current == '.' in fetchMoreTokens()
1704 && *(Current + 1) == '.' in fetchMoreTokens()
1705 && *(Current + 2) == '.' in fetchMoreTokens()
1706 && (Current + 3 == End || isBlankOrBreak(Current + 3))) in fetchMoreTokens()
1709 if (*Current == '[') in fetchMoreTokens()
1712 if (*Current == '{') in fetchMoreTokens()
1715 if (*Current == ']') in fetchMoreTokens()
1718 if (*Current == '}') in fetchMoreTokens()
1721 if (*Current == ',') in fetchMoreTokens()
1724 if (*Current == '-' && isBlankOrBreak(Current + 1)) in fetchMoreTokens()
1727 if (*Current == '?' && (FlowLevel || isBlankOrBreak(Current + 1))) in fetchMoreTokens()
1730 if (*Current == ':' && (FlowLevel || isBlankOrBreak(Current + 1))) in fetchMoreTokens()
1733 if (*Current == '*') in fetchMoreTokens()
1736 if (*Current == '&') in fetchMoreTokens()
1739 if (*Current == '!') in fetchMoreTokens()
1742 if (*Current == '|' && !FlowLevel) in fetchMoreTokens()
1745 if (*Current == '>' && !FlowLevel) in fetchMoreTokens()
1748 if (*Current == '\'') in fetchMoreTokens()
1751 if (*Current == '"') in fetchMoreTokens()
1755 StringRef FirstChar(Current, 1); in fetchMoreTokens()
1756 if (!(isBlankOrBreak(Current) in fetchMoreTokens()
1758 || (*Current == '-' && !isBlankOrBreak(Current + 1)) in fetchMoreTokens()
1759 || (!FlowLevel && (*Current == '?' || *Current == ':') in fetchMoreTokens()
1760 && isBlankOrBreak(Current + 1)) in fetchMoreTokens()
1761 || (!FlowLevel && *Current == ':' in fetchMoreTokens()
1762 && Current + 2 < End in fetchMoreTokens()
1763 && *(Current + 1) == ':' in fetchMoreTokens()
1764 && !isBlankOrBreak(Current + 2))) in fetchMoreTokens()