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

Function setValueDeclaration

test/fixtures/snapshot/typescript.js:16723–16732  ·  view source on GitHub ↗
(symbol, node)

Source from the content-addressed store, hash-verified

16721 }
16722 ts.isSpecialPropertyDeclaration = isSpecialPropertyDeclaration;
16723 function setValueDeclaration(symbol, node) {
16724 var valueDeclaration = symbol.valueDeclaration;
16725 if (!valueDeclaration ||
16726 !(node.flags & 16777216 /* NodeFlags.Ambient */ && !(valueDeclaration.flags & 16777216 /* NodeFlags.Ambient */)) &&
16727 (isAssignmentDeclaration(valueDeclaration) && !isAssignmentDeclaration(node)) ||
16728 (valueDeclaration.kind !== node.kind && isEffectiveModuleDeclaration(valueDeclaration))) {
16729 // other kinds of value declarations take precedence over modules and assignment declarations
16730 symbol.valueDeclaration = node;
16731 }
16732 }
16733 ts.setValueDeclaration = setValueDeclaration;
16734 function isFunctionSymbol(symbol) {
16735 if (!symbol || !symbol.valueDeclaration) {

Callers

nothing calls this directly

Calls 2

isAssignmentDeclarationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…