Lines Matching refs:tokenIter
1168 auto tokenIter = includeDef.fParent->fTokens.begin(); in defineClass() local
1170 std::advance(tokenIter, includeDef.fParentIndex - 1); in defineClass()
1171 const Definition* priorComment = &*tokenIter; in defineClass()
2446 bool IncludeParser::parseEnumConst(list<Definition>::iterator& tokenIter, in parseEnumConst() argument
2448 SkASSERT(Definition::Type::kWord == tokenIter->fType); // should be enum name in parseEnumConst()
2449 tokenIter = std::next(tokenIter); in parseEnumConst()
2450 SkASSERT(tokenEnd != tokenIter); in parseEnumConst()
2451 if (Definition::Type::kKeyWord == tokenIter->fType) { in parseEnumConst()
2452 SkASSERT((unsigned) tokenIter->fKeyWord < SK_ARRAY_COUNT(kKeyWords)); in parseEnumConst()
2453 SkASSERT(KeyProperty::kNumber == kKeyWords[(int) tokenIter->fKeyWord].fProperty); in parseEnumConst()
2454 tokenIter = std::next(tokenIter); in parseEnumConst()
2455 SkASSERT(tokenEnd != tokenIter); in parseEnumConst()
2457 SkASSERT(Punctuation::kLeftBrace == tokenIter->fPunctuation); in parseEnumConst()
2458 tokenIter = std::next(tokenIter); in parseEnumConst()
2459 SkASSERT(tokenEnd != tokenIter); in parseEnumConst()
2460 SkASSERT(Bracket::kBrace == tokenIter->fBracket); in parseEnumConst()
2461 return parseOneEnumConst(tokenIter->fTokens, markupChild, false); in parseEnumConst()
2534 auto tokenIter = child->fParent->fTokens.begin(); in parseMethod() local
2535 std::advance(tokenIter, child->fParentIndex); in parseMethod()
2536 tokenIter = std::prev(tokenIter); in parseMethod()
2537 const char* nameEnd = tokenIter->fContentEnd; in parseMethod()
2539 auto operatorCheck = tokenIter; in parseMethod()
2540 if ('[' == tokenIter->fStart[0] || '*' == tokenIter->fStart[0]) { in parseMethod()
2541 operatorCheck = std::prev(tokenIter); in parseMethod()
2544 auto closeParen = std::next(tokenIter); in parseMethod()
2553 tokenIter = operatorCheck; in parseMethod()
2555 string nameStr(tokenIter->fStart, nameEnd - tokenIter->fStart); in parseMethod()
2559 while (tokenIter != child->fParent->fTokens.begin()) { in parseMethod()
2560 auto testIter = std::prev(tokenIter); in parseMethod()
2567 std::next(tokenIter); in parseMethod()
2589 tokenIter = testIter; in parseMethod()
2596 tokenIter->fName = nameStr; // simple token stream, OK if name is duplicate in parseMethod()
2597 tokenIter->fMarkType = MarkType::kMethod; in parseMethod()
2598 tokenIter->fPrivate = string::npos != nameStr.find("::") in parseMethod()
2600 this->checkName(&*tokenIter); in parseMethod()
2604 if (tokenIter->fParent && KeyWord::kIfdef == tokenIter->fParent->fKeyWord && in parseMethod()
2605 0 == tokenIter->fParentIndex) { in parseMethod()
2606 tokenIter = std::next(tokenIter); in parseMethod()
2608 const char* start = tokenIter->fContentStart; in parseMethod()
2609 const char* end = tokenIter->fContentEnd; in parseMethod()
2654 fGlobals.emplace_back(MarkType::kMethod, start, end, tokenIter->fLineCount, in parseMethod()
2669 markupDef->fTokens.emplace_back(MarkType::kMethod, start, end, tokenIter->fLineCount, in parseMethod()
2683 tokenIter->fUndocumented = true; in parseMethod()
2760 auto tokenIter = child->fParent->fTokens.begin(); in parseObject() local
2761 std::advance(tokenIter, child->fParentIndex); in parseObject()
2762 tokenIter = std::prev(tokenIter); in parseObject()
2763 TextParser previousToken(&*tokenIter); in parseObject()
2764 if (this->isMember(*tokenIter)) { in parseObject()
3290 for (auto tokenIter = fParent->fTokens.end(); in parseChar() local
3291 fParent->fTokens.begin() != tokenIter; ) { in parseChar()
3292 --tokenIter; in parseChar()
3293 if (tokenIter->fLineCount == fLineCount) { in parseChar()
3294 if (this->isMember(*tokenIter)) { in parseChar()
3298 namedIter = tokenIter; in parseChar()
3300 baseIter = tokenIter; in parseChar()