You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: number.rs
    path of file: ./repos/oxc/crates/oxc_parser/src/lexer
    
    the code of the file until where you have to start completion: //! Parsing utilities for converting Javascript numbers to Rust f64
//! code copied from [jsparagus](https://github.com/mozilla-spidermonkey/jsparagus/blob/master/crates/parser/src/numeric_value.rs)

use num_bigint::BigInt;
use std::borrow::Cow;

use super::kind::Kind;

// the string passed in has `_` removed from the lexer
pub fn pa
    
pub fn parse_big_int(s: &str, kind: Kind) -> Result<BigInt, &'static str> {
    let s = match kind {
        Kind::Decimal => s,
        Kind::Binary | Kind::Octal | Kind::Hex => &s[2..],
        _ => unreachable!(),
    };
    let radix = match kind {
        Kind::Decimal => 10,
        Kind::Binary => 2,
        Kind::Octal => 8,
        Kind::Hex => 16,
        _ => unreachable!(),
    };
    BigInt::parse_bytes(s.as_bytes(), radix).ok_or("invalid bigint")
}