MCPcopy Index your code
hub / github.com/reactjs/react-rails / expect

Function expect

lib/assets/javascripts/JSXTransformer.js:5182–5187  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

5180 // If not, an exception will be thrown.
5181
5182 function expect(value) {
5183 var token = lex();
5184 if (token.type !== Token.Punctuator || token.value !== value) {
5185 throwUnexpected(token);
5186 }
5187 }
5188
5189 // Expect the next token to match the specified keyword.
5190 // If not, an exception will be thrown.

Callers 15

parseArrayInitialiserFunction · 0.85
parseObjectPropertyKeyFunction · 0.85
parseObjectPropertyFunction · 0.85
parseObjectInitialiserFunction · 0.85
parseGroupExpressionFunction · 0.85
parseArgumentsFunction · 0.85
parseNonComputedMemberFunction · 0.85
parseComputedMemberFunction · 0.85
parseBlockFunction · 0.85

Calls 2

lexFunction · 0.85
throwUnexpectedFunction · 0.85

Tested by

no test coverage detected