You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

11 lines
453 B

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.emitStringMatch = void 0;
const emitStringMatch = (expression, offset, match) => {
const conditions = [];
for (let i = 0; i < match.length; i++)
conditions.push(`${match.charCodeAt(i)} === ${expression}.charCodeAt(${offset} + ${i})`);
return conditions.join(' && ');
};
exports.emitStringMatch = emitStringMatch;
//# sourceMappingURL=helpers.js.map