|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export {}; |
|
|
|
import { builders, printer, utils } from "./doc.js"; |
|
|
|
export namespace doc { |
|
export { builders, printer, utils }; |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type LiteralUnion<T extends U, U = string> = |
|
| T |
|
| (Pick<U, never> & { _?: never | undefined }); |
|
|
|
export type AST = any; |
|
export type Doc = doc.builders.Doc; |
|
|
|
|
|
type ArrayElement<T> = T extends Array<infer E> ? E : never; |
|
|
|
|
|
type ArrayProperties<T> = { |
|
[K in keyof T]: NonNullable<T[K]> extends readonly any[] ? K : never; |
|
}[keyof T]; |
|
|
|
|
|
|
|
|
|
type IndexProperties<T extends { length: number }> = |
|
IsTuple<T> extends true ? Exclude<Partial<T>["length"], T["length"]> : number; |
|
|
|
|
|
|
|
type IndexValue<T, P> = T extends any[] |
|
? P extends number |
|
? T[P] |
|
: never |
|
: P extends keyof T |
|
? T[P] |
|
: never; |
|
|
|
|
|
|
|
|
|
|
|
type IsTuple<T> = T extends [] |
|
? true |
|
: T extends [infer First, ...infer Remain] |
|
? IsTuple<Remain> |
|
: false; |
|
|
|
type CallProperties<T> = T extends any[] ? IndexProperties<T> : keyof T; |
|
type IterProperties<T> = T extends any[] |
|
? IndexProperties<T> |
|
: ArrayProperties<T>; |
|
|
|
type CallCallback<T, U> = (path: AstPath<T>, index: number, value: any) => U; |
|
type EachCallback<T> = ( |
|
path: AstPath<ArrayElement<T>>, |
|
index: number, |
|
value: any, |
|
) => void; |
|
type MapCallback<T, U> = ( |
|
path: AstPath<ArrayElement<T>>, |
|
index: number, |
|
value: any, |
|
) => U; |
|
|
|
|
|
export class AstPath<T = any> { |
|
constructor(value: T); |
|
|
|
get key(): string | null; |
|
get index(): number | null; |
|
get node(): T; |
|
get parent(): T | null; |
|
get grandparent(): T | null; |
|
get isInArray(): boolean; |
|
get siblings(): T[] | null; |
|
get next(): T | null; |
|
get previous(): T | null; |
|
get isFirst(): boolean; |
|
get isLast(): boolean; |
|
get isRoot(): boolean; |
|
get root(): T; |
|
get ancestors(): T[]; |
|
|
|
stack: T[]; |
|
|
|
callParent<U>(callback: (path: this) => U, count?: number): U; |
|
|
|
|
|
|
|
|
|
getName(): PropertyKey | null; |
|
|
|
|
|
|
|
|
|
getValue(): T; |
|
|
|
getNode(count?: number): T | null; |
|
|
|
getParentNode(count?: number): T | null; |
|
|
|
match( |
|
...predicates: Array< |
|
(node: any, name: string | null, number: number | null) => boolean |
|
> |
|
): boolean; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
call<U>(callback: CallCallback<T, U>): U; |
|
call<U, P1 extends CallProperties<T>>( |
|
callback: CallCallback<IndexValue<T, P1>, U>, |
|
prop1: P1, |
|
): U; |
|
call<U, P1 extends keyof T, P2 extends CallProperties<T[P1]>>( |
|
callback: CallCallback<IndexValue<IndexValue<T, P1>, P2>, U>, |
|
prop1: P1, |
|
prop2: P2, |
|
): U; |
|
call< |
|
U, |
|
P1 extends keyof T, |
|
P2 extends CallProperties<T[P1]>, |
|
P3 extends CallProperties<IndexValue<T[P1], P2>>, |
|
>( |
|
callback: CallCallback< |
|
IndexValue<IndexValue<IndexValue<T, P1>, P2>, P3>, |
|
U |
|
>, |
|
prop1: P1, |
|
prop2: P2, |
|
prop3: P3, |
|
): U; |
|
call< |
|
U, |
|
P1 extends keyof T, |
|
P2 extends CallProperties<T[P1]>, |
|
P3 extends CallProperties<IndexValue<T[P1], P2>>, |
|
P4 extends CallProperties<IndexValue<IndexValue<T[P1], P2>, P3>>, |
|
>( |
|
callback: CallCallback< |
|
IndexValue<IndexValue<IndexValue<IndexValue<T, P1>, P2>, P3>, P4>, |
|
U |
|
>, |
|
prop1: P1, |
|
prop2: P2, |
|
prop3: P3, |
|
prop4: P4, |
|
): U; |
|
call<U, P extends PropertyKey>( |
|
callback: CallCallback<any, U>, |
|
prop1: P, |
|
prop2: P, |
|
prop3: P, |
|
prop4: P, |
|
...props: P[] |
|
): U; |
|
|
|
each(callback: EachCallback<T>): void; |
|
each<P1 extends IterProperties<T>>( |
|
callback: EachCallback<IndexValue<T, P1>>, |
|
prop1: P1, |
|
): void; |
|
each<P1 extends keyof T, P2 extends IterProperties<T[P1]>>( |
|
callback: EachCallback<IndexValue<IndexValue<T, P1>, P2>>, |
|
prop1: P1, |
|
prop2: P2, |
|
): void; |
|
each< |
|
P1 extends keyof T, |
|
P2 extends IterProperties<T[P1]>, |
|
P3 extends IterProperties<IndexValue<T[P1], P2>>, |
|
>( |
|
callback: EachCallback<IndexValue<IndexValue<IndexValue<T, P1>, P2>, P3>>, |
|
prop1: P1, |
|
prop2: P2, |
|
prop3: P3, |
|
): void; |
|
each< |
|
P1 extends keyof T, |
|
P2 extends IterProperties<T[P1]>, |
|
P3 extends IterProperties<IndexValue<T[P1], P2>>, |
|
P4 extends IterProperties<IndexValue<IndexValue<T[P1], P2>, P3>>, |
|
>( |
|
callback: EachCallback< |
|
IndexValue<IndexValue<IndexValue<IndexValue<T, P1>, P2>, P3>, P4> |
|
>, |
|
prop1: P1, |
|
prop2: P2, |
|
prop3: P3, |
|
prop4: P4, |
|
): void; |
|
each( |
|
callback: EachCallback<any[]>, |
|
prop1: PropertyKey, |
|
prop2: PropertyKey, |
|
prop3: PropertyKey, |
|
prop4: PropertyKey, |
|
...props: PropertyKey[] |
|
): void; |
|
|
|
map<U>(callback: MapCallback<T, U>): U[]; |
|
map<U, P1 extends IterProperties<T>>( |
|
callback: MapCallback<IndexValue<T, P1>, U>, |
|
prop1: P1, |
|
): U[]; |
|
map<U, P1 extends keyof T, P2 extends IterProperties<T[P1]>>( |
|
callback: MapCallback<IndexValue<IndexValue<T, P1>, P2>, U>, |
|
prop1: P1, |
|
prop2: P2, |
|
): U[]; |
|
map< |
|
U, |
|
P1 extends keyof T, |
|
P2 extends IterProperties<T[P1]>, |
|
P3 extends IterProperties<IndexValue<T[P1], P2>>, |
|
>( |
|
callback: MapCallback<IndexValue<IndexValue<IndexValue<T, P1>, P2>, P3>, U>, |
|
prop1: P1, |
|
prop2: P2, |
|
prop3: P3, |
|
): U[]; |
|
map< |
|
U, |
|
P1 extends keyof T, |
|
P2 extends IterProperties<T[P1]>, |
|
P3 extends IterProperties<IndexValue<T[P1], P2>>, |
|
P4 extends IterProperties<IndexValue<IndexValue<T[P1], P2>, P3>>, |
|
>( |
|
callback: MapCallback< |
|
IndexValue<IndexValue<IndexValue<IndexValue<T, P1>, P2>, P3>, P4>, |
|
U |
|
>, |
|
prop1: P1, |
|
prop2: P2, |
|
prop3: P3, |
|
prop4: P4, |
|
): U[]; |
|
map<U>( |
|
callback: MapCallback<any[], U>, |
|
prop1: PropertyKey, |
|
prop2: PropertyKey, |
|
prop3: PropertyKey, |
|
prop4: PropertyKey, |
|
...props: PropertyKey[] |
|
): U[]; |
|
} |
|
|
|
|
|
export type FastPath<T = any> = AstPath<T>; |
|
|
|
export type BuiltInParser = (text: string, options?: any) => AST; |
|
export type BuiltInParserName = |
|
| "acorn" |
|
| "angular" |
|
| "babel-flow" |
|
| "babel-ts" |
|
| "babel" |
|
| "css" |
|
| "espree" |
|
| "flow" |
|
| "glimmer" |
|
| "graphql" |
|
| "html" |
|
| "json-stringify" |
|
| "json" |
|
| "json5" |
|
| "jsonc" |
|
| "less" |
|
| "lwc" |
|
| "markdown" |
|
| "mdx" |
|
| "meriyah" |
|
| "scss" |
|
| "typescript" |
|
| "vue" |
|
| "yaml"; |
|
export type BuiltInParsers = Record<BuiltInParserName, BuiltInParser>; |
|
|
|
|
|
|
|
|
|
export interface Config extends Options { |
|
overrides?: Array<{ |
|
files: string | string[]; |
|
excludeFiles?: string | string[]; |
|
options?: Options; |
|
}>; |
|
} |
|
|
|
export interface Options extends Partial<RequiredOptions> {} |
|
|
|
export interface RequiredOptions extends doc.printer.Options { |
|
|
|
|
|
|
|
|
|
semi: boolean; |
|
|
|
|
|
|
|
|
|
singleQuote: boolean; |
|
|
|
|
|
|
|
|
|
jsxSingleQuote: boolean; |
|
|
|
|
|
|
|
|
|
trailingComma: "none" | "es5" | "all"; |
|
|
|
|
|
|
|
|
|
bracketSpacing: boolean; |
|
|
|
|
|
|
|
|
|
|
|
bracketSameLine: boolean; |
|
|
|
|
|
|
|
|
|
rangeStart: number; |
|
|
|
|
|
|
|
|
|
rangeEnd: number; |
|
|
|
|
|
|
|
parser: LiteralUnion<BuiltInParserName>; |
|
|
|
|
|
|
|
filepath: string; |
|
|
|
|
|
|
|
|
|
|
|
requirePragma: boolean; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
insertPragma: boolean; |
|
|
|
|
|
|
|
|
|
|
|
proseWrap: "always" | "never" | "preserve"; |
|
|
|
|
|
|
|
|
|
arrowParens: "avoid" | "always"; |
|
|
|
|
|
|
|
plugins: Array<string | Plugin>; |
|
|
|
|
|
|
|
|
|
htmlWhitespaceSensitivity: "css" | "strict" | "ignore"; |
|
|
|
|
|
|
|
|
|
endOfLine: "auto" | "lf" | "crlf" | "cr"; |
|
|
|
|
|
|
|
|
|
quoteProps: "as-needed" | "consistent" | "preserve"; |
|
|
|
|
|
|
|
|
|
vueIndentScriptAndStyle: boolean; |
|
|
|
|
|
|
|
|
|
embeddedLanguageFormatting: "auto" | "off"; |
|
|
|
|
|
|
|
|
|
singleAttributePerLine: boolean; |
|
|
|
|
|
|
|
|
|
|
|
experimentalTernaries: boolean; |
|
|
|
|
|
|
|
|
|
|
|
jsxBracketSameLine?: boolean; |
|
|
|
|
|
|
|
[_: string]: unknown; |
|
} |
|
|
|
export interface ParserOptions<T = any> extends RequiredOptions { |
|
locStart: (node: T) => number; |
|
locEnd: (node: T) => number; |
|
originalText: string; |
|
} |
|
|
|
export interface Plugin<T = any> { |
|
languages?: SupportLanguage[] | undefined; |
|
parsers?: { [parserName: string]: Parser<T> } | undefined; |
|
printers?: { [astFormat: string]: Printer<T> } | undefined; |
|
options?: SupportOptions | undefined; |
|
defaultOptions?: Partial<RequiredOptions> | undefined; |
|
} |
|
|
|
export interface Parser<T = any> { |
|
parse: (text: string, options: ParserOptions<T>) => T | Promise<T>; |
|
astFormat: string; |
|
hasPragma?: ((text: string) => boolean) | undefined; |
|
locStart: (node: T) => number; |
|
locEnd: (node: T) => number; |
|
preprocess?: |
|
| ((text: string, options: ParserOptions<T>) => string) |
|
| undefined; |
|
} |
|
|
|
export interface Printer<T = any> { |
|
print( |
|
path: AstPath<T>, |
|
options: ParserOptions<T>, |
|
print: (path: AstPath<T>) => Doc, |
|
args?: unknown, |
|
): Doc; |
|
embed?: |
|
| (( |
|
path: AstPath, |
|
options: Options, |
|
) => |
|
| (( |
|
textToDoc: (text: string, options: Options) => Promise<Doc>, |
|
print: ( |
|
selector?: string | number | Array<string | number> | AstPath, |
|
) => Doc, |
|
path: AstPath, |
|
options: Options, |
|
) => Promise<Doc | undefined> | Doc | undefined) |
|
| Doc |
|
| null) |
|
| undefined; |
|
preprocess?: |
|
| ((ast: T, options: ParserOptions<T>) => T | Promise<T>) |
|
| undefined; |
|
insertPragma?: (text: string) => string; |
|
|
|
|
|
|
|
|
|
|
|
massageAstNode?: |
|
| ((original: any, cloned: any, parent: any) => any) |
|
| undefined; |
|
hasPrettierIgnore?: ((path: AstPath<T>) => boolean) | undefined; |
|
canAttachComment?: ((node: T) => boolean) | undefined; |
|
isBlockComment?: ((node: T) => boolean) | undefined; |
|
willPrintOwnComments?: ((path: AstPath<T>) => boolean) | undefined; |
|
printComment?: |
|
| ((commentPath: AstPath<T>, options: ParserOptions<T>) => Doc) |
|
| undefined; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getCommentChildNodes?: |
|
| ((node: T, options: ParserOptions<T>) => T[] | undefined) |
|
| undefined; |
|
handleComments?: |
|
| { |
|
ownLine?: |
|
| (( |
|
commentNode: any, |
|
text: string, |
|
options: ParserOptions<T>, |
|
ast: T, |
|
isLastComment: boolean, |
|
) => boolean) |
|
| undefined; |
|
endOfLine?: |
|
| (( |
|
commentNode: any, |
|
text: string, |
|
options: ParserOptions<T>, |
|
ast: T, |
|
isLastComment: boolean, |
|
) => boolean) |
|
| undefined; |
|
remaining?: |
|
| (( |
|
commentNode: any, |
|
text: string, |
|
options: ParserOptions<T>, |
|
ast: T, |
|
isLastComment: boolean, |
|
) => boolean) |
|
| undefined; |
|
} |
|
| undefined; |
|
getVisitorKeys?: |
|
| ((node: T, nonTraversableKeys: Set<string>) => string[]) |
|
| undefined; |
|
} |
|
|
|
export interface CursorOptions extends Options { |
|
|
|
|
|
|
|
cursorOffset: number; |
|
} |
|
|
|
export interface CursorResult { |
|
formatted: string; |
|
cursorOffset: number; |
|
} |
|
|
|
|
|
|
|
|
|
export function format(source: string, options?: Options): Promise<string>; |
|
|
|
|
|
|
|
|
|
|
|
export function check(source: string, options?: Options): Promise<boolean>; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export function formatWithCursor( |
|
source: string, |
|
options: CursorOptions, |
|
): Promise<CursorResult>; |
|
|
|
export interface ResolveConfigOptions { |
|
|
|
|
|
|
|
useCache?: boolean | undefined; |
|
|
|
|
|
|
|
config?: string | undefined; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
editorconfig?: boolean | undefined; |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export function resolveConfig( |
|
fileUrlOrPath: string | URL, |
|
options?: ResolveConfigOptions, |
|
): Promise<Options | null>; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export function resolveConfigFile( |
|
fileUrlOrPath?: string | URL, |
|
): Promise<string | null>; |
|
|
|
|
|
|
|
|
|
|
|
export function clearConfigCache(): Promise<void>; |
|
|
|
export interface SupportLanguage { |
|
name: string; |
|
since?: string | undefined; |
|
parsers: BuiltInParserName[] | string[]; |
|
group?: string | undefined; |
|
tmScope?: string | undefined; |
|
aceMode?: string | undefined; |
|
codemirrorMode?: string | undefined; |
|
codemirrorMimeType?: string | undefined; |
|
aliases?: string[] | undefined; |
|
extensions?: string[] | undefined; |
|
filenames?: string[] | undefined; |
|
linguistLanguageId?: number | undefined; |
|
vscodeLanguageIds?: string[] | undefined; |
|
interpreters?: string[] | undefined; |
|
} |
|
|
|
export interface SupportOptionRange { |
|
start: number; |
|
end: number; |
|
step: number; |
|
} |
|
|
|
export type SupportOptionType = |
|
| "int" |
|
| "string" |
|
| "boolean" |
|
| "choice" |
|
| "path"; |
|
|
|
export type CoreCategoryType = |
|
| "Config" |
|
| "Editor" |
|
| "Format" |
|
| "Other" |
|
| "Output" |
|
| "Global" |
|
| "Special"; |
|
|
|
export interface BaseSupportOption<Type extends SupportOptionType> { |
|
readonly name?: string | undefined; |
|
|
|
|
|
|
|
category: string; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type: Type; |
|
|
|
|
|
|
|
|
|
|
|
|
|
deprecated?: true | string | undefined; |
|
|
|
|
|
|
|
|
|
description?: string | undefined; |
|
} |
|
|
|
export interface IntSupportOption extends BaseSupportOption<"int"> { |
|
default?: number | undefined; |
|
array?: false | undefined; |
|
range?: SupportOptionRange | undefined; |
|
} |
|
|
|
export interface IntArraySupportOption extends BaseSupportOption<"int"> { |
|
default?: Array<{ value: number[] }> | undefined; |
|
array: true; |
|
} |
|
|
|
export interface StringSupportOption extends BaseSupportOption<"string"> { |
|
default?: string | undefined; |
|
array?: false | undefined; |
|
} |
|
|
|
export interface StringArraySupportOption extends BaseSupportOption<"string"> { |
|
default?: Array<{ value: string[] }> | undefined; |
|
array: true; |
|
} |
|
|
|
export interface BooleanSupportOption extends BaseSupportOption<"boolean"> { |
|
default?: boolean | undefined; |
|
array?: false | undefined; |
|
description: string; |
|
oppositeDescription?: string | undefined; |
|
} |
|
|
|
export interface BooleanArraySupportOption |
|
extends BaseSupportOption<"boolean"> { |
|
default?: Array<{ value: boolean[] }> | undefined; |
|
array: true; |
|
} |
|
|
|
export interface ChoiceSupportOption<Value = any> |
|
extends BaseSupportOption<"choice"> { |
|
default?: Value | Array<{ value: Value }> | undefined; |
|
description: string; |
|
choices: Array<{ |
|
since?: string | undefined; |
|
value: Value; |
|
description: string; |
|
}>; |
|
} |
|
|
|
export interface PathSupportOption extends BaseSupportOption<"path"> { |
|
default?: string | undefined; |
|
array?: false | undefined; |
|
} |
|
|
|
export interface PathArraySupportOption extends BaseSupportOption<"path"> { |
|
default?: Array<{ value: string[] }> | undefined; |
|
array: true; |
|
} |
|
|
|
export type SupportOption = |
|
| IntSupportOption |
|
| IntArraySupportOption |
|
| StringSupportOption |
|
| StringArraySupportOption |
|
| BooleanSupportOption |
|
| BooleanArraySupportOption |
|
| ChoiceSupportOption |
|
| PathSupportOption |
|
| PathArraySupportOption; |
|
|
|
export interface SupportOptions extends Record<string, SupportOption> {} |
|
|
|
export interface SupportInfo { |
|
languages: SupportLanguage[]; |
|
options: SupportOption[]; |
|
} |
|
|
|
export interface FileInfoOptions { |
|
ignorePath?: string | URL | (string | URL)[] | undefined; |
|
withNodeModules?: boolean | undefined; |
|
plugins?: Array<string | Plugin> | undefined; |
|
resolveConfig?: boolean | undefined; |
|
} |
|
|
|
export interface FileInfoResult { |
|
ignored: boolean; |
|
inferredParser: string | null; |
|
} |
|
|
|
export function getFileInfo( |
|
file: string | URL, |
|
options?: FileInfoOptions, |
|
): Promise<FileInfoResult>; |
|
|
|
export interface SupportInfoOptions { |
|
plugins?: Array<string | Plugin> | undefined; |
|
showDeprecated?: boolean | undefined; |
|
} |
|
|
|
|
|
|
|
|
|
export function getSupportInfo( |
|
options?: SupportInfoOptions, |
|
): Promise<SupportInfo>; |
|
|
|
|
|
|
|
|
|
export const version: string; |
|
|
|
|
|
export namespace util { |
|
interface SkipOptions { |
|
backwards?: boolean | undefined; |
|
} |
|
|
|
type Quote = "'" | '"'; |
|
|
|
function getMaxContinuousCount(text: string, searchString: string): number; |
|
|
|
function getStringWidth(text: string): number; |
|
|
|
function getAlignmentSize( |
|
text: string, |
|
tabWidth: number, |
|
startIndex?: number | undefined, |
|
): number; |
|
|
|
function getIndentSize(value: string, tabWidth: number): number; |
|
|
|
function skipNewline( |
|
text: string, |
|
startIndex: number | false, |
|
options?: SkipOptions | undefined, |
|
): number | false; |
|
|
|
function skipInlineComment( |
|
text: string, |
|
startIndex: number | false, |
|
): number | false; |
|
|
|
function skipTrailingComment( |
|
text: string, |
|
startIndex: number | false, |
|
): number | false; |
|
|
|
function skipTrailingComment( |
|
text: string, |
|
startIndex: number | false, |
|
): number | false; |
|
|
|
function hasNewline( |
|
text: string, |
|
startIndex: number, |
|
options?: SkipOptions | undefined, |
|
): boolean; |
|
|
|
function hasNewlineInRange( |
|
text: string, |
|
startIndex: number, |
|
endIndex: number, |
|
): boolean; |
|
|
|
function hasSpaces( |
|
text: string, |
|
startIndex: number, |
|
options?: SkipOptions | undefined, |
|
): boolean; |
|
|
|
function getNextNonSpaceNonCommentCharacterIndex( |
|
text: string, |
|
startIndex: number, |
|
): number | false; |
|
|
|
function getNextNonSpaceNonCommentCharacter( |
|
text: string, |
|
startIndex: number, |
|
): string; |
|
|
|
function isNextLineEmpty(text: string, startIndex: number): boolean; |
|
|
|
function isPreviousLineEmpty(text: string, startIndex: number): boolean; |
|
|
|
function makeString( |
|
rawText: string, |
|
enclosingQuote: Quote, |
|
unescapeUnnecessaryEscapes?: boolean | undefined, |
|
): string; |
|
|
|
function skip( |
|
characters: string | RegExp, |
|
): ( |
|
text: string, |
|
startIndex: number | false, |
|
options?: SkipOptions, |
|
) => number | false; |
|
|
|
const skipWhitespace: ( |
|
text: string, |
|
startIndex: number | false, |
|
options?: SkipOptions, |
|
) => number | false; |
|
|
|
const skipSpaces: ( |
|
text: string, |
|
startIndex: number | false, |
|
options?: SkipOptions, |
|
) => number | false; |
|
|
|
const skipToLineEnd: ( |
|
text: string, |
|
startIndex: number | false, |
|
options?: SkipOptions, |
|
) => number | false; |
|
|
|
const skipEverythingButNewLine: ( |
|
text: string, |
|
startIndex: number | false, |
|
options?: SkipOptions, |
|
) => number | false; |
|
|
|
function addLeadingComment(node: any, comment: any): void; |
|
|
|
function addDanglingComment(node: any, comment: any, marker: any): void; |
|
|
|
function addTrailingComment(node: any, comment: any): void; |
|
} |
|
|