• Home
  • Raw
  • Download

Lines Matching refs:iDef

411 string IncludeParser::writeCodeBlock(const Definition& iDef) {  in writeCodeBlock()  argument
412 if (MarkType::kComment == iDef.fMarkType) { in writeCodeBlock()
415 if (iDef.fUndocumented) { in writeCodeBlock()
418 TextParser i(&iDef); in writeCodeBlock()
420 if (MarkType::kConst == iDef.fMarkType && !i.fEnd) { in writeCodeBlock()
422 auto iter = iDef.fParent->fTokens.begin(); in writeCodeBlock()
423 std::advance(iter, iDef.fParentIndex + 1); in writeCodeBlock()
424 SkASSERT(iter != iDef.fParent->fTokens.end()); in writeCodeBlock()
428 if (MarkType::kMember == iDef.fMarkType) { in writeCodeBlock()
429 const char* parentEnd = iDef.fParent->fContentEnd; in writeCodeBlock()
430 TextParser newEnd(&iDef); in writeCodeBlock()
445 if (MarkType::kMethod == iDef.fMarkType) { in writeCodeBlock()
446 TextParser paren(&iDef); in writeCodeBlock()
453 while (i.fEnd < iDef.fContentEnd && ' ' >= i.fEnd[0]) { in writeCodeBlock()
461 const char* before = iDef.fContentStart; in writeCodeBlock()
464 int startIndent = iDef.fContentStart - before - 1; in writeCodeBlock()
467 string result = writeCodeBlock(i, iDef.fMarkType, startIndent); in writeCodeBlock()
470 if (MarkType::kNone != fPreviousMarkType && iDef.fMarkType != fPreviousMarkType in writeCodeBlock()
473 || MarkType::kMember != iDef.fMarkType) in writeCodeBlock()
475 || iDef.fParent == fPreviousDef->fParent)) { in writeCodeBlock()
481 fPreviousDef = &iDef; in writeCodeBlock()
482 fPreviousMarkType = iDef.fMarkType; in writeCodeBlock()
484 for (auto& token : iDef.fTokens) { in writeCodeBlock()
487 if (MarkType::kEnum == iDef.fMarkType || MarkType::kEnumClass == iDef.fMarkType in writeCodeBlock()
488 || MarkType::kStruct == iDef.fMarkType || MarkType::kClass == iDef.fMarkType) { in writeCodeBlock()
1680 string IncludeParser::elidedCodeBlock(const Definition& iDef) { in elidedCodeBlock() argument
1681 SkASSERT(KeyWord::kStruct == iDef.fKeyWord || KeyWord::kClass == iDef.fKeyWord in elidedCodeBlock()
1682 || KeyWord::kTemplate == iDef.fKeyWord); in elidedCodeBlock()
1683 TextParser i(&iDef); in elidedCodeBlock()
1686 if (KeyWord::kTemplate == iDef.fKeyWord) { // may be function in elidedCodeBlock()
1687 for (auto child : iDef.fChildren) { in elidedCodeBlock()
3566 void IncludeParser::suggestFix(Suggest suggest, const Definition& iDef, in suggestFix() argument
3568 string methodNameStr(iDef.fContentStart, iDef.length()); in suggestFix()
3570 TextParser lessImplParser(&iDef); in suggestFix()
3579 size_t namePos = methodNameStr.find(iDef.fName); in suggestFix()
3587 TextParser parser(&iDef); in suggestFix()
3588 parser.fChar += namePos + iDef.fName.length(); in suggestFix()
3593 TextParser params(&iDef); in suggestFix()
3629 SkDebugf(kMethodMissingStr, bmhFile.c_str(), methodNameLessImpl, iDef.fFileName.c_str(), in suggestFix()
3638 SkDebugf(kMethodDiffersStr, iDef.fFileName.c_str(), methodName); in suggestFix()