cxx_build/gen/
names.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::syntax::Pair;

impl Pair {
    pub(crate) fn to_fully_qualified(&self) -> String {
        let mut fully_qualified = String::new();
        for segment in &self.namespace {
            fully_qualified += "::";
            fully_qualified += &segment.to_string();
        }
        fully_qualified += "::";
        fully_qualified += &self.cxx.to_string();
        fully_qualified
    }
}