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

Function getDeclarationContainer

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

Source from the content-addressed store, hash-verified

55681 return resolutionResults.pop();
55682 }
55683 function getDeclarationContainer(node) {
55684 return ts.findAncestor(ts.getRootDeclaration(node), function (node) {
55685 switch (node.kind) {
55686 case 254 /* SyntaxKind.VariableDeclaration */:
55687 case 255 /* SyntaxKind.VariableDeclarationList */:
55688 case 270 /* SyntaxKind.ImportSpecifier */:
55689 case 269 /* SyntaxKind.NamedImports */:
55690 case 268 /* SyntaxKind.NamespaceImport */:
55691 case 267 /* SyntaxKind.ImportClause */:
55692 return false;
55693 default:
55694 return true;
55695 }
55696 }).parent;
55697 }
55698 function getTypeOfPrototypeProperty(prototype) {
55699 // TypeScript 1.0 spec (April 2014): 8.4
55700 // Every class automatically contains a static property member named 'prototype',

Calls

no outgoing calls

Tested by

no test coverage detected