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

Function getDeclarationWithTypeAnnotation

test/fixtures/snapshot/typescript.js:53907–53909  ·  view source on GitHub ↗
(symbol, enclosingDeclaration)

Source from the content-addressed store, hash-verified

53905 return initial;
53906 }
53907 function getDeclarationWithTypeAnnotation(symbol, enclosingDeclaration) {
53908 return symbol.declarations && ts.find(symbol.declarations, function (s) { return !!ts.getEffectiveTypeAnnotationNode(s) && (!enclosingDeclaration || !!ts.findAncestor(s, function (n) { return n === enclosingDeclaration; })); });
53909 }
53910 function existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type) {
53911 return !(ts.getObjectFlags(type) & 4 /* ObjectFlags.Reference */) || !ts.isTypeReferenceNode(existing) || ts.length(existing.typeArguments) >= getMinTypeArgumentCount(type.target.typeParameters);
53912 }

Calls 1

findMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…