MCPcopy Create free account
hub / github.com/angular/angular / getFiles

Function getFiles

packages/language-service/test/references_and_rename_spec.ts:1689–1711  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1687 // Note: this is a factory because `createModuleAndProjectWithDeclarations` adds the
1688 // generated module to the passed-in files.
1689 const getFiles = () => ({
1690 'dir.ts': `
1691 import {Directive, Input, input} from '@angular/core';
1692
1693 @Directive({
1694 selector: '[readonly-dir]',
1695 standalone: false,
1696 })
1697 export class ReadonlyDir {
1698 readonly signalInput = input<string>();
1699 @Input() readonly decoratorInput: string|undefined;
1700 }`,
1701 'app.ts': `
1702 import {Component} from '@angular/core';
1703
1704 @Component({
1705 template: '<div readonly-dir [signalInput]="title" [decoratorInput]="title"></div>',
1706 standalone: false,
1707 })
1708 export class AppCmp {
1709 title = 'title';
1710 }`,
1711 });
1712
1713 beforeEach(() => {
1714 env = LanguageServiceTestEnv.setup();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected