(expression)
| 56371 | && ts.forEachChildRecursively(expression, function (n) { return isMatchingReference(thisProperty, n); }); |
| 56372 | } |
| 56373 | function isDeclarationInConstructor(expression) { |
| 56374 | var thisContainer = ts.getThisContainer(expression, /*includeArrowFunctions*/ false); |
| 56375 | // Properties defined in a constructor (or base constructor, or javascript constructor function) don't get undefined added. |
| 56376 | // Function expressions that are assigned to the prototype count as methods. |
| 56377 | return thisContainer.kind === 171 /* SyntaxKind.Constructor */ || |
| 56378 | thisContainer.kind === 256 /* SyntaxKind.FunctionDeclaration */ || |
| 56379 | (thisContainer.kind === 213 /* SyntaxKind.FunctionExpression */ && !ts.isPrototypePropertyAssignment(thisContainer.parent)); |
| 56380 | } |
| 56381 | function getConstructorDefinedThisAssignmentTypes(types, declarations) { |
| 56382 | ts.Debug.assert(types.length === declarations.length); |
| 56383 | return types.filter(function (_, i) { |
no outgoing calls
no test coverage detected