github-pages-deploy-action/node_modules/tsutils/util/convert-ast.d.ts

21 lines
507 B
TypeScript
Raw Normal View History

2020-01-28 13:08:03 +08:00
import * as ts from 'typescript';
export interface NodeWrap {
node: ts.Node;
kind: ts.SyntaxKind;
children: NodeWrap[];
next?: NodeWrap;
skip?: NodeWrap;
parent?: NodeWrap;
}
export interface WrappedAst extends NodeWrap {
2020-03-07 11:45:40 +08:00
node: ts.SourceFile;
2020-01-28 13:08:03 +08:00
next: NodeWrap;
skip: undefined;
parent: undefined;
}
export interface ConvertedAst {
wrapped: WrappedAst;
flat: ReadonlyArray<ts.Node>;
}
export declare function convertAst(sourceFile: ts.SourceFile): ConvertedAst;