MCPcopy Create free account
hub / github.com/babel/babel / sourceWithOffset

Method sourceWithOffset

packages/babel-generator/src/buffer.ts:354–362  ·  view source on GitHub ↗
(
    prop: "start" | "end",
    loc: Loc,
    columnOffset: number,
  )

Source from the content-addressed store, hash-verified

352 }
353
354 sourceWithOffset(
355 prop: "start" | "end",
356 loc: Loc,
357 columnOffset: number,
358 ): void {
359 if (!this._map) return;
360
361 this._normalizePosition(prop, loc, columnOffset);
362 }
363
364 _normalizePosition(prop: "start" | "end", loc: Loc, columnOffset: number) {
365 this._flush();

Callers

nothing calls this directly

Calls 1

_normalizePositionMethod · 0.95

Tested by

no test coverage detected