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

Function checkPrivateIdentifier

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

Source from the content-addressed store, hash-verified

46585 // The binder visits every node, so this is a good place to check for
46586 // the reserved private name (there is only one)
46587 function checkPrivateIdentifier(node) {
46588 if (node.escapedText === "#constructor") {
46589 // Report error only if there are no parse errors in file
46590 if (!file.parseDiagnostics.length) {
46591 file.bindDiagnostics.push(createDiagnosticForNode(node, ts.Diagnostics.constructor_is_a_reserved_word, ts.declarationNameToString(node)));
46592 }
46593 }
46594 }
46595 function checkStrictModeBinaryExpression(node) {
46596 if (inStrictMode && ts.isLeftHandSideExpression(node.left) && ts.isAssignmentOperator(node.operatorToken.kind)) {
46597 // ECMA 262 (Annex C) The identifier eval or arguments may not appear as the LeftHandSideExpression of an

Callers 1

bindWorkerFunction · 0.85

Calls 2

createDiagnosticForNodeFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected