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

Function createBaseIdentifier

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

Source from the content-addressed store, hash-verified

22943 // Identifiers
22944 //
22945 function createBaseIdentifier(text, originalKeywordKind) {
22946 if (originalKeywordKind === undefined && text) {
22947 originalKeywordKind = ts.stringToToken(text);
22948 }
22949 if (originalKeywordKind === 79 /* SyntaxKind.Identifier */) {
22950 originalKeywordKind = undefined;
22951 }
22952 var node = baseFactory.createBaseIdentifierNode(79 /* SyntaxKind.Identifier */);
22953 node.originalKeywordKind = originalKeywordKind;
22954 node.escapedText = ts.escapeLeadingUnderscores(text);
22955 return node;
22956 }
22957 function createBaseGeneratedIdentifier(text, autoGenerateFlags) {
22958 var node = createBaseIdentifier(text, /*originalKeywordKind*/ undefined);
22959 node.autoGenerateFlags = autoGenerateFlags;

Callers 2

createIdentifierFunction · 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…