MCPcopy Index your code
hub / github.com/nodejs/node / checkForInOrForOfVariableDeclaration

Function checkForInOrForOfVariableDeclaration

test/fixtures/snapshot/typescript.js:82939–82946  ·  view source on GitHub ↗
(iterationStatement)

Source from the content-addressed store, hash-verified

82937 }
82938 }
82939 function checkForInOrForOfVariableDeclaration(iterationStatement) {
82940 var variableDeclarationList = iterationStatement.initializer;
82941 // checkGrammarForInOrForOfStatement will check that there is exactly one declaration.
82942 if (variableDeclarationList.declarations.length >= 1) {
82943 var decl = variableDeclarationList.declarations[0];
82944 checkVariableDeclaration(decl);
82945 }
82946 }
82947 function checkRightHandSideOfForOf(statement) {
82948 var use = statement.awaitModifier ? 15 /* IterationUse.ForAwaitOf */ : 13 /* IterationUse.ForOf */;
82949 return checkIteratedTypeOrElementType(use, checkNonNullExpression(statement.expression), undefinedType, statement.expression);

Callers 2

checkForOfStatementFunction · 0.85
checkForInStatementFunction · 0.85

Calls 1

checkVariableDeclarationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…