d48e5309f57e811e38322f">30f7226d9a first commit %!s(int64=2) %!d(string=hace) años sortablejs 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años source-map 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años source-map-js 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años string-width 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años strip-ansi 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años sucrase 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años supports-preserve-symlinks-flag 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años tailwind-color-palette 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años tailwindcss 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años thenify 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años thenify-all 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años to-regex-range 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años tr46 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años ts-interface-checker 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años uglify-js 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años underscore 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años upper-case 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años util-deprecate 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años valid-data-url 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años web-resource-inliner 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años webidl-conversions 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años whatwg-url 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años wrap-ansi 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años wrappy 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años y18n 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años yallist 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años yaml 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años yargs 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años yargs-parser 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años .yarn-integrity 30f7226d9a first commit %!s(int64=2) %!d(string=hace) años golf/tge - Gogs: Simplico Git Service

暂无描述

util-empty-scalar-position.js 871B

123456789101112131415161718192021222324252627282930
  1. 'use strict';
  2. function emptyScalarPosition(offset, before, pos) {
  3. if (before) {
  4. if (pos === null)
  5. pos = before.length;
  6. for (let i = pos - 1; i >= 0; --i) {
  7. let st = before[i];
  8. switch (st.type) {
  9. case 'space':
  10. case 'comment':
  11. case 'newline':
  12. offset -= st.source.length;
  13. continue;
  14. }
  15. // Technically, an empty scalar is immediately after the last non-empty
  16. // node, but it's more useful to place it after any whitespace.
  17. st = before[++i];
  18. while (st?.type === 'space') {
  19. offset += st.source.length;
  20. st = before[++i];
  21. }
  22. break;
  23. }
  24. }
  25. return offset;
  26. }
  27. exports.emptyScalarPosition = emptyScalarPosition;