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

Method setSourcePosition

packages/babel-generator/src/buffer.ts:378–382  ·  view source on GitHub ↗
(line: number, column: number)

Source from the content-addressed store, hash-verified

376 }
377
378 setSourcePosition(line: number, column: number): void {
379 const target = this._sourcePosition;
380 target.line = line;
381 target.column = column;
382 }
383
384 getCurrentColumn(): number {
385 return this._position.column + (this._queuedChar ? 1 : 0);

Callers 2

_normalizePositionMethod · 0.95
_catchUpToMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected