/** * The characters VelarScript refuses to read directly: the twelve * `Bidi_Control` code points that can reorder a reviewer's line, and the C0/C1 * controls that have to be written as a visible escape. Also the one report an * unsupported character run earns. * * D115 §三 / D114 R1f: the hygiene half of `lexer.ts`. */ import { type Diagnostic } from "../diagnostic.ts"; /** Everything this half of the lexer asks of the scanner that hosts it, and nothing more. */ export interface SourceHygieneHost { readonly diagnosedBidirectionalOffsets: Set; readonly diagnostics: { push(...reports: readonly Diagnostic[]): void; }; index: number; isAtEnd(): boolean; readonly text: string; } export declare class SourceHygiene { private readonly host; constructor(host: SourceHygieneHost); diagnoseForbiddenSourceCharacters(): void; isBidirectionalControl(codePoint: number): boolean; isForbiddenLiteralControl(codePoint: number): boolean; invalidCharacter(character: string, start: number): void; } //# sourceMappingURL=hygiene.d.ts.map