UNPKG

490 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.LINEBREAK_MATCHER = exports.isTokenOnSameLine = void 0;
4const LINEBREAK_MATCHER = /\r\n|[\r\n\u2028\u2029]/;
5exports.LINEBREAK_MATCHER = LINEBREAK_MATCHER;
6/**
7 * Determines whether two adjacent tokens are on the same line
8 */
9function isTokenOnSameLine(left, right) {
10 return left.loc.end.line === right.loc.start.line;
11}
12exports.isTokenOnSameLine = isTokenOnSameLine;
13//# sourceMappingURL=misc.js.map
\No newline at end of file