| 1 | package net.bluejekyll.wasmtime.ty; |
| 2 | |
| 3 | public enum ValType { |
| 4 | I32, |
| 5 | I64, |
| 6 | F32, |
| 7 | F64, |
| 8 | V128, |
| 9 | FuncRef, |
| 10 | ExternRef; |
| 11 | |
| 12 | public boolean is_num() { |
| 13 | switch (this) { |
| 14 | case I32: |
| 15 | ; |
| 16 | case I64: |
| 17 | ; |
| 18 | case F32: |
| 19 | ; |
| 20 | case V128: |
| 21 | return true; |
| 22 | default: |
| 23 | return false; |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | public boolean is_ref() { |
| 28 | switch (this) { |
| 29 | case FuncRef: |
| 30 | ; |
| 31 | case ExternRef: |
| 32 | return true; |
| 33 | default: |
| 34 | return false; |
| 35 | } |
| 36 | } |
| 37 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…