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

Function isImplementationExpression

test/fixtures/snapshot/typescript.js:138495–138508  ·  view source on GitHub ↗

* Returns true if this is an expression that can be considered an implementation

(node)

Source from the content-addressed store, hash-verified

138493 * Returns true if this is an expression that can be considered an implementation
138494 */
138495 function isImplementationExpression(node) {
138496 switch (node.kind) {
138497 case 212 /* SyntaxKind.ParenthesizedExpression */:
138498 return isImplementationExpression(node.expression);
138499 case 214 /* SyntaxKind.ArrowFunction */:
138500 case 213 /* SyntaxKind.FunctionExpression */:
138501 case 205 /* SyntaxKind.ObjectLiteralExpression */:
138502 case 226 /* SyntaxKind.ClassExpression */:
138503 case 204 /* SyntaxKind.ArrayLiteralExpression */:
138504 return true;
138505 default:
138506 return false;
138507 }
138508 }
138509 /**
138510 * Determines if the parent symbol occurs somewhere in the child's ancestry. If the parent symbol
138511 * is an interface, determines if some ancestor of the child symbol extends or inherits from it.

Callers 1

addIfImplementationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected