• Home
  • Raw
  • Download

Lines Matching refs:beginTerm

1256         unsigned beginTerm;  member
1258 …ParenthesesStackEntry(unsigned beginTerm, unsigned savedAlternativeIndex/*, unsigned subpatternId,… in ParenthesesStackEntry()
1259 : beginTerm(beginTerm) in ParenthesesStackEntry()
1339 int beginTerm = m_bodyDisjunction->terms.size(); in atomParenthesesSubpatternBegin() local
1346 m_parenthesesStack.append(ParenthesesStackEntry(beginTerm, m_currentAlternativeIndex)); in atomParenthesesSubpatternBegin()
1347 m_currentAlternativeIndex = beginTerm + 1; in atomParenthesesSubpatternBegin()
1352 int beginTerm = m_bodyDisjunction->terms.size(); in atomParentheticalAssertionBegin() local
1359 m_parenthesesStack.append(ParenthesesStackEntry(beginTerm, m_currentAlternativeIndex)); in atomParentheticalAssertionBegin()
1360 m_currentAlternativeIndex = beginTerm + 1; in atomParentheticalAssertionBegin()
1367 unsigned beginTerm = m_parenthesesStack[stackEnd].beginTerm; in popParenthesesStack() local
1371 ASSERT(beginTerm < m_bodyDisjunction->terms.size()); in popParenthesesStack()
1374 return beginTerm; in popParenthesesStack()
1387 void closeAlternative(int beginTerm) in closeAlternative() argument
1389 int origBeginTerm = beginTerm; in closeAlternative()
1390 ASSERT(m_bodyDisjunction->terms[beginTerm].type == ByteTerm::TypeAlternativeBegin); in closeAlternative()
1393 unsigned frameLocation = m_bodyDisjunction->terms[beginTerm].frameLocation; in closeAlternative()
1395 if (!m_bodyDisjunction->terms[beginTerm].alternative.next) in closeAlternative()
1396 m_bodyDisjunction->terms.remove(beginTerm); in closeAlternative()
1398 while (m_bodyDisjunction->terms[beginTerm].alternative.next) { in closeAlternative()
1399 beginTerm += m_bodyDisjunction->terms[beginTerm].alternative.next; in closeAlternative()
1400 … ASSERT(m_bodyDisjunction->terms[beginTerm].type == ByteTerm::TypeAlternativeDisjunction); in closeAlternative()
1401 m_bodyDisjunction->terms[beginTerm].alternative.end = endIndex - beginTerm; in closeAlternative()
1402 m_bodyDisjunction->terms[beginTerm].frameLocation = frameLocation; in closeAlternative()
1405 m_bodyDisjunction->terms[beginTerm].alternative.next = origBeginTerm - beginTerm; in closeAlternative()
1414 int beginTerm = 0; in closeBodyAlternative() local
1416 ASSERT(m_bodyDisjunction->terms[beginTerm].type == ByteTerm::TypeBodyAlternativeBegin); in closeBodyAlternative()
1419 unsigned frameLocation = m_bodyDisjunction->terms[beginTerm].frameLocation; in closeBodyAlternative()
1421 while (m_bodyDisjunction->terms[beginTerm].alternative.next) { in closeBodyAlternative()
1422 beginTerm += m_bodyDisjunction->terms[beginTerm].alternative.next; in closeBodyAlternative()
1423 … ASSERT(m_bodyDisjunction->terms[beginTerm].type == ByteTerm::TypeBodyAlternativeDisjunction); in closeBodyAlternative()
1424 m_bodyDisjunction->terms[beginTerm].alternative.end = endIndex - beginTerm; in closeBodyAlternative()
1425 m_bodyDisjunction->terms[beginTerm].frameLocation = frameLocation; in closeBodyAlternative()
1428 m_bodyDisjunction->terms[beginTerm].alternative.next = origBeginTerm - beginTerm; in closeBodyAlternative()
1436 unsigned beginTerm = popParenthesesStack(); in atomParenthesesEnd() local
1437 closeAlternative(beginTerm + 1); in atomParenthesesEnd()
1440 …bool isAssertion = m_bodyDisjunction->terms[beginTerm].type == ByteTerm::TypeParentheticalAssertio… in atomParenthesesEnd()
1441 bool invertOrCapture = m_bodyDisjunction->terms[beginTerm].invertOrCapture; in atomParenthesesEnd()
1442 unsigned subpatternId = m_bodyDisjunction->terms[beginTerm].atom.subpatternId; in atomParenthesesEnd()
1445 m_bodyDisjunction->terms[beginTerm].atom.parenthesesWidth = endTerm - beginTerm; in atomParenthesesEnd()
1446 m_bodyDisjunction->terms[endTerm].atom.parenthesesWidth = endTerm - beginTerm; in atomParenthesesEnd()
1450 m_bodyDisjunction->terms[beginTerm].atom.quantityCount = quantityCount; in atomParenthesesEnd()
1451 m_bodyDisjunction->terms[beginTerm].atom.quantityType = quantityType; in atomParenthesesEnd()
1455 ByteTerm& parenthesesBegin = m_bodyDisjunction->terms[beginTerm]; in atomParenthesesEnd()
1465 … for (unsigned termInParentheses = beginTerm + 1; termInParentheses < endTerm; ++termInParentheses) in atomParenthesesEnd()
1469 m_bodyDisjunction->terms.shrink(beginTerm); in atomParenthesesEnd()
1474 m_bodyDisjunction->terms[beginTerm].atom.quantityCount = quantityCount; in atomParenthesesEnd()
1475 m_bodyDisjunction->terms[beginTerm].atom.quantityType = quantityType; in atomParenthesesEnd()
1476 m_bodyDisjunction->terms[beginTerm].frameLocation = frameLocation; in atomParenthesesEnd()