ts-simple-ast
Version:
TypeScript compiler wrapper for AST navigation and code generation.
19 lines (17 loc) • 699 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const ts = require("typescript");
const errors = require("./../errors");
const ManipulationSettings_1 = require("./../ManipulationSettings");
function newLineKindToTs(kind) {
switch (kind) {
case ManipulationSettings_1.NewLineKind.CarriageReturnLineFeed:
return ts.NewLineKind.CarriageReturnLineFeed;
case ManipulationSettings_1.NewLineKind.LineFeed:
return ts.NewLineKind.LineFeed;
default:
throw new errors.NotImplementedError("Not implemented newline kind");
}
}
exports.newLineKindToTs = newLineKindToTs;
//# sourceMappingURL=newLineKindToTs.js.map