1use super::*;
2
3impl std::fmt::Debug for TypeRef {
4 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
5 write!(f, "TypeRef({})", self.type_name())
6 }
7}
8
9impl TypeRef {
10 pub fn type_name(&self) -> TypeName {
11 TypeName(self.namespace(), self.name())
12 }
13
14 pub fn name(&self) -> &'static str {
15 trim_tick(self.str(column:1))
16 }
17
18 fn namespace(&self) -> &'static str {
19 self.str(column:2)
20 }
21}
22