utils/node_modules/@microsoft/tsdoc/lib/nodes/DocCodeSpan.d.ts

40 lines
1.3 KiB
TypeScript
Raw Normal View History

2024-02-07 01:33:07 -05:00
import { DocNodeKind, IDocNodeParameters, DocNode, IDocNodeParsedParameters } from './DocNode';
import { TokenSequence } from '../parser/TokenSequence';
/**
* Constructor parameters for {@link DocCodeSpan}.
*/
export interface IDocCodeSpanParameters extends IDocNodeParameters {
code: string;
}
/**
* Constructor parameters for {@link DocCodeSpan}.
*/
export interface IDocCodeSpanParsedParameters extends IDocNodeParsedParameters {
openingDelimiterExcerpt: TokenSequence;
codeExcerpt: TokenSequence;
closingDelimiterExcerpt: TokenSequence;
}
/**
* Represents CommonMark-style code span, i.e. code surrounded by
* backtick characters.
*/
export declare class DocCodeSpan extends DocNode {
private readonly _openingDelimiterExcerpt;
private _code;
private readonly _codeExcerpt;
private readonly _closingDelimiterExcerpt;
/**
* Don't call this directly. Instead use {@link TSDocParser}
* @internal
*/
constructor(parameters: IDocCodeSpanParameters | IDocCodeSpanParsedParameters);
/** @override */
get kind(): DocNodeKind | string;
/**
* The text that should be rendered as code, excluding the backtick delimiters.
*/
get code(): string;
/** @override */
protected onGetChildNodes(): ReadonlyArray<DocNode | undefined>;
}
//# sourceMappingURL=DocCodeSpan.d.ts.map