UNPKG

499 BPlain TextView Raw
1import * as ts from 'typescript';
2const tsany = ts as any;
3
4// https://github.com/Microsoft/TypeScript/blob/v2.1.4/src/compiler/utilities.ts#L152
5export function getSourceFileOfNode(node: ts.Node): ts.SourceFile {
6 return tsany.getSourceFileOfNode.apply(this, arguments);
7}
8
9// https://github.com/Microsoft/TypeScript/blob/v2.1.4/src/compiler/utilities.ts#L1423
10export function getJSDocCommentRanges(node: ts.Node, text: string) {
11 return tsany.getJSDocCommentRanges.apply(this, arguments);
12}