1 | import * as ts from 'typescript';
|
2 | const tsany = ts as any;
|
3 |
|
4 | // https://github.com/Microsoft/TypeScript/blob/v2.1.4/src/compiler/utilities.ts#L152
|
5 | export 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
|
10 | export function getJSDocCommentRanges(node: ts.Node, text: string) {
|
11 | return tsany.getJSDocCommentRanges.apply(this, arguments);
|
12 | }
|