UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for static analysis and code manipulation.

7 lines (6 loc) 260 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function isNewLineAtPos(fullText, pos) { return fullText[pos] === "\n" || (fullText[pos] === "\r" && fullText[pos + 1] === "\n"); } exports.isNewLineAtPos = isNewLineAtPos;