/** A backslash sequence the language does not define, for OS1005. */ export interface BadEscape { readonly offset: number; readonly length: number; /** The backslash and what followed it, which is the {sequence} of OS1005. */ readonly text: string; } export interface StringLiteral { /** One past the closing quote, or the end of the line when there was none. */ readonly end: number; /** The text the literal denotes, with its escapes already resolved. */ readonly value: string; readonly unterminated: boolean; readonly badEscapes: readonly BadEscape[]; } /** * Reads the literal opening at `start`, which is the quote character, in either * delimiter of language.md 3.6. * * A literal may not span a line, so the scan stops at the newline and says so * rather than swallowing the rest of the file. The caller reports OS1004 at the * opening quote, which is where the mistake is, and keeps the text that was * read so that the statement around it still parses and the reader is not shown * a second error for the same missing character. */ export declare function scanString(text: string, start: number): StringLiteral; //# sourceMappingURL=strings.d.ts.map