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

Function parseConstLetDeclaration

jsonpath.js:2723–2735  ·  view source on GitHub ↗
(kind)

Source from the content-addressed store, hash-verified

2721 // see http://wiki.ecmascript.org/doku.php?id=harmony:const
2722 // and http://wiki.ecmascript.org/doku.php?id=harmony:let
2723 function parseConstLetDeclaration(kind) {
2724 var declarations, startToken;
2725
2726 startToken = lookahead;
2727
2728 expectKeyword(kind);
2729
2730 declarations = parseVariableDeclarationList(kind);
2731
2732 consumeSemicolon();
2733
2734 return delegate.markEnd(delegate.createVariableDeclaration(declarations, kind), startToken);
2735 }
2736
2737 // 12.3 Empty Statement
2738

Callers 1

parseSourceElementFunction · 0.85

Calls 3

expectKeywordFunction · 0.85
consumeSemicolonFunction · 0.85

Tested by

no test coverage detected