xref: /third_party/rust/crates/cxx/gen/src/names.rs (revision 33d722a9)
1use crate::syntax::Pair;
2
3impl Pair {
4    pub fn to_fully_qualified(&self) -> String {
5        let mut fully_qualified = String::new();
6        for segment in &self.namespace {
7            fully_qualified += "::";
8            fully_qualified += &segment.to_string();
9        }
10        fully_qualified += "::";
11        fully_qualified += &self.cxx.to_string();
12        fully_qualified
13    }
14}
15