/** * The two things an index says about a span rather than about a symbol: the * syntax token an editor colours it with, and the documentation key a hover * reads. Also the doc comment written above a declaration. * * D115 §三 / D114 R1f: the documentation half of `semantic.ts`. */ import { type SourceText, type Span } from "../source.ts"; import { type SemanticSyntaxDocumentation, type SemanticSyntaxToken, type SemanticSyntaxTokenKind } from "./symbols.ts"; /** What the syntax log asks of the index that hosts it, and nothing more. */ export interface SemanticSyntaxLogHost { readonly source: SourceText; readonly syntaxDocumentation: SemanticSyntaxDocumentation[]; readonly syntaxDocumentationIdentities: Set; readonly syntaxTokenIdentities: Set; readonly syntaxTokens: SemanticSyntaxToken[]; } export declare class SemanticSyntaxLog { private readonly host; constructor(host: SemanticSyntaxLogHost); syntaxToken(tokenSpan: Span, kind: SemanticSyntaxTokenKind): void; documentSyntax(documentedSpan: Span, key: string): void; } export declare function documentationBefore(source: SourceText, declarationStart: number): string | null; //# sourceMappingURL=documentation.d.ts.map