3 Object.defineProperty(exports, "__esModule", {
7 var _typescript = require("typescript");
9 var _typescript2 = _interopRequireDefault(_typescript);
11 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13 var createProgram = function createProgram(filepath) {
14 var program = _typescript2.default.createProgram([filepath], {
16 target: _typescript2.default.ScriptTarget.Latest,
20 // This ensures the `parent` property of every node exists. More info here: https://github.com/Microsoft/TypeScript/issues/14464#issuecomment-284533993
21 program.getTypeChecker();
26 exports.default = createProgram;