MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getPageNumberForContentOffset

Method getPageNumberForContentOffset

valdi/src/valdi/runtime/Context/ViewNode.cpp:2120–2132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2118 appendIndent(stream, indent + 1);
2119 appendKeyValue(stream, "view", Valdi::Value(getView()).toString());
2120 stream << std::endl;
2121
2122 auto dumpedAttributes = _attributesApplier.dumpResolvedAttributes();
2123
2124 if (!dumpedAttributes->empty()) {
2125 appendIndent(stream, indent + 1);
2126 for (const auto& attribute : *dumpedAttributes) {
2127 appendKeyValue(stream, attribute.first.toStringView(), attribute.second.toString());
2128 }
2129 stream << std::endl;
2130 }
2131
2132 if (getChildCount() == 0 || !recursive) {
2133 appendIndent(stream, indent);
2134 stream << "/>" << std::endl;
2135 } else {

Callers 1

TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64