Lines Matching +refs:current +refs:line

519   Location current = token.start_;  in decodeNumber()  local
520 bool isNegative = *current == '-'; in decodeNumber()
522 ++current; in decodeNumber()
528 while (current < token.end_) { in decodeNumber()
529 Char c = *current++; in decodeNumber()
540 if (value > threshold || current != token.end_ || in decodeNumber()
614 Location current = token.start_ + 1; // skip '"' in decodeString() local
616 while (current != end) { in decodeString()
617 Char c = *current++; in decodeString()
621 if (current == end) in decodeString()
622 return addError("Empty escape sequence in string", token, current); in decodeString()
623 Char escape = *current++; in decodeString()
651 if (!decodeUnicodeCodePoint(token, current, end, unicode)) in decodeString()
656 return addError("Bad escape sequence in string", token, current); in decodeString()
666 Location& current, in decodeUnicodeCodePoint() argument
670 if (!decodeUnicodeEscapeSequence(token, current, end, unicode)) in decodeUnicodeCodePoint()
674 if (end - current < 6) in decodeUnicodeCodePoint()
678 current); in decodeUnicodeCodePoint()
680 if (*(current++) == '\\' && *(current++) == 'u') { in decodeUnicodeCodePoint()
681 if (decodeUnicodeEscapeSequence(token, current, end, surrogatePair)) { in decodeUnicodeCodePoint()
689 current); in decodeUnicodeCodePoint()
695 Location& current, in decodeUnicodeEscapeSequence() argument
698 if (end - current < 4) in decodeUnicodeEscapeSequence()
702 current); in decodeUnicodeEscapeSequence()
705 Char c = *current++; in decodeUnicodeEscapeSequence()
717 current); in decodeUnicodeEscapeSequence()
761 int& line, in getLocationLineAndColumn() argument
763 Location current = begin_; in getLocationLineAndColumn() local
764 Location lastLineStart = current; in getLocationLineAndColumn()
765 line = 0; in getLocationLineAndColumn()
766 while (current < location && current != end_) { in getLocationLineAndColumn()
767 Char c = *current++; in getLocationLineAndColumn()
769 if (*current == '\n') in getLocationLineAndColumn()
770 ++current; in getLocationLineAndColumn()
771 lastLineStart = current; in getLocationLineAndColumn()
772 ++line; in getLocationLineAndColumn()
774 lastLineStart = current; in getLocationLineAndColumn()
775 ++line; in getLocationLineAndColumn()
780 ++line; in getLocationLineAndColumn()
784 int line, column; in getLocationLineAndColumn() local
785 getLocationLineAndColumn(location, line, column); in getLocationLineAndColumn()
789 _snprintf(buffer, sizeof(buffer), "Line %d, Column %d", line, column); in getLocationLineAndColumn()
791 sprintf_s(buffer, sizeof(buffer), "Line %d, Column %d", line, column); in getLocationLineAndColumn()
794 snprintf(buffer, sizeof(buffer), "Line %d, Column %d", line, column); in getLocationLineAndColumn()