/external/skqp/tools/bookmaker/ |
D | bmhParser.cpp | 121 bool BmhParser::addDefinition(const char* defStart, bool hasEnd, MarkType markType, in addDefinition() argument 124 switch (markType) { in addDefinition() 126 if (!this->skipToDefinitionEnd(markType)) { in addDefinition() 149 fRoot = this->findBmhObject(markType, name); in addDefinition() 169 if (MarkType::kStruct == markType || MarkType::kClass == markType in addDefinition() 170 || MarkType::kEnumClass == markType) { in addDefinition() 198 if (kMarkProps[(int) markType].fExemplary != hasExample in addDefinition() 199 && kMarkProps[(int) markType].fExemplary != Exemplary::kOptional) { in addDefinition() 208 if (MarkType::kMethod == markType) { in addDefinition() 214 if (!this->checkEndMarker(markType, definition->fName)) { in addDefinition() [all …]
|
D | bmhParser.h | 69 bool addDefinition(const char* defStart, bool hasEnd, MarkType markType, 71 bool checkEndMarker(MarkType markType, string name) const; 78 bool childOf(MarkType markType) const; 79 string className(MarkType markType); 85 RootDefinition* findBmhObject(MarkType markType, string typeName); 132 bool skipToDefinitionEnd(MarkType markType); 137 vector<string> typeName(MarkType markType, bool* expectEnd); 139 string uniqueName(string base, MarkType markType); 140 string uniqueRootName(string base, MarkType markType);
|
D | definition.h | 90 Definition(MarkType markType, const char* start, int line, Definition* parent, char mc) in Definition() argument 91 : Definition(markType, start, nullptr, line, parent, mc) { in Definition() 94 …Definition(MarkType markType, const char* start, const char* end, int line, Definition* parent, ch… in Definition() argument 96 fMarkType = markType; in Definition() 148 const Definition* hasChild(MarkType markType) const; 285 RootDefinition(MarkType markType, const char* start, int line, Definition* parent, char mc) in RootDefinition() argument 286 : Definition(markType, start, line, parent, mc) { in RootDefinition() 287 if (MarkType::kSubtopic != markType && MarkType::kTopic != markType) { in RootDefinition() 295 RootDefinition(MarkType markType, const char* start, const char* end, int line, in RootDefinition() argument 296 Definition* parent, char mc) : Definition(markType, start, end, line, parent, mc) { in RootDefinition()
|
D | includeParser.h | 124 string codeBlock(MarkType markType, string name, bool inProgress) const { in codeBlock() argument 125 if (MarkType::kClass == markType || MarkType::kStruct == markType) { in codeBlock() 130 if (MarkType::kConst == markType) { in codeBlock() 135 if (MarkType::kDefine == markType) { in codeBlock() 140 if (MarkType::kEnum == markType || MarkType::kEnumClass == markType) { in codeBlock() 145 if (MarkType::kTypedef == markType) { in codeBlock() 177 Definition* findIncludeObject(const Definition& includeDef, MarkType markType,
|
D | mdOut.h | 259 MarkType markType = definition->fMarkType; in resolvable() local 260 if (MarkType::kCode == markType) { in resolvable() 267 if ((MarkType::kExample == markType in resolvable() 268 || MarkType::kFunction == markType) && fHasFiddle) { in resolvable() 271 return BmhParser::kMarkProps[(int) markType].fResolve; in resolvable()
|
D | bookmaker.cpp | 87 static int count_children(const Definition& def, MarkType markType) { in count_children() argument 89 if (markType == def.fMarkType) { in count_children() 93 count += count_children(*child, markType); in count_children()
|
D | mdOut.cpp | 77 MarkType markType = fLastDef->fMarkType; in anchorDef() local 78 if (MarkType::kMethod == markType && fLastDef->fClone) { in anchorDef() 81 allDefs.push_back( { str, markType } ); in anchorDef() 897 void MdOut::summaryOut(const Definition* def, MarkType markType, string name) { in summaryOut() argument 905 FPRINTF("%s", MarkType::kConst == markType ? kAllConstTableHeader : kAllMemberTableHeader); in summaryOut() 909 if (markType != child->fMarkType) { in summaryOut() 920 if (MarkType::kConst == markType) { in summaryOut() 927 SkASSERT(MarkType::kMember == markType); in summaryOut() 1124 static bool writeTableEnd(MarkType markType, Definition* def, const Definition** prior) { in writeTableEnd() argument 1125 return markType != def->fMarkType && *prior && markType == (*prior)->fMarkType; in writeTableEnd() [all …]
|
D | spellCheck.cpp | 58 bool checkable(MarkType markType); 366 bool SpellCheck::checkable(MarkType markType) { in checkable() argument 367 return Resolvable::kYes == fBmhParser.kMarkProps[(int) markType].fResolve; in checkable()
|
D | includeParser.cpp | 495 string IncludeParser::writeCodeBlock(TextParser& i, MarkType markType, int startIndent) { in writeCodeBlock() argument 501 if (MarkType::kDefine == markType) { in writeCodeBlock() 576 bool elidedTClass = elidedTemplate && MarkType::kClass == markType; in writeCodeBlock() 577 bool statementEnd = !result.empty() && (MarkType::kMethod == markType in writeCodeBlock() 578 || MarkType::kTypedef == markType || '}' == result.back()); in writeCodeBlock() 583 if (elided && ((MarkType::kFunction != markType && lastIndent > startIndent) || elidedTClass)) { in writeCodeBlock() 1685 MarkType markType = MarkType::kClass; in elidedCodeBlock() local 1689 markType = MarkType::kFunction; in elidedCodeBlock() 1694 return this->writeCodeBlock(i, markType, 0); in elidedCodeBlock() 1788 Definition* IncludeParser::findIncludeObject(const Definition& includeDef, MarkType markType, in findIncludeObject() argument [all …]
|
D | definition.cpp | 853 const Definition* Definition::hasChild(MarkType markType) const { in hasChild() 855 if (markType == iter->fMarkType) { in hasChild()
|
/external/skia/tools/bookmaker/ |
D | bmhParser.cpp | 121 bool BmhParser::addDefinition(const char* defStart, bool hasEnd, MarkType markType, in addDefinition() argument 124 switch (markType) { in addDefinition() 126 if (!this->skipToDefinitionEnd(markType)) { in addDefinition() 149 fRoot = this->findBmhObject(markType, name); in addDefinition() 169 if (MarkType::kStruct == markType || MarkType::kClass == markType in addDefinition() 170 || MarkType::kEnumClass == markType) { in addDefinition() 198 if (kMarkProps[(int) markType].fExemplary != hasExample in addDefinition() 199 && kMarkProps[(int) markType].fExemplary != Exemplary::kOptional) { in addDefinition() 208 if (MarkType::kMethod == markType) { in addDefinition() 214 if (!this->checkEndMarker(markType, definition->fName)) { in addDefinition() [all …]
|
D | bmhParser.h | 69 bool addDefinition(const char* defStart, bool hasEnd, MarkType markType, 71 bool checkEndMarker(MarkType markType, string name) const; 78 bool childOf(MarkType markType) const; 79 string className(MarkType markType); 85 RootDefinition* findBmhObject(MarkType markType, string typeName); 132 bool skipToDefinitionEnd(MarkType markType); 137 vector<string> typeName(MarkType markType, bool* expectEnd); 139 string uniqueName(string base, MarkType markType); 140 string uniqueRootName(string base, MarkType markType);
|
D | definition.h | 90 Definition(MarkType markType, const char* start, int line, Definition* parent, char mc) in Definition() argument 91 : Definition(markType, start, nullptr, line, parent, mc) { in Definition() 94 …Definition(MarkType markType, const char* start, const char* end, int line, Definition* parent, ch… in Definition() argument 96 fMarkType = markType; in Definition() 148 const Definition* hasChild(MarkType markType) const; 285 RootDefinition(MarkType markType, const char* start, int line, Definition* parent, char mc) in RootDefinition() argument 286 : Definition(markType, start, line, parent, mc) { in RootDefinition() 287 if (MarkType::kSubtopic != markType && MarkType::kTopic != markType) { in RootDefinition() 295 RootDefinition(MarkType markType, const char* start, const char* end, int line, in RootDefinition() argument 296 Definition* parent, char mc) : Definition(markType, start, end, line, parent, mc) { in RootDefinition()
|
D | includeParser.h | 124 string codeBlock(MarkType markType, string name, bool inProgress) const { in codeBlock() argument 125 if (MarkType::kClass == markType || MarkType::kStruct == markType) { in codeBlock() 130 if (MarkType::kConst == markType) { in codeBlock() 135 if (MarkType::kDefine == markType) { in codeBlock() 140 if (MarkType::kEnum == markType || MarkType::kEnumClass == markType) { in codeBlock() 145 if (MarkType::kTypedef == markType) { in codeBlock() 177 Definition* findIncludeObject(const Definition& includeDef, MarkType markType,
|
D | mdOut.h | 259 MarkType markType = definition->fMarkType; in resolvable() local 260 if (MarkType::kCode == markType) { in resolvable() 267 if ((MarkType::kExample == markType in resolvable() 268 || MarkType::kFunction == markType) && fHasFiddle) { in resolvable() 271 return BmhParser::kMarkProps[(int) markType].fResolve; in resolvable()
|
D | bookmaker.cpp | 87 static int count_children(const Definition& def, MarkType markType) { in count_children() argument 89 if (markType == def.fMarkType) { in count_children() 93 count += count_children(*child, markType); in count_children()
|
D | mdOut.cpp | 78 MarkType markType = fLastDef->fMarkType; in anchorDef() local 79 if (MarkType::kMethod == markType && fLastDef->fClone) { in anchorDef() 82 allDefs.push_back( { str, markType } ); in anchorDef() 897 void MdOut::summaryOut(const Definition* def, MarkType markType, string name) { in summaryOut() argument 905 FPRINTF("%s", MarkType::kConst == markType ? kAllConstTableHeader : kAllMemberTableHeader); in summaryOut() 909 if (markType != child->fMarkType) { in summaryOut() 920 if (MarkType::kConst == markType) { in summaryOut() 927 SkASSERT(MarkType::kMember == markType); in summaryOut() 1124 static bool writeTableEnd(MarkType markType, Definition* def, const Definition** prior) { in writeTableEnd() argument 1125 return markType != def->fMarkType && *prior && markType == (*prior)->fMarkType; in writeTableEnd() [all …]
|
D | spellCheck.cpp | 58 bool checkable(MarkType markType); 366 bool SpellCheck::checkable(MarkType markType) { in checkable() argument 367 return Resolvable::kYes == fBmhParser.kMarkProps[(int) markType].fResolve; in checkable()
|
D | includeParser.cpp | 496 string IncludeParser::writeCodeBlock(TextParser& i, MarkType markType, int startIndent) { in writeCodeBlock() argument 502 if (MarkType::kDefine == markType) { in writeCodeBlock() 577 bool elidedTClass = elidedTemplate && MarkType::kClass == markType; in writeCodeBlock() 578 bool statementEnd = !result.empty() && (MarkType::kMethod == markType in writeCodeBlock() 579 || MarkType::kTypedef == markType || '}' == result.back()); in writeCodeBlock() 584 if (elided && ((MarkType::kFunction != markType && lastIndent > startIndent) || elidedTClass)) { in writeCodeBlock() 1686 MarkType markType = MarkType::kClass; in elidedCodeBlock() local 1690 markType = MarkType::kFunction; in elidedCodeBlock() 1695 return this->writeCodeBlock(i, markType, 0); in elidedCodeBlock() 1789 Definition* IncludeParser::findIncludeObject(const Definition& includeDef, MarkType markType, in findIncludeObject() argument [all …]
|
D | definition.cpp | 853 const Definition* Definition::hasChild(MarkType markType) const { in hasChild() 855 if (markType == iter->fMarkType) { in hasChild()
|