MCPcopy Index your code
hub / github.com/BloombergGraphics/whatiscode / parsePropertyFunction

Function parsePropertyFunction

scripts/libs/esprima.js:2349–2364  ·  view source on GitHub ↗
(node, paramInfo)

Source from the content-addressed store, hash-verified

2347 // 11.1.5 Object Initialiser
2348
2349 function parsePropertyFunction(node, paramInfo) {
2350 var previousStrict, body;
2351
2352 previousStrict = strict;
2353 body = parseFunctionSourceElements();
2354
2355 if (strict && paramInfo.firstRestricted) {
2356 tolerateUnexpectedToken(paramInfo.firstRestricted, paramInfo.message);
2357 }
2358 if (strict && paramInfo.stricted) {
2359 tolerateUnexpectedToken(paramInfo.stricted, paramInfo.message);
2360 }
2361
2362 strict = previousStrict;
2363 return node.finishFunctionExpression(null, paramInfo.params, paramInfo.defaults, body);
2364 }
2365
2366 function parsePropertyMethodFunction() {
2367 var params, method, node = new Node();

Callers 2

tryParseMethodDefinitionFunction · 0.85

Calls 2

tolerateUnexpectedTokenFunction · 0.85

Tested by

no test coverage detected