"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const languages = require("../languages.js");
const NullState = new class {
  clone() {
    return this;
  }
  equals(other) {
    return this === other;
  }
}();
function nullTokenize(languageId, state) {
  return new languages.TokenizationResult([new languages.Token(0, "", languageId)], state);
}
function nullTokenizeEncoded(languageId, state) {
  const tokens = new Uint32Array(2);
  tokens[0] = 0;
  tokens[1] = (languageId << 0 | 0 << 8 | 0 << 10 | 1 << 14 | 2 << 23) >>> 0;
  return new languages.EncodedTokenizationResult(tokens, state === null ? NullState : state);
}
exports.NullState = NullState;
exports.nullTokenize = nullTokenize;
exports.nullTokenizeEncoded = nullTokenizeEncoded;
