procedure.js 491 B

123456789101112131415161718192021
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.isTraversal = exports.procedure = void 0;
  4. exports.procedure = {
  5. universal: 50,
  6. tag: 30,
  7. attribute: 1,
  8. pseudo: 0,
  9. "pseudo-element": 0,
  10. "column-combinator": -1,
  11. descendant: -1,
  12. child: -1,
  13. parent: -1,
  14. sibling: -1,
  15. adjacent: -1,
  16. _flexibleDescendant: -1,
  17. };
  18. function isTraversal(t) {
  19. return exports.procedure[t.type] < 0;
  20. }
  21. exports.isTraversal = isTraversal;