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

Method get

packages/babel-generator/src/source-map.ts:107–113  ·  view source on GitHub ↗

* Get the sourcemap.

()

Source from the content-addressed store, hash-verified

105 * Get the sourcemap.
106 */
107 get(): EncodedSourceMap {
108 this.#flushBuffer();
109 const encoded = toEncodedMap(this._map);
110 // TODO(Babel 9): Remove this fallback.
111 encoded.ignoreList ??= [];
112 return encoded;
113 }
114
115 getDecoded(): DecodedSourceMap {
116 this.#flushBuffer();

Callers

nothing calls this directly

Calls 1

#flushBufferMethod · 0.95

Tested by

no test coverage detected