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

Function getModifiers

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

Source from the content-addressed store, hash-verified

141518 return node.kind === 305 /* SyntaxKind.SourceFile */ ? ts.createTextSpanFromRange(node) : ts.createTextSpanFromNode(node, curSourceFile);
141519 }
141520 function getModifiers(node) {
141521 if (node.parent && node.parent.kind === 254 /* SyntaxKind.VariableDeclaration */) {
141522 node = node.parent;
141523 }
141524 return ts.getNodeModifiers(node);
141525 }
141526 function getFunctionOrClassName(node) {
141527 var parent = node.parent;
141528 if (node.name && ts.getFullWidth(node.name) > 0) {

Callers 2

convertToTreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…