generatedPositionFor(aArgs) {
    let source = util.getArg(aArgs, 'source');
    source = this._findSourceIndex(source);
    if (source < 0) {
      return {
        line: null,
        column: null,
        lastColumn: null,
      }
    }

    const needle = {
      source,
      originalLine: util.getArg(aArgs, 'line'),
      originalColumn: util.getArg(aArgs, 'column'),
    };

    if (needle.originalLine < 1) {
      throw new Error('Line numbers must be >= 1')
    }

    if (needle.originalColumn < 0) {
      throw new Error('Column numbers must be >= 0')
    }

    let bias = util.getArg(
      aArgs,
      'bias',
      SourceMapConsumer$1.GREATEST_LOWER_BOUND
    );
    if (bias == null) {
      bias = SourceMapConsumer$1.GREATEST_LOWER_BOUND;
    }

    let mapping;
    this._wasm.withMappingCallback(
      (m) => (mapping = m),
      () => {
        this._wasm.exports.generated_location_for(
          this._getMappingsPtr(),
          needle.source,
          needle.originalLine - 1,
          needle.originalColumn,
          bias
        );
      }
    );

    if (mapping) {
      if (mapping.source === needle.source) {
        let lastColumn = mapping.lastGeneratedColumn;
        if (this._computedColumnSpans && lastColumn === null) {
          lastColumn = Infinity;
        }
        return {
          line: util.getArg(mapping, 'generatedLine', null),
          column: util.getArg(mapping, 'generatedColumn', null),
          lastColumn,
        }
      }
    }

    return {
      line: null,
      column: null,
      lastColumn: null,
    }
  }
Returns the generated line and column information for the original source,
line, and column positions provided. The only argument is an object with
the following properties:

  - source: The filename of the original source.
  - line: The line number in the original source.  The line number
    is 1-based.
  - column: The column number in the original source.  The column
    number is 0-based.
  - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
    'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
    closest element that is smaller than or greater than the one we are
    searching for, respectively, if the exact element cannot be found.
    Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.

and an object is returned with the following properties:

  - line: The line number in the generated source, or null.  The
    line number is 1-based.
  - column: The column number in the generated source, or null.
    The column number is 0-based.