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

Method toString

valdi_core/src/valdi_core/cpp/Context/ComponentPath.cpp:57–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57std::string ComponentPath::toString() const {
58 if (_symbolName.isEmpty()) {
59 return _resourceId.toAbsolutePath();
60 } else {
61 return _symbolName.slowToString() + "@" + _resourceId.toAbsolutePath();
62 }
63}
64
65bool ComponentPath::isEmpty() const {
66 return _symbolName.isEmpty() && _resourceId == ResourceId(StringBox());

Callers

nothing calls this directly

Calls 3

slowToStringMethod · 0.80
isEmptyMethod · 0.45
toAbsolutePathMethod · 0.45

Tested by

no test coverage detected