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

Function parseJSDocTypeNameWithNamespace

test/fixtures/snapshot/typescript.js:38127–38144  ·  view source on GitHub ↗
(nested)

Source from the content-addressed store, hash-verified

38125 return finishNode(typedefTag, start, end);
38126 }
38127 function parseJSDocTypeNameWithNamespace(nested) {
38128 var pos = scanner.getTokenPos();
38129 if (!ts.tokenIsIdentifierOrKeyword(token())) {
38130 return undefined;
38131 }
38132 var typeNameOrNamespaceName = parseJSDocIdentifierName();
38133 if (parseOptional(24 /* SyntaxKind.DotToken */)) {
38134 var body = parseJSDocTypeNameWithNamespace(/*nested*/ true);
38135 var jsDocNamespaceNode = factory.createModuleDeclaration(
38136 /*decorators*/ undefined,
38137 /*modifiers*/ undefined, typeNameOrNamespaceName, body, nested ? 4 /* NodeFlags.NestedNamespace */ : undefined);
38138 return finishNode(jsDocNamespaceNode, pos);
38139 }
38140 if (nested) {
38141 typeNameOrNamespaceName.isInJSDocNamespace = true;
38142 }
38143 return typeNameOrNamespaceName;
38144 }
38145 function parseCallbackTagParameters(indent) {
38146 var pos = getNodePos();
38147 var child;

Callers 2

parseTypedefTagFunction · 0.85
parseCallbackTagFunction · 0.85

Calls 4

parseJSDocIdentifierNameFunction · 0.85
parseOptionalFunction · 0.85
finishNodeFunction · 0.85
tokenFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…