UNPKG

@typespec/compiler

Version:

TypeSpec compiler and standard library

29 lines 996 B
/** * 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 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 extractCursors(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