def METHOD_NAME(
    self,
    line: int,
    col: int,
    minified_function_name: str | None = None,
    minified_source: SourceView | None = None,
) -> SourceMapTokenMatch | None:
    """Looks up a token from the sourcemap and optionally also
    resolves a function name from a stacktrace to the original one.
    """
    if minified_function_name is None or minified_source is None:
        rv = self._methodcall(lib.symbolic_sourcemapview_lookup_token, line, col)
    else:
        if not isinstance(minified_source, SourceView):
            raise TypeError("source view required")
        rv = self._methodcall(
            lib.symbolic_sourcemapview_lookup_token_with_function_name,
            line,
            col,
            encode_str(minified_function_name),
            minified_source._objptr,
        )
    if rv != ffi.NULL:
        try:
            return SourceMapTokenMatch._from_objptr(rv)
        finally:
            rustcall(lib.symbolic_token_match_free, rv)
    return None