_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular/packages/core/testing/BUILD.bazel_0_844
load("//tools:defaults.bzl", "generate_api_docs", "ng_module") package(default_visibility = ["//visibility:public"]) exports_files(["package.json"]) ng_module( name = "testing", srcs = glob( ["**/*.ts"], ), deps = [ "//packages:types", "//packages/compiler", "//package...
{ "end_byte": 844, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/BUILD.bazel" }
angular/packages/core/testing/index.ts_0_481
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // This file is not used to build this module. It is only used during editing // by the TypeScript language service ...
{ "end_byte": 481, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/index.ts" }
angular/packages/core/testing/public_api.ts_0_433
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /// <reference types="jasmine" /> /** * @module * @description * Entry point for all public APIs of this package...
{ "end_byte": 433, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/public_api.ts" }
angular/packages/core/testing/src/test_bed_compiler.ts_0_3740
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {ResourceLoader} from '@angular/compiler'; import { ApplicationInitStatus, ɵINTERNAL_APPLICATION_ERROR_HA...
{ "end_byte": 3740, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/test_bed_compiler.ts" }
angular/packages/core/testing/src/test_bed_compiler.ts_3742_12264
e originalComponentResolutionQueue: Map<Type<any>, Component> | null = null; // Testing module configuration private declarations: Type<any>[] = []; private imports: Type<any>[] = []; private providers: Provider[] = []; private schemas: any[] = []; // Queues of components/directives/pipes that should be r...
{ "end_byte": 12264, "start_byte": 3742, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/test_bed_compiler.ts" }
angular/packages/core/testing/src/test_bed_compiler.ts_12268_20074
ype<any>, template: string): void { const def = (type as any)[NG_COMP_DEF]; const hasStyleUrls = (): boolean => { const metadata = this.resolvers.component.resolve(type)! as Component; return !!metadata.styleUrl || !!metadata.styleUrls?.length; }; const overrideStyleUrls = !!def && !ɵisCompo...
{ "end_byte": 20074, "start_byte": 12268, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/test_bed_compiler.ts" }
angular/packages/core/testing/src/test_bed_compiler.ts_20078_27325
this.overriddenModules.size > 0) { // Module overrides (via `TestBed.overrideModule`) might affect scopes that were previously // calculated and stored in `transitiveCompileScopes`. If module overrides are present, // collect all affected modules and reset scopes to force their re-calculation. c...
{ "end_byte": 27325, "start_byte": 20078, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/test_bed_compiler.ts" }
angular/packages/core/testing/src/test_bed_compiler.ts_27329_36325
ype<any> | TestingModuleOverride | null): void { // If this is a component with async metadata (i.e. a component with a `@defer` block // in a template) - store it for future processing. this.maybeRegisterComponentWithAsyncMetadata(type); const component = this.resolvers.component.resolve(type); if...
{ "end_byte": 36325, "start_byte": 27329, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/test_bed_compiler.ts" }
angular/packages/core/testing/src/test_bed_compiler.ts_36329_45565
in reverse order so the field's original value is restored correctly (in // case there were multiple overrides for the same field). forEachRight(this.defCleanupOps, (op: CleanupOperation) => { op.object[op.fieldName] = op.originalValue; }); // Restore initial component/directive/pipe defs thi...
{ "end_byte": 45565, "start_byte": 36329, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/test_bed_compiler.ts" }
angular/packages/core/testing/src/test_bed_compiler.ts_45567_47573
roviderField(provider, 'provide') || provider; } function isModuleWithProviders(value: any): value is ModuleWithProviders<any> { return value.hasOwnProperty('ngModule'); } function forEachRight<T>(values: T[], fn: (value: T, idx: number) => void): void { for (let idx = values.length - 1; idx >= 0; idx--) { fn...
{ "end_byte": 47573, "start_byte": 45567, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/test_bed_compiler.ts" }
angular/packages/core/testing/src/testing.ts_0_1129
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * @module * @description * Entry point for all public APIs of the core/testing package. */ export * from '....
{ "end_byte": 1129, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/testing.ts" }
angular/packages/core/testing/src/testing_internal.ts_0_266
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ export {inject} from './test_bed'; export * from './logger';
{ "end_byte": 266, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/testing_internal.ts" }
angular/packages/core/testing/src/metadata_override.ts_0_374
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * Type used for modifications to metadata * * @publicApi */ export type MetadataOverride<T> = { add?: Part...
{ "end_byte": 374, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/metadata_override.ts" }
angular/packages/core/testing/src/async.ts_0_1329
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * Wraps a test function in an asynchronous test zone. The test will automatically * complete when all asynchron...
{ "end_byte": 1329, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/async.ts" }
angular/packages/core/testing/src/application_error_handler.ts_0_1205
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {ErrorHandler, inject, NgZone, Injectable} from '@angular/core'; export const RETHROW_APPLICATION_ERRORS_DEF...
{ "end_byte": 1205, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/application_error_handler.ts" }
angular/packages/core/testing/src/defer.ts_0_3378
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { ɵCONTAINER_HEADER_OFFSET as CONTAINER_HEADER_OFFSET, ɵDeferBlockDetails as DeferBlockDetails, ɵDeferB...
{ "end_byte": 3378, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/defer.ts" }
angular/packages/core/testing/src/metadata_overrider.ts_0_4230
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {ɵstringify as stringify} from '@angular/core'; import {MetadataOverride} from './metadata_override'; type ...
{ "end_byte": 4230, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/metadata_overrider.ts" }
angular/packages/core/testing/src/fake_async.ts_0_5631
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ const _Zone: any = typeof Zone !== 'undefined' ? Zone : null; const fakeAsyncTestModule = _Zone && _Zone[_Zone.__symb...
{ "end_byte": 5631, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/fake_async.ts" }
angular/packages/core/testing/src/test_hooks.ts_0_1850
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * Public Test Library for unit testing Angular applications. Assumes that you are running * with Jasmine, Moch...
{ "end_byte": 1850, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/test_hooks.ts" }
angular/packages/core/testing/src/test_bed.ts_0_5908
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // The formatter and CI disagree on how this import statement should be formatted. Both try to keep // it on one lin...
{ "end_byte": 5908, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/test_bed.ts" }
angular/packages/core/testing/src/test_bed.ts_5909_14354
stBedImpl implements TestBed { private static _INSTANCE: TestBedImpl | null = null; static get INSTANCE(): TestBedImpl { return (TestBedImpl._INSTANCE = TestBedImpl._INSTANCE || new TestBedImpl()); } /** * Teardown options that have been configured at the environment level. * Used as a fallback if n...
{ "end_byte": 14354, "start_byte": 5909, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/test_bed.ts" }
angular/packages/core/testing/src/test_bed.ts_14358_23221
lize the environment for testing with a compiler factory, a PlatformRef, and an * angular module. These are common to every test in the suite. * * This may only be called once, to set up the common providers for the current test * suite on the current platform. If you absolutely need to change the providers...
{ "end_byte": 23221, "start_byte": 14358, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/test_bed.ts" }
angular/packages/core/testing/src/test_bed.ts_23225_31773
<T>(type: Type<T>): ComponentFixture<T> { const testComponentRenderer = this.inject(TestComponentRenderer); const rootElId = `root${_nextRootElementId++}`; testComponentRenderer.insertRootElement(rootElId); if (getAsyncClassMetadataFn(type)) { throw new Error( `Component '${type.name}' ha...
{ "end_byte": 31773, "start_byte": 23225, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/test_bed.ts" }
angular/packages/core/testing/src/test_bed.ts_31774_32241
withModule( moduleDef: TestModuleMetadata, fn?: Function | null, ): (() => any) | InjectSetupWrapper { if (fn) { // Not using an arrow function to preserve context passed from call site return function (this: unknown) { const testBed = TestBedImpl.INSTANCE; if (moduleDef) { testBed.con...
{ "end_byte": 32241, "start_byte": 31774, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/test_bed.ts" }
angular/packages/core/testing/src/logger.ts_0_609
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Injectable} from '@angular/core'; @Injectable() export class Log<T = string> { logItems: T[]; construc...
{ "end_byte": 609, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/logger.ts" }
angular/packages/core/testing/src/styling.ts_0_2437
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * Returns element classes in form of a stable (sorted) string. * * @param element HTML Element. * @returns R...
{ "end_byte": 2437, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/styling.ts" }
angular/packages/core/testing/src/test_bed_common.ts_0_4123
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { InjectionToken, SchemaMetadata, ɵDeferBlockBehavior as DeferBlockBehavior, } from '@angular/core'; /...
{ "end_byte": 4123, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/test_bed_common.ts" }
angular/packages/core/testing/src/resolvers.ts_0_3504
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { Component, Directive, NgModule, Pipe, Type, ɵReflectionCapabilities as ReflectionCapabilities, ...
{ "end_byte": 3504, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/resolvers.ts" }
angular/packages/core/testing/src/component_fixture.ts_0_8762
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { ApplicationRef, ChangeDetectorRef, ComponentRef, ɵChangeDetectionScheduler, ɵNotificationSource, ...
{ "end_byte": 8762, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/src/component_fixture.ts" }
angular/packages/core/rxjs-interop/PACKAGE.md_0_114
Includes utilities related to using the RxJS library in conjunction with Angular's signal-based reactivity system.
{ "end_byte": 114, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/PACKAGE.md" }
angular/packages/core/rxjs-interop/BUILD.bazel_0_887
load("//tools:defaults.bzl", "generate_api_docs", "ng_module") package(default_visibility = ["//visibility:public"]) exports_files(["package.json"]) ng_module( name = "rxjs-interop", srcs = glob( [ "*.ts", "src/**/*.ts", ], ), deps = [ "//packages:types...
{ "end_byte": 887, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/BUILD.bazel" }
angular/packages/core/rxjs-interop/index.ts_0_233
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ export * from './src/index';
{ "end_byte": 233, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/index.ts" }
angular/packages/core/rxjs-interop/public_api.ts_0_396
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * @module * @description * Entry point for all public APIs of this package. */ export * from './src/index'; ...
{ "end_byte": 396, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/public_api.ts" }
angular/packages/core/rxjs-interop/test/output_from_observable_spec.ts_0_5017
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {EventEmitter} from '@angular/core/public_api'; import {TestBed} from '@angular/core/testing'; import {Behavi...
{ "end_byte": 5017, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/test/output_from_observable_spec.ts" }
angular/packages/core/rxjs-interop/test/pending_until_event_spec.ts_0_8143
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {EnvironmentInjector, ɵPendingTasks as PendingTasks, ApplicationRef} from '@angular/core'; import { Behavior...
{ "end_byte": 8143, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/test/pending_until_event_spec.ts" }
angular/packages/core/rxjs-interop/test/to_signal_spec.ts_0_589
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { ChangeDetectionStrategy, Component, computed, EnvironmentInjector, Injector, runInInjectionCont...
{ "end_byte": 589, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/test/to_signal_spec.ts" }
angular/packages/core/rxjs-interop/test/to_signal_spec.ts_591_9316
describe('toSignal()', () => { it( 'should reflect the last emitted value of an Observable', test(() => { const counter$ = new BehaviorSubject(0); const counter = toSignal(counter$); expect(counter()).toBe(0); counter$.next(1); expect(counter()).toBe(1); counter$.next(3); ...
{ "end_byte": 9316, "start_byte": 591, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/test/to_signal_spec.ts" }
angular/packages/core/rxjs-interop/test/to_signal_spec.ts_9320_11276
describe('type tests', () => { const src = new Subject<any>(); it( 'should allow empty array initial values', test(() => { const res: Signal<string[]> = toSignal(src as Observable<string[]>, {initialValue: []}); expect(res).toBeDefined(); }), ); it( 'should allow...
{ "end_byte": 11276, "start_byte": 9320, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/test/to_signal_spec.ts" }
angular/packages/core/rxjs-interop/test/output_to_observable_spec.ts_0_4420
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {EventEmitter, output} from '@angular/core'; import {TestBed} from '@angular/core/testing'; import {Subject} ...
{ "end_byte": 4420, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/test/output_to_observable_spec.ts" }
angular/packages/core/rxjs-interop/test/to_observable_spec.ts_0_4621
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { Component, computed, createEnvironmentInjector, EnvironmentInjector, Injector, Signal, signal...
{ "end_byte": 4621, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/test/to_observable_spec.ts" }
angular/packages/core/rxjs-interop/test/rx_resource_spec.ts_0_1695
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {of, Observable} from 'rxjs'; import {TestBed} from '@angular/core/testing'; import {ApplicationRef, Injector...
{ "end_byte": 1695, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/test/rx_resource_spec.ts" }
angular/packages/core/rxjs-interop/test/BUILD.bazel_0_852
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "ts_library") load("//tools/circular_dependency_test:index.bzl", "circular_dependency_test") circular_dependency_test( name = "circular_deps_test", entry_point = "angular/packages/core/rxjs-interop/index.mjs", deps = ["//packages/cor...
{ "end_byte": 852, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/test/BUILD.bazel" }
angular/packages/core/rxjs-interop/test/take_until_destroyed_spec.ts_0_2190
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {DestroyRef, EnvironmentInjector, Injector, runInInjectionContext} from '@angular/core'; import {BehaviorSubj...
{ "end_byte": 2190, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/test/take_until_destroyed_spec.ts" }
angular/packages/core/rxjs-interop/src/rx_resource.ts_0_1716
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { assertInInjectionContext, ResourceOptions, resource, ResourceLoaderParams, ResourceRef, } from '@...
{ "end_byte": 1716, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/src/rx_resource.ts" }
angular/packages/core/rxjs-interop/src/output_from_observable.ts_0_2542
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { assertInInjectionContext, DestroyRef, inject, OutputOptions, OutputRef, OutputRefSubscription, ...
{ "end_byte": 2542, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/src/output_from_observable.ts" }
angular/packages/core/rxjs-interop/src/take_until_destroyed.ts_0_1277
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {assertInInjectionContext, DestroyRef, inject} from '@angular/core'; import {MonoTypeOperatorFunction, Observ...
{ "end_byte": 1277, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/src/take_until_destroyed.ts" }
angular/packages/core/rxjs-interop/src/output_to_observable.ts_0_1011
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {OutputRef, ɵgetOutputDestroyRef} from '@angular/core'; import {Observable} from 'rxjs'; /** * Converts an ...
{ "end_byte": 1011, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/src/output_to_observable.ts" }
angular/packages/core/rxjs-interop/src/to_observable.ts_0_2469
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { assertInInjectionContext, DestroyRef, effect, inject, Injector, Signal, untracked, ɵmicrota...
{ "end_byte": 2469, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/src/to_observable.ts" }
angular/packages/core/rxjs-interop/src/to_signal.ts_0_5059
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { assertInInjectionContext, assertNotInReactiveContext, computed, DestroyRef, inject, Injector, ...
{ "end_byte": 5059, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/src/to_signal.ts" }
angular/packages/core/rxjs-interop/src/to_signal.ts_5060_9130
port function toSignal<T, U = undefined>( source: Observable<T> | Subscribable<T>, options?: ToSignalOptions<T | U> & {initialValue?: U}, ): Signal<T | U> { ngDevMode && assertNotInReactiveContext( toSignal, 'Invoking `toSignal` causes new subscriptions every time. ' + 'Consider moving `to...
{ "end_byte": 9130, "start_byte": 5060, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/src/to_signal.ts" }
angular/packages/core/rxjs-interop/src/index.ts_0_684
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ export {outputFromObservable} from './output_from_observable'; export {outputToObservable} from './output_to_observa...
{ "end_byte": 684, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/src/index.ts" }
angular/packages/core/rxjs-interop/src/pending_until_event.ts_0_1912
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {assertInInjectionContext, PendingTasks, inject, Injector} from '@angular/core'; import {MonoTypeOperatorFunct...
{ "end_byte": 1912, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/rxjs-interop/src/pending_until_event.ts" }
angular/packages/core/schematics/rollup.config.js_0_1313
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ const {nodeResolve} = require('@rollup/plugin-node-resolve'); const commonjs = require('@rollup/plugin-commonjs'); /...
{ "end_byte": 1313, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/rollup.config.js" }
angular/packages/core/schematics/BUILD.bazel_0_3335
load("//tools:defaults.bzl", "pkg_npm") load("@npm//@bazel/rollup:index.bzl", "rollup_bundle") exports_files([ "tsconfig.json", "migrations.json", "collection.json", ]) pkg_npm( name = "npm_package", srcs = [ "collection.json", "migrations.json", "package.json", "//...
{ "end_byte": 3335, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/BUILD.bazel" }
angular/packages/core/schematics/migrations/signal-migration/test/golden.txt_0_8602
@@@@@@ any_test.ts @@@@@@ // tslint:disable import {DebugElement, input} from '@angular/core'; import {TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; function it(msg: string, fn: () => void) {} const harness = { query<T>(v: T): DebugElement { return null!; }, }; class S...
{ "end_byte": 8602, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden.txt" }
angular/packages/core/schematics/migrations/signal-migration/test/golden.txt_8604_16860
<span>{{test()}}</span> @@@@@@ external_templates.ts @@@@@@ // tslint:disable import {Component, input} from '@angular/core'; @Component({ templateUrl: './external_templates.html', selector: 'with-template', }) export class WithTemplate { readonly test = input(true); } @@@@@@ getters.ts @@@@@@ // tslint:disab...
{ "end_byte": 16860, "start_byte": 8604, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden.txt" }
angular/packages/core/schematics/migrations/signal-migration/test/golden.txt_16862_25030
@Component({ jit: true, template: '{{test()}}', }) class JitTrueComponent { readonly test = input(true); } @Component({ jit: true, templateUrl: './jit_true_component_external_tmpl.html', }) class JitTrueComponentExternalTmpl { readonly test = input(true); } @@@@@@ loop_labels.ts @@@@@@ // tslint:disable ...
{ "end_byte": 25030, "start_byte": 16862, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden.txt" }
angular/packages/core/schematics/migrations/signal-migration/test/golden.txt_25032_32997
class MyComp { // TODO: Skipped for migration because: // A jasmine `spyOn` call spies on this field. This breaks with signals. @Input() myInput = () => {}; } spyOn<MyComp>(new MyComp(), 'myInput').and.returnValue(); @@@@@@ template.html @@@@@@ <span class="mat-mdc-optgroup-label" role="presentation"> <span ...
{ "end_byte": 32997, "start_byte": 25032, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden.txt" }
angular/packages/core/schematics/migrations/signal-migration/test/golden.txt_32999_33085
testNotMutated() { let fixture: boolean; fixture = this.notMutated(); } }
{ "end_byte": 33085, "start_byte": 32999, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden.txt" }
angular/packages/core/schematics/migrations/signal-migration/test/migration_spec.ts_0_3270
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {absoluteFrom} from '@angular/compiler-cli/src/ngtsc/file_system'; import {initMockFileSystem} from '@angular...
{ "end_byte": 3270, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/migration_spec.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden_best_effort.txt_0_8598
@@@@@@ any_test.ts @@@@@@ // tslint:disable import {DebugElement, input} from '@angular/core'; import {TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; function it(msg: string, fn: () => void) {} const harness = { query<T>(v: T): DebugElement { return null!; }, }; class S...
{ "end_byte": 8598, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden_best_effort.txt" }
angular/packages/core/schematics/migrations/signal-migration/test/golden_best_effort.txt_8600_16665
@HostBinding('[attr.bla]') readonly myInput = input('initial'); } const SHARED = { '(click)': 'id()', '(mousedown)': 'id2()', }; @Component({ template: '', host: SHARED, }) class HostBindingsShared { readonly id = input(false); } @Component({ template: '', host: SHARED, }) class HostBindingsShared2 {...
{ "end_byte": 16665, "start_byte": 8600, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden_best_effort.txt" }
angular/packages/core/schematics/migrations/signal-migration/test/golden_best_effort.txt_16667_24861
@Component({template: ''}) class ModifierScenarios { readonly alreadyReadonly = input(true); protected readonly ImProtected = input(true); protected readonly ImProtectedAndReadonly = input(true); @CustomDecorator() protected readonly usingCustomDecorator = input(true); } @@@@@@ mutate.ts @@@@@@ // tslint:disab...
{ "end_byte": 24861, "start_byte": 16667, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden_best_effort.txt" }
angular/packages/core/schematics/migrations/signal-migration/test/golden_best_effort.txt_24863_29724
@Component({ template: ` <input [(ngModel)]="inputA()" /> <div (click)="inputB = false()"> </div> `, host: { '(click)': 'inputC = true()', }, }) class TwoWayBinding { readonly inputA = input(''); readonly inputB = input(true); readonly inputC = input(false); readonly inputD = input(false...
{ "end_byte": 29724, "start_byte": 24863, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden_best_effort.txt" }
angular/packages/core/schematics/migrations/signal-migration/test/BUILD.bazel_0_4635
load("@npm//@angular/build-tooling/bazel/integration:index.bzl", "integration_test") load("//packages/core/schematics/migrations/signal-migration/test/ts-versions:index.bzl", "TS_VERSIONS") load("//tools:defaults.bzl", "jasmine_node_test", "nodejs_binary", "ts_library") ts_library( name = "test_runners_lib", t...
{ "end_byte": 4635, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/BUILD.bazel" }
angular/packages/core/schematics/migrations/signal-migration/test/batch_runner.ts_0_3858
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * @fileoverview Executes the given migration phase in batch mode. * * I.e. The tsconfig of the project is upd...
{ "end_byte": 3858, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/batch_runner.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden_test_runner.ts_0_1441
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * @fileoverview Verifies that the contents of the given migration * directory match the given golden. */ imp...
{ "end_byte": 1441, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden_test_runner.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/with_getters.ts_0_447
// tslint:disable import {Input} from '@angular/core'; export class WithSettersAndGetters { @Input() set onlySetter(newValue: any) { this._bla = newValue; if (newValue === 0) { console.log('test'); } } private _bla: any; @Input() get accessor(): string { return ''; } set accesso...
{ "end_byte": 447, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/with_getters.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/index_access_input.ts_0_221
// tslint:disable import {Component, Input} from '@angular/core'; @Component({template: ''}) class IndexAccessInput { @Input() items: string[] = []; bla() { const {items} = this; items[0].charAt(0); } }
{ "end_byte": 221, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/index_access_input.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/external_templates.html_0_22
<span>{{test}}</span>
{ "end_byte": 22, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/external_templates.html" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/shared_incompatible_scopes.ts_0_818
// tslint:disable import {Input, Directive, Component} from '@angular/core'; @Directive() class SomeDir { @Input({required: true}) bla!: RegExp; } @Component({ template: ``, }) export class ScopeMismatchTest { eachScopeRedeclared() { const regexs: RegExp[] = []; if (global.console) { const dir: ...
{ "end_byte": 818, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/shared_incompatible_scopes.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/non_null_assertions.ts_0_388
// tslint:disable import {Input, Directive} from '@angular/core'; @Directive() export class NonNullAssertions { // We can't remove `undefined` from the type here. It's unclear // whether it was just used as a workaround for required inputs, or // it was actually meant to be part of the type. @Input({required:...
{ "end_byte": 388, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/non_null_assertions.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/temporary_variables.ts_0_354
// tslint:disable import {Directive, Input} from '@angular/core'; export class OtherCmp { @Input() name = false; } @Directive() export class MyComp { @Input() name = ''; other: OtherCmp = null!; click() { if (this.name) { console.error(this.name); } if (this.other.name) { console.er...
{ "end_byte": 354, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/temporary_variables.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/modifier_tests.ts_0_412
// tslint:disable import {Component, Input} from '@angular/core'; function CustomDecorator() { return (a: any, b: any) => {}; } @Component({template: ''}) class ModifierScenarios { @Input() readonly alreadyReadonly = true; @Input() protected ImProtected = true; @Input() protected readonly ImProtectedAndReado...
{ "end_byte": 412, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/modifier_tests.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/required-no-explicit-type.ts_0_486
// tslint:disable import {Input} from '@angular/core'; import {COMPLEX_VAR} from './required-no-explicit-type-extra'; export const CONST = {field: true}; export class RequiredNoExplicitType { @Input({required: true}) someInputNumber = 0; @Input({required: true}) someInput = true; @Input({required: true}) withC...
{ "end_byte": 486, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/required-no-explicit-type.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/template_ng_if.ts_0_524
// tslint:disable import {Component, Input} from '@angular/core'; @Component({ template: ` @if (first) { {{first}} } <ng-template [ngIf]="second"> {{second}} </ng-template> <div *ngIf="third"> {{third}} </div> <div *ngIf="fourth"> {{notTheInput}} </div> ...
{ "end_byte": 524, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/template_ng_if.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/template_concat_string.ts_0_185
// tslint:disable import {Component, Input} from '@angular/core'; @Component({ template: '<h3>' + '{{bla}}' + '</h3>', }) export class WithConcatTemplate { @Input() bla = true; }
{ "end_byte": 185, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/template_concat_string.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/mutate.ts_0_279
// tslint:disable import {Input} from '@angular/core'; export class TestCmp { @Input() shared: {x: string} = {x: ''}; bla() { this.shared.x = this.doSmth(this.shared); this.doSmth(this.shared); } doSmth(v: typeof this.shared): string { return v.x; } }
{ "end_byte": 279, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/mutate.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/existing_signal_import.ts_0_166
// tslint:disable import {input, Input} from '@angular/core'; class ExistingSignalImport { signalInput = input<boolean>(); @Input() thisCanBeMigrated = true; }
{ "end_byte": 166, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/existing_signal_import.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/constructor_initializations.ts_0_326
// tslint:disable import {Input, Directive} from '@angular/core'; @Directive() export class MyComp { @Input() firstName: string; constructor() { // TODO: Consider initializations inside the constructor. // Those are not migrated right now though, as they are writes. this.firstName = 'Initial value'; ...
{ "end_byte": 326, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/constructor_initializations.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/manual_instantiations_external.ts_0_149
// tslint:disable import {Component, Input} from '@angular/core'; @Component({}) export class ManualInstantiation { @Input() bla: string = ''; }
{ "end_byte": 149, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/manual_instantiations_external.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/derived_class_meta_input_alias.ts_0_246
// tslint:disable import {Input, Directive} from '@angular/core'; @Directive() class Base { // should not be migrated. @Input() bla = true; } @Directive({ inputs: [{name: 'bla', alias: 'matDerivedBla'}], }) class Derived extends Base {}
{ "end_byte": 246, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/derived_class_meta_input_alias.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/inline_template.ts_0_235
// tslint:disable import {Component, Input} from '@angular/core'; @Component({ template: ` <div *someTemplateDir [style.ok]="justify"> </div> `, }) export class InlineTmpl { @Input() justify: 'start' | 'end' = 'end'; }
{ "end_byte": 235, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/inline_template.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/spy_on.ts_0_164
// tslint:disable import {Input} from '@angular/core'; class MyComp { @Input() myInput = () => {}; } spyOn<MyComp>(new MyComp(), 'myInput').and.returnValue();
{ "end_byte": 164, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/spy_on.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/both_input_imports.ts_0_276
// tslint:disable import {input, Input} from '@angular/core'; class BothInputImported { @Input() decoratorInput = true; signalInput = input<boolean>(); @Input() thisCanBeMigrated = true; __makeDecoratorInputNonMigratable() { this.decoratorInput = false; } }
{ "end_byte": 276, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/both_input_imports.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/transform_functions.ts_0_761
// tslint:disable import {Input} from '@angular/core'; import {COMPLEX_VAR} from './required-no-explicit-type-extra'; function x(v: string | undefined): string | undefined { return v; } export class TransformFunctions { // We can check this, and expect `as any` due to transform incompatibility. @Input({require...
{ "end_byte": 761, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/transform_functions.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/jit_true_components.ts_0_527
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // tslint:disable import {Component, Input} from '@angular/core'; @Component({ jit: true, template: '{{test}}'...
{ "end_byte": 527, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/jit_true_components.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/catalyst_test.ts_0_472
// tslint:disable import {Input} from '@angular/core'; // google3/javascript/angular2/testing/catalyst/fake_async // ^^ this allows the advisor to even consider this file. function it(msg: string, fn: () => void) {} function bootstrapTemplate(tmpl: string, inputs: unknown) {} class MyComp { @Input() hello = ''; }...
{ "end_byte": 472, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/catalyst_test.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/optional_inputs.ts_0_168
// tslint:disable import {Directive, Input} from '@angular/core'; @Directive() class OptionalInput { @Input() bla?: string; @Input() isLegacyHttpOnly? = false; }
{ "end_byte": 168, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/optional_inputs.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/ternary_narrowing.ts_0_584
// tslint:disable import {Component, Input} from '@angular/core'; @Component({ template: ` {{ narrowed ? narrowed.substring(0, 1) : 'Empty' }} {{ justChecked ? 'true' : 'false' }} {{ other?.safeRead ? other.safeRead : 'Empty' }} {{ other?.safeRead2 ? other?.safeRead2 : 'Empty' }} `, }) export cla...
{ "end_byte": 584, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/ternary_narrowing.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/host_bindings.ts_0_834
// tslint:disable import {Component, Input, HostBinding} from '@angular/core'; @Component({ template: '', host: { '[id]': 'id', '[nested]': 'nested.id', '[receiverNarrowing]': 'receiverNarrowing ? receiverNarrowing.id', // normal narrowing is irrelevant as we don't type check host bindings. }, }...
{ "end_byte": 834, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/host_bindings.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/catalyst_async_test.ts_0_467
// tslint:disable import {Input} from '@angular/core'; // google3/javascript/angular2/testing/catalyst/async // ^^ this allows the advisor to even consider this file. function it(msg: string, fn: () => void) {} function bootstrapTemplate(tmpl: string, inputs: unknown) {} class MyComp { @Input() hello = ''; } it(...
{ "end_byte": 467, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/catalyst_async_test.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/template_writes.ts_0_359
// tslint:disable import {Component, Input} from '@angular/core'; @Component({ template: ` <input [(ngModel)]="inputA" /> <div (click)="inputB = false"> </div> `, host: { '(click)': 'inputC = true', }, }) class TwoWayBinding { @Input() inputA = ''; @Input() inputB = true; @Input() inputC...
{ "end_byte": 359, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/template_writes.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/imports.ts_0_160
// tslint:disable // prettier-ignore import { Directive, Input } from '@angular/core'; @Directive() export class TestCmp { @Input() disabled = false; }
{ "end_byte": 160, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/imports.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/derived_class_second_separate.ts_0_367
// tslint:disable import {Input} from '@angular/core'; import {DerivedExternalWithInput} from './derived_class_separate_file'; class Derived extends DerivedExternalWithInput { // this should be incompatible, because the final superclass // within its own batch unit, detected a write that should // propagate to ...
{ "end_byte": 367, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/derived_class_second_separate.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/catalyst_test_partial.ts_0_430
// tslint:disable import {Component, Input} from '@angular/core'; // @ts-ignore import {} from 'google3/javascript/angular2/testing/catalyst/fake_async'; function renderComponent(inputs: Partial<TestableSecondaryRangePicker> = {}) {} @Component({ standalone: false, jit: true, template: '<bla [(ngModel)]="inco...
{ "end_byte": 430, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/catalyst_test_partial.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/manual_instantiations.ts_0_117
// tslint:disable import {ManualInstantiation} from './manual_instantiations_external'; new ManualInstantiation();
{ "end_byte": 117, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/manual_instantiations.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/safe_property_reads.ts_0_417
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // tslint:disable import {Component, Input} from '@angular/core'; @Component({ template: ` {{bla?.myInput}} ...
{ "end_byte": 417, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/safe_property_reads.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/required.ts_0_109
// tslint:disable import {Input} from '@angular/core'; class Required { @Input() simpleInput!: string; }
{ "end_byte": 109, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/required.ts" }
angular/packages/core/schematics/migrations/signal-migration/test/golden-test/external_templates.ts_0_211
// tslint:disable import {Component, Input} from '@angular/core'; @Component({ templateUrl: './external_templates.html', selector: 'with-template', }) export class WithTemplate { @Input() test = true; }
{ "end_byte": 211, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/migrations/signal-migration/test/golden-test/external_templates.ts" }