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

Function getClass

packages/compiler-cli/src/ngtsc/core/test/compiler_spec.ts:435–442  ·  view source on GitHub ↗
(sf: ts.SourceFile, name: string)

Source from the content-addressed store, hash-verified

433});
434
435function getClass(sf: ts.SourceFile, name: string): ClassDeclaration<ts.ClassDeclaration> {
436 for (const stmt of sf.statements) {
437 if (isNamedClassDeclaration(stmt) && stmt.name.text === name) {
438 return stmt;
439 }
440 }
441 throw new Error(`Class ${name} not found in file: ${sf.fileName}: ${sf.text}`);
442}

Callers 1

compiler_spec.tsFile · 0.70

Calls 1

isNamedClassDeclarationFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…