MCPcopy Index your code
hub / github.com/angular/angular / getMemberMethodNames

Function getMemberMethodNames

packages/language-service/test/ts_utils_spec.ts:83–90  ·  view source on GitHub ↗
(project: Project, file: OpenBuffer)

Source from the content-addressed store, hash-verified

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', () => {

Callers 1

ts_utils_spec.tsFile · 0.85

Calls 6

findTightestNodeFunction · 0.90
collectMemberMethodsFunction · 0.90
mapMethod · 0.80
getTypeCheckerMethod · 0.80
getTextMethod · 0.80
getSourceFileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…