MCPcopy
hub / github.com/inlife/nexrender / expect

Function expect

packages/nexrender-action-lottie/lib/jsx/esprima.jsx:2351–2356  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

2349
2350
2351 function expect(value) {
2352 var token = lex();
2353 if (token.type !== Token.Punctuator || token.value !== value) {
2354 throwUnexpectedToken(token);
2355 }
2356 }
2357
2358 function expectCommaSeparator() {
2359 var token;

Callers 15

expectCommaSeparatorFunction · 0.85
parseArrayPatternFunction · 0.85
parsePropertyPatternFunction · 0.85
parseObjectPatternFunction · 0.85
parseArrayInitializerFunction · 0.85
parseObjectPropertyKeyFunction · 0.85
tryParseMethodDefinitionFunction · 0.85
parseObjectInitializerFunction · 0.85
parseGroupExpressionFunction · 0.85
parseArgumentsFunction · 0.85
parseNonComputedMemberFunction · 0.85
parseComputedMemberFunction · 0.85

Calls 2

lexFunction · 0.85
throwUnexpectedTokenFunction · 0.85

Tested by

no test coverage detected