MCPcopy Index your code
hub / github.com/angular/angular-cli / getTsSource

Function getTsSource

packages/schematics/angular/utility/ast-utils_spec.ts:24–26  ·  view source on GitHub ↗
(path: string, content: string)

Source from the content-addressed store, hash-verified

22} from './ast-utils';
23
24function getTsSource(path: string, content: string): ts.SourceFile {
25 return ts.createSourceFile(path, content, ts.ScriptTarget.Latest, true);
26}
27
28function applyChanges(path: string, content: string, changes: Change[]): string {
29 const tree = new HostTree();

Callers 2

ast-utils_spec.tsFile · 0.85
changeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected