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

Function arrayElementCouldBeVariableDeclaration

test/fixtures/snapshot/typescript.js:150705–150710  ·  view source on GitHub ↗
(expression, checker)

Source from the content-addressed store, hash-verified

150703 }
150704 }
150705 function arrayElementCouldBeVariableDeclaration(expression, checker) {
150706 var identifier = ts.isIdentifier(expression) ? expression :
150707 ts.isAssignmentExpression(expression, /*excludeCompoundAssignment*/ true) && ts.isIdentifier(expression.left) ? expression.left :
150708 undefined;
150709 return !!identifier && !checker.getSymbolAtLocation(identifier);
150710 }
150711 function isPossiblyPartOfCommaSeperatedInitializer(node) {
150712 switch (node.kind) {
150713 case 79 /* SyntaxKind.Identifier */:

Callers 1

makeChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected