(node)
| 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 |
no test coverage detected