MCPcopy
hub / github.com/t4t5/sweetalert / next

Function next

docs/assets/js/add-preview-buttons.js:50654–50673  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

50652 throw error;
50653 },
50654 next = function next(c) {
50655
50656 // If a c parameter is provided, verify that it matches the current character.
50657
50658 if (c && c !== ch) {
50659 error("Expected " + renderChar(c) + " instead of " + renderChar(ch));
50660 }
50661
50662 // Get the next character. When there are no more characters,
50663 // return the empty string.
50664
50665 ch = text.charAt(at);
50666 at++;
50667 columnNumber++;
50668 if (ch === '\n' || ch === '\r' && peek() !== '\n') {
50669 lineNumber++;
50670 columnNumber = 0;
50671 }
50672 return ch;
50673 },
50674 peek = function peek() {
50675
50676 // Get the next character without consuming it or

Callers 12

identifierFunction · 0.70
numberFunction · 0.70
stringFunction · 0.70
inlineCommentFunction · 0.70
blockCommentFunction · 0.70
commentFunction · 0.70
whiteFunction · 0.70
wordFunction · 0.70
arrayFunction · 0.70
objectFunction · 0.70
parseHelperClassRangesFunction · 0.70

Calls 3

errorFunction · 0.70
renderCharFunction · 0.70
peekFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…