MCPcopy Create free account
hub / github.com/WebAssembly/wabt / convertRefNullToRef

Function convertRefNullToRef

src/type-checker.cc:620–627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

618}
619
620static Type convertRefNullToRef(Type type) {
621 if (type == Type::ExternRef || type == Type::FuncRef) {
622 return Type(type, Type::ReferenceNonNull);
623 }
624
625 assert(type.IsReferenceWithIndex());
626 return Type(Type::Ref, type.GetReferenceIndex());
627}
628
629Result TypeChecker::OnBrOnNonNull(Index depth) {
630 Type actual;

Callers 3

OnBrOnNonNullMethod · 0.85
OnBrOnNullMethod · 0.85
OnRefAsNonNullExprMethod · 0.85

Calls 3

IsReferenceWithIndexMethod · 0.80
GetReferenceIndexMethod · 0.80
TypeClass · 0.50

Tested by

no test coverage detected