code: function getContainerNode(node) {
          while (true) {
              node = node.parent;
              if (!node) {
                  return undefined;
              }
              switch (node.kind) {
                  case 256 /* SourceFile */:
                  case 147 /* MethodDeclaration */:
                  case 146 /* MethodSignature */:
                  case 220 /* FunctionDeclaration */:
                  case 179 /* FunctionExpression */:
                  case 149 /* GetAccessor */:
                  case 150 /* SetAccessor */:
                  case 221 /* ClassDeclaration */:
                  case 222 /* InterfaceDeclaration */:
                  case 224 /* EnumDeclaration */:
                  case 225 /* ModuleDeclaration */:
                      return node;
              }
          }
      }
docs: /* @internal