Allow expanding a `QName` into a `Multiname` that selects exactly the `QName` and no more.
This commit is contained in:
parent
f09c35c4b9
commit
b0b6cec117
|
@ -357,3 +357,12 @@ impl<'gc> Multiname<'gc> {
|
||||||
self.name
|
self.name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<'gc> From<QName<'gc>> for Multiname<'gc> {
|
||||||
|
fn from(q: QName<'gc>) -> Self {
|
||||||
|
Self {
|
||||||
|
ns: vec![q.ns],
|
||||||
|
name: Some(q.name),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue