@sudoo/marked
Version:
JavaScript & TypeScript code runner in JavaScript, safe with marked territory, asynchronous
25 lines (24 loc) • 629 B
JavaScript
;
/**
* @author WMXPY
* @namespace Debug_Snapshot
* @description Position
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.MarkedDebugSnapshotPosition = void 0;
class MarkedDebugSnapshotPosition {
static fromPosition(position) {
return new MarkedDebugSnapshotPosition(position.line, position.column);
}
constructor(line, column) {
this._line = line;
this._column = column;
}
get line() {
return this._line;
}
get column() {
return this._column;
}
}
exports.MarkedDebugSnapshotPosition = MarkedDebugSnapshotPosition;