function is(variant) {
  return function (value) {
    return Array.isArray(value) && value[0] === variant;
  };
} // Statements


const isFlushElement = is(10
/* FlushElement */
);

function isAttribute(val) {
  return val[0] === 12
  /* StaticAttr */
  || val[0] === 13
  /* DynamicAttr */
  || val[0] === 20
  /* TrustingDynamicAttr */
  || val[0] === 14
  /* ComponentAttr */
  || val[0] === 21
  /* TrustingComponentAttr */
  || val[0] === 15
  /* AttrSplat */
  || val[0] === 3
  /* Modifier */
  ;
}

function isArgument(val) {
  return val[0] === 19
  /* StaticArg */
  || val[0] === 18
  /* DynamicArg */
  ;
}

function isHelper(expr) {
  return Array.isArray(expr) && expr[0] === 31
  /* Call */
  ;
} // Expressions


const isGet = is(24
/* GetSymbol */
);
export { is, isFlushElement, isAttribute, isArgument, isHelper, isGet };