@typespec/compiler
Version:
TypeSpec Compiler Preview
20 lines • 687 B
TypeScript
/**
* Takes source code with a cursor position indicated by the given marker
* ("┆" by default), and returns the source without the marker along with
* the cursor position.
*/
export declare function extractCursor(sourceWithCursor: string, marker?: string): {
source: string;
pos: number;
};
/**
* Takes source code with start and end positions indicated by given marker
* ("~~~" by default) and returns the source without the markers along with
* the start and end positions.
*/
export declare function extractSquiggles(sourceWithSquiggles: string, marker?: string): {
source: string;
pos: number;
end: number;
};
//# sourceMappingURL=source-utils.d.ts.map