[meta] Rename Operand::is_immediate to is_immediate_or_entityref

This commit is contained in:
Benjamin Bouvier
2019-10-28 17:45:40 +01:00
parent f37d1c7ecc
commit b657aa57f6
4 changed files with 11 additions and 11 deletions

View File

@@ -46,8 +46,7 @@ impl Operand {
}
/// Returns true if the operand has an immediate kind or is an EntityRef.
// TODO inherited name from the python, rename to is_immediate_or_entityref later.
pub fn is_immediate(&self) -> bool {
pub fn is_immediate_or_entityref(&self) -> bool {
match self.kind.fields {
OperandKindFields::ImmEnum(_)
| OperandKindFields::ImmValue