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

Function isWriteAccessForReference

test/fixtures/snapshot/typescript.js:137259–137262  ·  view source on GitHub ↗

A node is considered a writeAccess iff it is a name of a declaration or a target of an assignment

(node)

Source from the content-addressed store, hash-verified

137257 FindAllReferences.getTextSpanOfEntry = getTextSpanOfEntry;
137258 /** A node is considered a writeAccess iff it is a name of a declaration or a target of an assignment */
137259 function isWriteAccessForReference(node) {
137260 var decl = ts.getDeclarationFromName(node);
137261 return !!decl && declarationIsWriteAccess(decl) || node.kind === 88 /* SyntaxKind.DefaultKeyword */ || ts.isWriteAccess(node);
137262 }
137263 /** Whether a reference, `node`, is a definition of the `target` symbol */
137264 function isDeclarationOfSymbol(node, target) {
137265 var _a;

Callers 2

toReferenceEntryFunction · 0.85
toHighlightSpanFunction · 0.85

Calls 1

declarationIsWriteAccessFunction · 0.85

Tested by

no test coverage detected