@jqassistant/ts-lce
Version:
Tool to extract language concepts from a TypeScript codebase and export them to a JSON file.
23 lines (22 loc) • 658 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CodeCoordinates = void 0;
/**
* Represents an area within a source file which corresponds to an extracted language concept.
* The file name should be an absolute path.
*/
class CodeCoordinates {
fileName;
startLine;
startColumn;
endLine;
endColumn;
constructor(fileName, startLine, startColumn, endLine, endColumn) {
this.fileName = fileName;
this.startLine = startLine;
this.startColumn = startColumn;
this.endLine = endLine;
this.endColumn = endColumn;
}
}
exports.CodeCoordinates = CodeCoordinates;