(project: Project, file: OpenBuffer)
| 81 | }); |
| 82 | |
| 83 | function getMemberMethodNames(project: Project, file: OpenBuffer): string[] { |
| 84 | const sf = project.getSourceFile('app.ts')!; |
| 85 | const node = findTightestNode(sf, file.cursor)!; |
| 86 | expect(ts.isClassDeclaration(node.parent)).toBe(true); |
| 87 | return collectMemberMethods(node.parent as ts.ClassDeclaration, project.getTypeChecker()) |
| 88 | .map((m) => m.name.getText()) |
| 89 | .sort(); |
| 90 | } |
| 91 | }); |
| 92 | |
| 93 | describe('AST method', () => { |
no test coverage detected
searching dependent graphs…