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

Function createIdentifier

test/fixtures/snapshot/typescript.js:22965–22975  ·  view source on GitHub ↗
(text, typeArguments, originalKeywordKind)

Source from the content-addressed store, hash-verified

22963 }
22964 // @api
22965 function createIdentifier(text, typeArguments, originalKeywordKind) {
22966 var node = createBaseIdentifier(text, originalKeywordKind);
22967 if (typeArguments) {
22968 // NOTE: we do not use `setChildren` here because typeArguments in an identifier do not contribute to transformations
22969 node.typeArguments = createNodeArray(typeArguments);
22970 }
22971 if (node.originalKeywordKind === 132 /* SyntaxKind.AwaitKeyword */) {
22972 node.transformFlags |= 16777216 /* TransformFlags.ContainsPossibleTopLevelAwait */;
22973 }
22974 return node;
22975 }
22976 // @api
22977 function updateIdentifier(node, typeArguments) {
22978 return node.typeArguments !== typeArguments

Callers 15

updateIdentifierFunction · 0.85
getDefaultTagNameFunction · 0.85
createJSDocTemplateTagFunction · 0.85
createJSDocTypedefTagFunction · 0.85
createJSDocParameterTagFunction · 0.85
createJSDocPropertyTagFunction · 0.85
createJSDocCallbackTagFunction · 0.85
createJSDocAugmentsTagFunction · 0.85
createJSDocImplementsTagFunction · 0.85
createJSDocSeeTagFunction · 0.85

Calls 9

createBaseIdentifierFunction · 0.85
createNodeArrayFunction · 0.85
getNodePosFunction · 0.85
internIdentifierFunction · 0.85
nextTokenWithoutCheckFunction · 0.85
finishNodeFunction · 0.85
parseErrorAtCurrentTokenFunction · 0.85
createMissingNodeFunction · 0.85
tokenFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…