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

Function quickInfoSkeleton

packages/language-service/test/quick_info_spec.ts:13–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11import {createModuleAndProjectWithDeclarations, LanguageServiceTestEnv, Project} from '../testing';
12
13function quickInfoSkeleton(): {[fileName: string]: string} {
14 return {
15 'app.ts': `
16 import {Component, Directive, EventEmitter, Input, NgModule, Output, Pipe, PipeTransform, model, signal} from '@angular/core';
17 import {CommonModule} from '@angular/common';
18
19 export interface Address {
20 streetName: string;
21 }
22
23 /** The most heroic being. */
24 export interface Hero {
25 id: number;
26 name: string;
27 address?: Address;
28 }
29
30 /**
31 * This Component provides the \`test-comp\` selector.
32 */
33 /*BeginTestComponent*/ @Component({
34 selector: 'test-comp',
35 template: '<div>Testing: {{name}}</div>',
36 standalone: false,
37 })
38 export class TestComponent {
39 @Input('tcName') name!: string;
40 @Output('test') testEvent!: EventEmitter<string>;
41 } /*EndTestComponent*/
42
43 @Component({
44 selector: 'app-cmp',
45 templateUrl: './app.html',
46 standalone: false,
47 })
48 export class AppCmp {
49 hero!: Hero;
50 heroes!: Hero[];
51 readonlyHeroes!: ReadonlyArray<Readonly<Hero>>;
52 /**
53 * This is the title of the \`AppCmp\` Component.
54 */
55 title!: string;
56 constNames!: [{readonly name: 'name'}];
57 constNamesOptional?: [{readonly name: 'name'}];
58 birthday!: Date;
59 anyValue!: any;
60 myClick(event: any) {}
61 setTitle(newTitle: string) {}
62 trackByFn!: any;
63 name!: any;
64 signalValue: string|undefined;
65 someObject = {
66 someProp: 'prop',
67 someSignal: signal<number>(0),
68 someMethod: (): number => 1,
69 nested: {
70 helloWorld: () => {

Callers 1

quick_info_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…