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

Function tryGetClassByExtendingIdentifier

test/fixtures/snapshot/typescript.js:138914–138916  ·  view source on GitHub ↗

Get `C` given `N` if `N` is in the position `class C extends N` or `class C extends foo.N` where `N` is an identifier.

(node)

Source from the content-addressed store, hash-verified

138912 }
138913 /** Get `C` given `N` if `N` is in the position `class C extends N` or `class C extends foo.N` where `N` is an identifier. */
138914 function tryGetClassByExtendingIdentifier(node) {
138915 return ts.tryGetClassExtendingExpressionWithTypeArguments(ts.climbPastPropertyAccess(node).parent);
138916 }
138917 /**
138918 * If we are just looking for implementations and this is a property access expression, we need to get the
138919 * symbol of the local type of the symbol the property is being accessed on. This is because our search

Callers 1

addConstructorReferencesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected