(node)
| 16936 | || tag.parent.parent === hostNode; |
| 16937 | } |
| 16938 | function getNextJSDocCommentLocation(node) { |
| 16939 | var parent = node.parent; |
| 16940 | if (parent.kind === 296 /* SyntaxKind.PropertyAssignment */ || |
| 16941 | parent.kind === 271 /* SyntaxKind.ExportAssignment */ || |
| 16942 | parent.kind === 167 /* SyntaxKind.PropertyDeclaration */ || |
| 16943 | parent.kind === 238 /* SyntaxKind.ExpressionStatement */ && node.kind === 206 /* SyntaxKind.PropertyAccessExpression */ || |
| 16944 | parent.kind === 247 /* SyntaxKind.ReturnStatement */ || |
| 16945 | getNestedModuleDeclaration(parent) || |
| 16946 | ts.isBinaryExpression(node) && node.operatorToken.kind === 63 /* SyntaxKind.EqualsToken */) { |
| 16947 | return parent; |
| 16948 | } |
| 16949 | // Try to recognize this pattern when node is initializer of variable declaration and JSDoc comments are on containing variable statement. |
| 16950 | // /** |
| 16951 | // * @param {number} name |
| 16952 | // * @returns {number} |
| 16953 | // */ |
| 16954 | // var x = function(name) { return name.length; } |
| 16955 | else if (parent.parent && |
| 16956 | (getSingleVariableOfVariableStatement(parent.parent) === node || |
| 16957 | ts.isBinaryExpression(parent) && parent.operatorToken.kind === 63 /* SyntaxKind.EqualsToken */)) { |
| 16958 | return parent.parent; |
| 16959 | } |
| 16960 | else if (parent.parent && parent.parent.parent && |
| 16961 | (getSingleVariableOfVariableStatement(parent.parent.parent) || |
| 16962 | getSingleInitializerOfVariableStatementOrPropertyDeclaration(parent.parent.parent) === node || |
| 16963 | getSourceOfDefaultedAssignment(parent.parent.parent))) { |
| 16964 | return parent.parent.parent; |
| 16965 | } |
| 16966 | } |
| 16967 | ts.getNextJSDocCommentLocation = getNextJSDocCommentLocation; |
| 16968 | /** Does the opposite of `getJSDocParameterTags`: given a JSDoc parameter, finds the parameter corresponding to it. */ |
| 16969 | function getParameterSymbolFromJSDoc(node) { |
no test coverage detected