var C;
(function(A) {
  A[A.CHARACTER = 0] = "CHARACTER", A[A.NULL_CHARACTER = 1] = "NULL_CHARACTER", A[A.WHITESPACE_CHARACTER = 2] = "WHITESPACE_CHARACTER", A[A.START_TAG = 3] = "START_TAG", A[A.END_TAG = 4] = "END_TAG", A[A.COMMENT = 5] = "COMMENT", A[A.DOCTYPE = 6] = "DOCTYPE", A[A.EOF = 7] = "EOF", A[A.HIBERNATION = 8] = "HIBERNATION";
})(C || (C = {}));
function t(A, R) {
  for (let E = A.attrs.length - 1; E >= 0; E--)
    if (A.attrs[E].name === R)
      return A.attrs[E].value;
  return null;
}
export {
  C as TokenType,
  t as getTokenAttr
};
//# sourceMappingURL=token.js.map
