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

Function isImplementation

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

Source from the content-addressed store, hash-verified

138884 }
138885 Core.getIntersectingMeaningFromDeclarations = getIntersectingMeaningFromDeclarations;
138886 function isImplementation(node) {
138887 return !!(node.flags & 16777216 /* NodeFlags.Ambient */) ? !(ts.isInterfaceDeclaration(node) || ts.isTypeAliasDeclaration(node)) :
138888 (ts.isVariableLike(node) ? ts.hasInitializer(node) :
138889 ts.isFunctionLikeDeclaration(node) ? !!node.body :
138890 ts.isClassLike(node) || ts.isModuleOrEnumDeclaration(node));
138891 }
138892 function getReferenceEntriesForShorthandPropertyAssignment(node, checker, addReference) {
138893 var refSymbol = checker.getSymbolAtLocation(node);
138894 var shorthandSymbol = checker.getShorthandAssignmentValueSymbol(refSymbol.valueDeclaration);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected