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

Method visit

valdi/src/valdi/runtime/Runtime.cpp:74–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 std::set<std::string> names;
73 struct Visitor {
74 const AttributeIds& ids;
75 std::set<std::string>& out;
76 void visit(RenderRequestEntries::EntryBase& entry) {
77 if (entry.getType() == RenderRequestEntryType::SetElementAttribute) {
78 auto& setAttr = static_cast<RenderRequestEntries::SetElementAttribute&>(entry);
79 out.insert(ids.getNameForId(setAttr.getAttributeId()).slowToString());
80 }
81 }
82 } visitor{attributeIds, names};

Callers 4

micromatch.jsFile · 0.45
fFunction · 0.45
visitMapKeyValuesMethod · 0.45
createPathJavaArrayFunction · 0.45

Calls 5

slowToStringMethod · 0.80
getNameForIdMethod · 0.80
insertMethod · 0.65
getAttributeIdMethod · 0.65
getTypeMethod · 0.45

Tested by

no test coverage detected