parameters: (typ)
docstring: Mangle type parameter and arbitrary value.
docstring_summary: Mangle type parameter and arbitrary value.
docstring_tokens: Mangle type parameter and arbitrary value .
function: def mangle_type_or_value(typ):
      """
      Mangle type parameter and arbitrary value.
      """
      # Handle numba types
      if isinstance(typ, types.Type):
          if typ in N2C:
              return mangle_type_c(N2C[typ])
          else:
              return mangle_templated_ident(*typ.mangling_args)
      # Handle integer literal
      elif isinstance(typ, int):
          return 'Li%dE' % typ
      # Handle str as identifier
      elif isinstance(typ, str):
          return mangle_identifier(typ)
      # Otherwise
      else:
          enc = _escape_string(str(typ))
          return _len_encoded(enc)
function_tokens: def mangle_type_or_value ( typ ) : # Handle numba types if isinstance ( typ , types . Type ) : if typ in N2C : return mangle_type_c ( N2C [ typ ] ) else : return mangle_templated_ident ( * typ . mangling_args ) # Handle integer literal elif isinstance ( typ , int ) : return 'Li%dE' % typ # Handle str as identifier elif isinstance ( typ , str ) : return mangle_identifier ( typ ) # Otherwise else : enc = _escape_string ( str ( typ ) ) return _len_encoded ( enc )