cxx_gen/gen/
names.rs

1use crate::syntax::Pair;
2
3impl Pair {
4    pub(crate) 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}