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

Function isDeclarationWithExplicitTypeAnnotation

test/fixtures/snapshot/typescript.js:70048–70052  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

70046 return isLengthPushOrUnshift || isElementAssignment;
70047 }
70048 function isDeclarationWithExplicitTypeAnnotation(node) {
70049 return (ts.isVariableDeclaration(node) || ts.isPropertyDeclaration(node) || ts.isPropertySignature(node) || ts.isParameter(node)) &&
70050 !!(ts.getEffectiveTypeAnnotationNode(node) ||
70051 ts.isInJSFile(node) && ts.hasInitializer(node) && node.initializer && ts.isFunctionExpressionOrArrowFunction(node.initializer) && ts.getEffectiveReturnTypeNode(node.initializer));
70052 }
70053 function getExplicitTypeOfSymbol(symbol, diagnostic) {
70054 if (symbol.flags & (16 /* SymbolFlags.Function */ | 8192 /* SymbolFlags.Method */ | 32 /* SymbolFlags.Class */ | 512 /* SymbolFlags.ValueModule */)) {
70055 return getTypeOfSymbol(symbol);

Callers 1

getExplicitTypeOfSymbolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…