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

Function isConstVariable

test/fixtures/snapshot/typescript.js:71467–71469  ·  view source on GitHub ↗
(symbol)

Source from the content-addressed store, hash-verified

71465 }
71466 }
71467 function isConstVariable(symbol) {
71468 return symbol.flags & 3 /* SymbolFlags.Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 2 /* NodeFlags.Const */) !== 0;
71469 }
71470 /** remove undefined from the annotated type of a parameter when there is an initializer (that doesn't include undefined) */
71471 function removeOptionalityFromDeclaredType(declaredType, declaration) {
71472 if (pushTypeResolution(declaration.symbol, 2 /* TypeSystemPropertyName.DeclaredType */)) {

Callers 6

serializeSymbolWorkerFunction · 0.85
isConstantReferenceFunction · 0.85
narrowTypeFunction · 0.85
checkIdentifierFunction · 0.85

Calls 1

Tested by

no test coverage detected