`extractor`, `this.extractor`, either one behind `!` or parentheses.
(node: ts.Expression)
| 49 | |
| 50 | /** `extractor`, `this.extractor`, either one behind `!` or parentheses. */ |
| 51 | function isExtractorReceiver(node: ts.Expression): boolean { |
| 52 | while (ts.isNonNullExpression(node) || ts.isParenthesizedExpression(node)) node = node.expression; |
| 53 | if (ts.isIdentifier(node)) return node.text === 'extractor'; |
| 54 | return ts.isPropertyAccessExpression(node) && |
| 55 | node.expression.kind === ts.SyntaxKind.ThisKeyword && |
| 56 | node.name.text === 'extractor'; |
| 57 | } |
| 58 | |
| 59 | function membersRead(): Set<string> { |
| 60 | const read = new Set<string>(); |