MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / UniqueNamespace

Method UniqueNamespace

native/thirdpart/flatbuffers/idl_parser.cpp:2483–2492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2481}
2482
2483Namespace *Parser::UniqueNamespace(Namespace *ns) {
2484 for (auto it = namespaces_.begin(); it != namespaces_.end(); ++it) {
2485 if (ns->components == (*it)->components) {
2486 delete ns;
2487 return *it;
2488 }
2489 }
2490 namespaces_.push_back(ns);
2491 return ns;
2492}
2493
2494std::string Parser::UnqualifiedName(const std::string &full_qualified_name) {
2495 Namespace *ns = new Namespace();

Callers

nothing calls this directly

Calls 3

push_backMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected