Try parsing signatures only if node is callable, see #149; Minor refactoring

This commit is contained in:
dcodeIO
2018-06-24 01:04:24 +02:00
parent 7a8995b18b
commit 188b4e48ce
14 changed files with 933 additions and 813 deletions

View File

@@ -34,8 +34,7 @@ import {
} from "./parser";
import {
Program,
LIBRARY_PREFIX
Program
} from "./program";
/** Parses a source file. If `parser` has been omitted a new one is created. */
@@ -168,4 +167,4 @@ export function buildTSD(program: Program): string {
}
/** Prefix indicating a library file. */
export { LIBRARY_PREFIX };
export { LIBRARY_PREFIX } from "./common";