MCPcopy Create free account
hub / github.com/dchester/jsonpath / parseVariableStatement

Function parseVariableStatement

jsonpath.js:2707–2717  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2705 }
2706
2707 function parseVariableStatement() {
2708 var declarations;
2709
2710 expectKeyword('var');
2711
2712 declarations = parseVariableDeclarationList();
2713
2714 consumeSemicolon();
2715
2716 return delegate.createVariableDeclaration(declarations, 'var');
2717 }
2718
2719 // kind may be `const` or `let`
2720 // Both are experimental and not in the specification yet.

Callers 1

parseStatementFunction · 0.85

Calls 3

expectKeywordFunction · 0.85
consumeSemicolonFunction · 0.85

Tested by

no test coverage detected