Searched refs:ZeroBasedNumber (Results 1 – 10 of 10) sorted by relevance
85 class ZeroBasedNumber {87 …static ZeroBasedNumber fromZeroBasedInt(int zeroBasedInt) { return ZeroBasedNumber(zeroBasedInt); } in fromZeroBasedInt()89 ZeroBasedNumber() {} in ZeroBasedNumber() function95 bool operator==(ZeroBasedNumber other) { return m_value == other.m_value; }96 bool operator!=(ZeroBasedNumber other) { return !((*this) == other); }98 static ZeroBasedNumber base() { return 0; } in base()99 static ZeroBasedNumber belowBase() { return -1; } in belowBase()102 ZeroBasedNumber(int value) : m_value(value) {} in ZeroBasedNumber() function114 …ZeroBasedNumber convertToZeroBased() const { return ZeroBasedNumber::fromZeroBasedInt(m_value - 1)… in convertToZeroBased()127 typedef TextPosition<ZeroBasedNumber> TextPosition0;[all …]
240 WTF::ZeroBasedNumber SegmentedString::currentLine() const in currentLine()242 return WTF::ZeroBasedNumber::fromZeroBasedInt(m_currentLine); in currentLine()245 WTF::ZeroBasedNumber SegmentedString::currentColumn() const in currentColumn()248 return WTF::ZeroBasedNumber::fromZeroBasedInt(zeroBasedColumn); in currentColumn()251 void SegmentedString::setCurrentPosition(WTF::ZeroBasedNumber line, WTF::ZeroBasedNumber columnAftr… in setCurrentPosition()
228 WTF::ZeroBasedNumber currentColumn() const;229 WTF::ZeroBasedNumber currentLine() const;232 …void setCurrentPosition(WTF::ZeroBasedNumber line, WTF::ZeroBasedNumber columnAftreProlog, int pro…
150 WTF::ZeroBasedNumber m_line;151 WTF::ZeroBasedNumber m_column;
476 WTF::ZeroBasedNumber line = currentString.currentLine(); in textPosition()477 WTF::ZeroBasedNumber column = currentString.currentColumn(); in textPosition()
53 TextPosition0 position(WTF::ZeroBasedNumber::fromZeroBasedInt(1), WTF::ZeroBasedNumber::base()); in createAttributeEventListener()
307 …F::OneBasedNumber::fromOneBasedInt(lineNumber).convertToZeroBased(), WTF::ZeroBasedNumber::base()); in createCallFrameAndPauseIfNeeded()318 …F::OneBasedNumber::fromOneBasedInt(lineNumber).convertToZeroBased(), WTF::ZeroBasedNumber::base()); in updateCallFrameAndPauseIfNeeded()
244 …return TextPosition0(WTF::ZeroBasedNumber::fromZeroBasedInt(lineNumber()), WTF::ZeroBasedNumber::f… in textPosition()
1403 return TextPosition0(WTF::ZeroBasedNumber::fromZeroBasedInt(context->input->line), in textPosition()1404 WTF::ZeroBasedNumber::fromZeroBasedInt(context->input->col)); in textPosition()
477 (WTF::ZeroBasedNumber::convertAsOneBasedInt):6549 (WTF::ZeroBasedNumber::operator==): Added.6550 (WTF::ZeroBasedNumber::operator!=): Added.10470 (WTF::ZeroBasedNumber::fromZeroBasedInt):10471 (WTF::ZeroBasedNumber::ZeroBasedNumber):10472 (WTF::ZeroBasedNumber::zeroBasedInt):10473 (WTF::ZeroBasedNumber::base):10474 (WTF::ZeroBasedNumber::belowBase):10484 (WTF::ZeroBasedNumber::convertToOneBased):11269 (WTF::ZeroBasedNumber::fromZeroBasedInt):[all …]