* Check whether the requested property access is valid. * Returns true if node is a valid property access, and false otherwise. * @param node The node to be checked. * @param isSuper True if the access is from `super.`. * @param type The type of the object whose p
(node, isSuper, writing, type, prop, reportError)
| 74334 | * @param prop The symbol for the property being accessed. |
| 74335 | */ |
| 74336 | function checkPropertyAccessibility(node, isSuper, writing, type, prop, reportError) { |
| 74337 | if (reportError === void 0) { reportError = true; } |
| 74338 | var errorNode = !reportError ? undefined : |
| 74339 | node.kind === 161 /* SyntaxKind.QualifiedName */ ? node.right : |
| 74340 | node.kind === 200 /* SyntaxKind.ImportType */ ? node : |
| 74341 | node.kind === 203 /* SyntaxKind.BindingElement */ && node.propertyName ? node.propertyName : node.name; |
| 74342 | return checkPropertyAccessibilityAtLocation(node, isSuper, writing, type, prop, errorNode); |
| 74343 | } |
| 74344 | /** |
| 74345 | * Check whether the requested property can be accessed at the requested location. |
| 74346 | * Returns true if node is a valid property access, and false otherwise. |
no test coverage detected