MCPcopy
hub / github.com/MixLabPro/comfyui-mixlab-nodes / parsePattern

Function parsePattern

webApp/p5_export/p5-widget/main.bundle.js:37877–37890  ·  view source on GitHub ↗
(params, kind)

Source from the content-addressed store, hash-verified

37875 }
37876
37877 function parsePattern(params, kind) {
37878 if (match('[')) {
37879 return parseArrayPattern(params, kind);
37880 } else if (match('{')) {
37881 return parseObjectPattern(params, kind);
37882 } else if (matchKeyword('let')) {
37883 if (kind === 'const' || kind === 'let') {
37884 tolerateUnexpectedToken(lookahead, Messages.UnexpectedToken);
37885 }
37886 }
37887
37888 params.push(lookahead);
37889 return parseVariableIdentifier(kind);
37890 }
37891
37892 function parsePatternWithDefault(params, kind) {
37893 var startToken = lookahead, pattern, previousAllowYield, right;

Callers 4

parsePatternWithDefaultFunction · 0.85
parseVariableDeclarationFunction · 0.85
parseLexicalBindingFunction · 0.85
parseCatchClauseFunction · 0.85

Calls 7

matchFunction · 0.85
parseArrayPatternFunction · 0.85
parseObjectPatternFunction · 0.85
matchKeywordFunction · 0.85
tolerateUnexpectedTokenFunction · 0.85
parseVariableIdentifierFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected