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

Function isSpecialPropertyDeclaration

test/fixtures/snapshot/typescript.js:16716–16721  ·  view source on GitHub ↗
(expr)

Source from the content-addressed store, hash-verified

16714 }
16715 ts.isPrototypePropertyAssignment = isPrototypePropertyAssignment;
16716 function isSpecialPropertyDeclaration(expr) {
16717 return isInJSFile(expr) &&
16718 expr.parent && expr.parent.kind === 238 /* SyntaxKind.ExpressionStatement */ &&
16719 (!ts.isElementAccessExpression(expr) || isLiteralLikeElementAccess(expr)) &&
16720 !!ts.getJSDocTypeTag(expr.parent);
16721 }
16722 ts.isSpecialPropertyDeclaration = isSpecialPropertyDeclaration;
16723 function setValueDeclaration(symbol, node) {
16724 var valueDeclaration = symbol.valueDeclaration;

Callers

nothing calls this directly

Calls 2

isInJSFileFunction · 0.85

Tested by

no test coverage detected