Update test426 fixtures for source map tests. Refs: https://github.com/tc39/source-map-tests PR-URL: https://github.com/nodejs/node/pull/60982 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
44 lines
1,010 B
TypeScript
44 lines
1,010 B
TypeScript
/**
|
|
* The global type of a .golden JSON.
|
|
*/
|
|
interface SourceMapRecord {
|
|
file: string|null;
|
|
sources: SourceRecord[];
|
|
mappings: MappingRecord[];
|
|
}
|
|
|
|
/**
|
|
* Corresponds to a [Decoded Source Record](https://tc39.es/ecma426/#decoded-source-record)
|
|
*/
|
|
interface SourceRecord {
|
|
url: string|null;
|
|
content: string|null;
|
|
ignored: boolean;
|
|
}
|
|
|
|
/**
|
|
* Corresponds to a [Decoded Mapping Record](https://tc39.es/ecma426/#decoded-mapping-record)
|
|
*/
|
|
interface MappingRecord {
|
|
generatedPosition: PositionRecord;
|
|
originalPosition: OriginalPositionRecord|null;
|
|
name: string|null;
|
|
}
|
|
|
|
/**
|
|
* Corresponds to a [Position Record](https://tc39.es/ecma426/#sec-position-record-type)
|
|
*/
|
|
interface PositionRecord {
|
|
line: number;
|
|
column: number;
|
|
}
|
|
|
|
/**
|
|
* Corresponds to a [Original Position Record](https://tc39.es/ecma426/#sec-original-position-record-type)
|
|
*/
|
|
interface OriginalPositionRecord {
|
|
/** An index into {@link SourceMapRecord.sources}. */
|
|
sourceIndex: number;
|
|
line: number;
|
|
column: number;
|
|
}
|