diff options
Diffstat (limited to 'src/wasm-type.h')
-rw-r--r-- | src/wasm-type.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wasm-type.h b/src/wasm-type.h index 12b4f3df7..ff1019e55 100644 --- a/src/wasm-type.h +++ b/src/wasm-type.h @@ -146,7 +146,15 @@ public: bool isRef() const; bool isFunction() const; bool isData() const; + // Checks whether a type is a reference and is nullable. This returns false + // for a value that is not a reference, that is, for which nullability is + // irrelevant. bool isNullable() const; + // Checks whether a type is a reference and is non-nullable. This returns + // false for a value that is not a reference, that is, for which nullability + // is irrelevant. (For that reason, this is only the negation of isNullable() + // on references, but both return false on non-references.) + bool isNonNullable() const; bool isRtt() const; bool isStruct() const; bool isArray() const; |