MCPcopy Create free account
hub / github.com/nodejs/node / getLeftOfPropertyAccessOrQualifiedName

Function getLeftOfPropertyAccessOrQualifiedName

test/fixtures/snapshot/typescript.js:159436–159438  ·  view source on GitHub ↗
(propertyAccessOrQualifiedName)

Source from the content-addressed store, hash-verified

159434 return ts.isPropertyAccessExpression(propertyAccessOrQualifiedName) ? propertyAccessOrQualifiedName.name : propertyAccessOrQualifiedName.right;
159435 }
159436 function getLeftOfPropertyAccessOrQualifiedName(propertyAccessOrQualifiedName) {
159437 return ts.isPropertyAccessExpression(propertyAccessOrQualifiedName) ? propertyAccessOrQualifiedName.expression : propertyAccessOrQualifiedName.left;
159438 }
159439 function doChangeNamedToNamespaceOrDefault(sourceFile, program, changes, toConvert, shouldUseDefault) {
159440 if (shouldUseDefault === void 0) { shouldUseDefault = getShouldUseDefault(program, toConvert.parent); }
159441 var checker = program.getTypeChecker();

Callers 1

doChangeNamespaceToNamedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected