github.com/wasilibs/wazerox@v0.0.0-20240124024944-4923be63ab5f/internal/engine/wazevo/ssa/funcref.go (about)

     1  package ssa
     2  
     3  import "fmt"
     4  
     5  // FuncRef is a unique identifier for a function of the frontend,
     6  // and is used to reference the function in function call.
     7  type FuncRef uint32
     8  
     9  // String implements fmt.Stringer.
    10  func (r FuncRef) String() string {
    11  	return fmt.Sprintf("f%d", r)
    12  }