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

Function componentSource

packages/language-service/test/compiler_spec.ts:137–146  ·  view source on GitHub ↗
(isExported: boolean)

Source from the content-addressed store, hash-verified

135 // is stale, even though it was not able to fully understand the import during the first pass.
136
137 const componentSource = (isExported: boolean): string => `
138 import {Component} from '@angular/core';
139
140 @Component({
141 selector: 'some-cmp',
142 template: 'Not important',
143 standalone: false,
144 })
145 ${isExported ? 'export' : ''} class Cmp {}
146 `;
147
148 const env = LanguageServiceTestEnv.setup();
149 const project = env.addProject('test', {

Callers 1

compiler_spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…