@compodoc/compodoc
Version:
The missing documentation tool for your Angular application
13 lines (10 loc) • 499 B
text/typescript
import * as ts from 'typescript';
const tsany = ts as any;
// https://github.com/Microsoft/TypeScript/blob/v2.1.4/src/compiler/utilities.ts#L152
export function getSourceFileOfNode(node: ts.Node): ts.SourceFile {
return tsany.getSourceFileOfNode.apply(this, arguments);
}
// https://github.com/Microsoft/TypeScript/blob/v2.1.4/src/compiler/utilities.ts#L1423
export function getJSDocCommentRanges(node: ts.Node, text: string) {
return tsany.getJSDocCommentRanges.apply(this, arguments);
}