Builtin elements: use the input output syntax

This commit is contained in:
Olivier Goffart 2022-10-31 15:15:30 +01:00 committed by Olivier Goffart
parent 63cd49fb46
commit 8dbe745fc4
5 changed files with 342 additions and 329 deletions

View file

@ -105,10 +105,10 @@ impl NamedReference {
continue;
}
ElementType::Builtin(b) => {
return b.properties.get(self.name()).map_or(true, |pi| !pi.is_native_output)
return b.properties.get(self.name()).map_or(true, |pi| !pi.is_native_output())
}
ElementType::Native(n) => {
return n.properties.get(self.name()).map_or(true, |pi| !pi.is_native_output)
return n.properties.get(self.name()).map_or(true, |pi| !pi.is_native_output())
}
crate::langtype::ElementType::Error | crate::langtype::ElementType::Global => {
return true