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

Function matchKeyword

lib/assets/javascripts/JSXTransformer.js:5215–5218  ·  view source on GitHub ↗
(keyword, contextual)

Source from the content-addressed store, hash-verified

5213 // Return true if the next token matches the specified keyword
5214
5215 function matchKeyword(keyword, contextual) {
5216 var expectedType = contextual ? Token.Identifier : Token.Keyword;
5217 return lookahead.type === expectedType && lookahead.value === keyword;
5218 }
5219
5220 // Return true if the next token matches the specified contextual keyword
5221

Callers 15

matchContextualKeywordFunction · 0.85
matchYieldFunction · 0.85
parseArrayInitialiserFunction · 0.85
parsePrimaryExpressionFunction · 0.85
parseUnaryExpressionFunction · 0.85
parseObjectTypeFunction · 0.85
parseExportSpecifierFunction · 0.85
parseExportDeclarationFunction · 0.85
parseImportDeclarationFunction · 0.85
parseIfStatementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected