_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular/packages/core/schematics/test/control_flow_migration_spec.ts_74978_82115
describe('ngSwitch', () => { it('should migrate an inline template', async () => { writeFile( '/comp.ts', ` import {Component} from '@angular/core'; import {ngSwitch, ngSwitchCase} from '@angular/common'; @Component({ template: \`<div [ngSwitch]="testOpts">` ...
{ "end_byte": 82115, "start_byte": 74978, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/control_flow_migration_spec.ts" }
angular/packages/core/schematics/test/control_flow_migration_spec.ts_82121_86552
it('should handle cases with binding', async () => { writeFile( '/comp.ts', ` import {Component} from '@angular/core'; import {ngSwitch, ngSwitchCase} from '@angular/common'; @Component({ template: \`<div [ngSwitch]="testOpts">` + `<ng-template [ngSwitc...
{ "end_byte": 86552, "start_byte": 82121, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/control_flow_migration_spec.ts" }
angular/packages/core/schematics/test/control_flow_migration_spec.ts_86556_94070
describe('nested structures', () => { it('should migrate an inline template with nested control flow structures and no line breaks', async () => { writeFile( '/comp.ts', ` import {Component} from '@angular/core'; import {NgIf} from '@angular/common'; @Component({ ...
{ "end_byte": 94070, "start_byte": 86556, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/control_flow_migration_spec.ts" }
angular/packages/core/schematics/test/control_flow_migration_spec.ts_94076_100437
it('should migrate a simple for inside an if', async () => { writeFile( '/comp.ts', ` import {Component} from '@angular/core'; import {NgIf} from '@angular/common'; @Component({ imports: [NgFor, NgIf], templateUrl: './comp.html' }) class...
{ "end_byte": 100437, "start_byte": 94076, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/control_flow_migration_spec.ts" }
angular/packages/core/schematics/test/control_flow_migration_spec.ts_100443_104746
it('should migrate an inline template with if, for loops, and switches', async () => { writeFile( '/comp.ts', ` import {Component} from '@angular/core'; import {NgIf, NgFor} from '@angular/common'; interface Item { id: number; text: string; } ...
{ "end_byte": 104746, "start_byte": 100443, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/control_flow_migration_spec.ts" }
angular/packages/core/schematics/test/control_flow_migration_spec.ts_104752_110636
it('long file', async () => { writeFile( '/comp.ts', ` import {Component} from '@angular/core'; import {NgIf, NgFor} from '@angular/common'; interface Item { id: number; text: string; } @Component({ imports: [NgFor, NgIf], ...
{ "end_byte": 110636, "start_byte": 104752, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/control_flow_migration_spec.ts" }
angular/packages/core/schematics/test/control_flow_migration_spec.ts_110640_113132
describe('error handling', () => { it('should log template migration errors to the console', async () => { writeFile( '/comp.ts', ` import {Component} from '@angular/core'; import {NgIf} from '@angular/common'; @Component({ imports: [NgIf], template...
{ "end_byte": 113132, "start_byte": 110640, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/control_flow_migration_spec.ts" }
angular/packages/core/schematics/test/control_flow_migration_spec.ts_113136_121013
describe('template', () => { it('should migrate a root level template thats not used in control flow', async () => { writeFile( '/comp.ts', ` import {Component} from '@angular/core'; import {NgIf} from '@angular/common'; @Component({ selector: 'declare-comp',...
{ "end_byte": 121013, "start_byte": 113136, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/control_flow_migration_spec.ts" }
angular/packages/core/schematics/test/control_flow_migration_spec.ts_121019_128316
it('should move templates after they were migrated to new syntax', async () => { writeFile( '/comp.ts', ` import {Component} from '@angular/core'; import {NgIf} from '@angular/common'; @Component({ selector: 'declare-comp', templateUrl: 'comp.html', ...
{ "end_byte": 128316, "start_byte": 121019, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/control_flow_migration_spec.ts" }
angular/packages/core/schematics/test/control_flow_migration_spec.ts_128322_135182
it('should handle OR logic in ngIf else case', async () => { writeFile( '/comp.ts', ` import {Component} from '@angular/core'; import {NgIf} from '@angular/common'; @Component({ templateUrl: './comp.html' }) class Comp { show = false; ...
{ "end_byte": 135182, "start_byte": 128322, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/control_flow_migration_spec.ts" }
angular/packages/core/schematics/test/control_flow_migration_spec.ts_135186_142250
be('formatting', () => { it('should reformat else if', async () => { writeFile( '/comp.ts', ` import {Component} from '@angular/core'; import {NgIf} from '@angular/common'; @Component({ selector: 'declare-comp', templateUrl: 'comp.html', }) ...
{ "end_byte": 142250, "start_byte": 135186, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/control_flow_migration_spec.ts" }
angular/packages/core/schematics/test/control_flow_migration_spec.ts_142256_149792
ould reformat self closing tags', async () => { writeFile( '/comp.ts', ` import {Component} from '@angular/core'; import {NgIf} from '@angular/common'; @Component({ selector: 'declare-comp', templateUrl: 'comp.html', }) class DeclareComp...
{ "end_byte": 149792, "start_byte": 142256, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/control_flow_migration_spec.ts" }
angular/packages/core/schematics/test/control_flow_migration_spec.ts_149798_153494
ould indent multi-line attribute strings as single quotes to the right place', async () => { writeFile( '/comp.ts', ` import {Component} from '@angular/core'; import {NgIf} from '@angular/common'; @Component({ templateUrl: './comp.html' }) class C...
{ "end_byte": 153494, "start_byte": 149798, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/control_flow_migration_spec.ts" }
angular/packages/core/schematics/test/control_flow_migration_spec.ts_153498_161178
be('imports', () => { it('should remove common module imports post migration', async () => { writeFile( '/comp.ts', [ `import {Component} from '@angular/core';`, `import {NgIf} from '@angular/common';`, `@Component({`, ` imports: [NgIf],`, ` ...
{ "end_byte": 161178, "start_byte": 153498, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/control_flow_migration_spec.ts" }
angular/packages/core/schematics/test/control_flow_migration_spec.ts_161184_167947
ould remove common module post migration if using external template', async () => { writeFile( '/comp.ts', [ `import {Component} from '@angular/core';`, `import {CommonModule} from '@angular/common';\n`, `@Component({`, ` imports: [CommonModule],`, ...
{ "end_byte": 167947, "start_byte": 161184, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/control_flow_migration_spec.ts" }
angular/packages/core/schematics/test/control_flow_migration_spec.ts_167953_171767
ould not remove other imports when mismatch in counts', async () => { writeFile( '/comp.ts', [ `import {DatePipe, NgIf} from '@angular/common';`, `import {Component, NgModule, Pipe, PipeTransform} from '@angular/core';`, `@Component({`, ` selector: 'example...
{ "end_byte": 171767, "start_byte": 167953, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/control_flow_migration_spec.ts" }
angular/packages/core/schematics/test/control_flow_migration_spec.ts_171771_176045
be('no migration needed', () => { it('should do nothing when no control flow is present', async () => { writeFile( '/comp.ts', ` import {Component} from '@angular/core'; import {NgIf} from '@angular/common'; @Component({ imports: [NgIf], template: \...
{ "end_byte": 176045, "start_byte": 171771, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/control_flow_migration_spec.ts" }
angular/packages/core/schematics/test/control_flow_migration_spec.ts_176049_180033
be('error handling', () => { it('should not migrate a template that would result in invalid html', async () => { writeFile( '/comp.ts', ` import {Component} from '@angular/core'; @Component({ templateUrl: './comp.html' }) class Comp { testOp...
{ "end_byte": 180033, "start_byte": 176049, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/control_flow_migration_spec.ts" }
angular/packages/core/schematics/test/queries_migration_spec.ts_0_2167
/** * @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 {getSystemPath, normalize, virtualFs} from '@angular-devkit/core'; import {TempScopedNodeJsSyncHost} from '@a...
{ "end_byte": 2167, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/queries_migration_spec.ts" }
angular/packages/core/schematics/test/BUILD.bazel_0_1288
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") ts_library( name = "test_lib", testonly = True, srcs = glob(["*.ts"]), deps = [ "//packages/core/schematics/utils", "//packages/core/schematics/utils/tsurge", "@npm//@angular-devkit/core", "@npm//@angular-de...
{ "end_byte": 1288, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/BUILD.bazel" }
angular/packages/core/schematics/test/inject_migration_spec.ts_0_561
/** * @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 {getSystemPath, normalize, virtualFs} from '@angular-devkit/core'; import {TempScopedNodeJsSyncHost} from '@a...
{ "end_byte": 561, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/inject_migration_spec.ts" }
angular/packages/core/schematics/test/inject_migration_spec.ts_563_8292
describe('inject migration', () => { let runner: SchematicTestRunner; let host: TempScopedNodeJsSyncHost; let tree: UnitTestTree; let tmpDirPath: string; let previousWorkingDir: string; function writeFile(filePath: string, contents: string) { host.sync.write(normalize(filePath), virtualFs.stringToFileB...
{ "end_byte": 8292, "start_byte": 563, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/inject_migration_spec.ts" }
angular/packages/core/schematics/test/inject_migration_spec.ts_8296_15391
it('should migrate an aliased decorator to use inject()', async () => { writeFile( '/dir.ts', [ `import { Directive as NgDirective } from '@angular/core';`, `import { Foo } from 'foo';`, ``, `@NgDirective()`, `class MyDir {`, ` constructor(private foo: Fo...
{ "end_byte": 15391, "start_byte": 8296, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/inject_migration_spec.ts" }
angular/packages/core/schematics/test/inject_migration_spec.ts_15395_22698
it('should declare a variable if an injected parameter with modifiers is referenced in the constructor via shorthand assignment', async () => { writeFile( '/dir.ts', [ `import { Directive, Inject, LOCALE_ID } from '@angular/core';`, ``, `@Directive()`, `class MyDir {`, ...
{ "end_byte": 22698, "start_byte": 15395, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/inject_migration_spec.ts" }
angular/packages/core/schematics/test/inject_migration_spec.ts_22702_29967
it('should exclude the public modifier from newly-created members', async () => { writeFile( '/dir.ts', [ `import { Directive } from '@angular/core';`, `import { Foo } from 'foo';`, ``, `@Directive()`, `class MyDir {`, ` constructor(public readonly foo: F...
{ "end_byte": 29967, "start_byte": 22702, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/inject_migration_spec.ts" }
angular/packages/core/schematics/test/inject_migration_spec.ts_29971_37568
it('should be able to opt into migrating abstract classes', async () => { writeFile( '/dir.ts', [ `import { Directive } from '@angular/core';`, `import { Foo } from 'foo';`, ``, `@Directive()`, `abstract class MyDir {`, ` constructor(readonly foo: Foo) {}...
{ "end_byte": 37568, "start_byte": 29971, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/inject_migration_spec.ts" }
angular/packages/core/schematics/test/inject_migration_spec.ts_37572_41727
it('should unwrap an aliased forwardRef', async () => { writeFile( '/dir.ts', [ `import { Directive, Inject, forwardRef as aliasedForwardRef } from '@angular/core';`, ``, `@Directive()`, `class MyDir {`, ` constructor(@Inject(aliasedForwardRef(() => Foo)) readonl...
{ "end_byte": 41727, "start_byte": 37572, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/inject_migration_spec.ts" }
angular/packages/core/schematics/test/inject_migration_spec.ts_41731_49461
describe('internal-only behavior', () => { function runInternalMigration() { return runMigration({_internalCombineMemberInitializers: true}); } it('should inline initializers that depend on DI', async () => { writeFile( '/dir.ts', [ `import { Directive, Inject } from '...
{ "end_byte": 49461, "start_byte": 41731, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/inject_migration_spec.ts" }
angular/packages/core/schematics/test/inject_migration_spec.ts_49467_56576
it('should not inline initializers that are not at the top level', async () => { writeFile( '/dir.ts', [ `import { Directive, Optional } from '@angular/core';`, `import { Foo } from 'foo';`, ``, `@Directive()`, `class MyDir {`, ` private...
{ "end_byte": 56576, "start_byte": 49467, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/inject_migration_spec.ts" }
angular/packages/core/schematics/test/inject_migration_spec.ts_56582_59312
it('should be able to insert statements after the `super` call when running in internal migration mode', async () => { writeFile( '/dir.ts', [ `import { Directive, Inject, ElementRef } from '@angular/core';`, `import { Foo } from 'foo';`, `import { Parent } from './pa...
{ "end_byte": 59312, "start_byte": 56582, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/inject_migration_spec.ts" }
angular/packages/core/schematics/test/signals_migration_spec.ts_0_3704
/** * @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 {getSystemPath, normalize, virtualFs} from '@angular-devkit/core'; import {TempScopedNodeJsSyncHost} from '@a...
{ "end_byte": 3704, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/signals_migration_spec.ts" }
angular/packages/core/schematics/test/explicit_standalone_flag_spec.ts_0_6176
/** * @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 {getSystemPath, normalize, virtualFs} from '@angular-devkit/core'; import {TempScopedNodeJsSyncHost} from '@a...
{ "end_byte": 6176, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/explicit_standalone_flag_spec.ts" }
angular/packages/core/schematics/test/google3/wait_for_async_spec.ts_0_6008
/** * @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 {runfiles} from '@bazel/runfiles'; import {readFileSync, writeFileSync} from 'fs'; import {dirname, join} fro...
{ "end_byte": 6008, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/google3/wait_for_async_spec.ts" }
angular/packages/core/schematics/test/google3/BUILD.bazel_0_508
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") ts_library( name = "test_lib", testonly = True, srcs = glob(["**/*.ts"]), deps = [ "@npm//@bazel/runfiles", "@npm//@types/shelljs", "@npm//tslint", ], ) jasmine_node_test( name = "google3", data = [ ...
{ "end_byte": 508, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/test/google3/BUILD.bazel" }
angular/packages/core/schematics/utils/template_ast_visitor.ts_0_4136
/** * @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 type { TmplAstBoundAttribute, TmplAstBoundEvent, TmplAstBoundText, TmplAstContent, TmplAstDeferredB...
{ "end_byte": 4136, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/template_ast_visitor.ts" }
angular/packages/core/schematics/utils/change_tracker.ts_0_8407
/** * @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 ts from 'typescript'; import {ImportManager} from '@angular/compiler-cli/private/migrations'; /** Function t...
{ "end_byte": 8407, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/change_tracker.ts" }
angular/packages/core/schematics/utils/line_mappings.ts_0_2030
/** * @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 LF_CHAR = 10; const CR_CHAR = 13; const LINE_SEP_CHAR = 8232; const PARAGRAPH_CHAR = 8233; /** Gets the line ...
{ "end_byte": 2030, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/line_mappings.ts" }
angular/packages/core/schematics/utils/load_esm.ts_0_2380
/** * @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 {URL} from 'url'; /** * This uses a dynamic import to load a module which may be ESM. * CommonJS code can ...
{ "end_byte": 2380, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/load_esm.ts" }
angular/packages/core/schematics/utils/ng_decorators.ts_0_1188
/** * @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 ts from 'typescript'; import {getCallDecoratorImport} from './typescript/decorators'; export type CallExpres...
{ "end_byte": 1188, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/ng_decorators.ts" }
angular/packages/core/schematics/utils/parse_html.ts_0_850
/** * @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 type {TmplAstNode} from '@angular/compiler'; /** * Parses the given HTML content using the Angular compiler...
{ "end_byte": 850, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/parse_html.ts" }
angular/packages/core/schematics/utils/BUILD.bazel_0_465
load("//tools:defaults.bzl", "ts_library") ts_library( name = "utils", srcs = glob(["**/*.ts"]), tsconfig = "//packages/core/schematics:tsconfig.json", visibility = ["//packages/core/schematics:__subpackages__"], deps = [ "//packages/compiler", "//packages/compiler-cli/private", ...
{ "end_byte": 465, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/BUILD.bazel" }
angular/packages/core/schematics/utils/ng_component_template.ts_0_5306
/** * @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 {Tree} from '@angular-devkit/schematics'; import {dirname, relative, resolve} from 'path'; import ts from 'ty...
{ "end_byte": 5306, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/ng_component_template.ts" }
angular/packages/core/schematics/utils/project_tsconfig_paths.ts_0_3184
/** * @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 {json, normalize, virtualFs, workspaces} from '@angular-devkit/core'; import {Tree} from '@angular-devkit/sch...
{ "end_byte": 3184, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/project_tsconfig_paths.ts" }
angular/packages/core/schematics/utils/extract_metadata.ts_0_1744
/** * @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 ts from 'typescript'; import {getAngularDecorators} from './ng_decorators'; import {unwrapExpression} from '...
{ "end_byte": 1744, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/extract_metadata.ts" }
angular/packages/core/schematics/utils/tslint/tslint_html_source_file.ts_0_1552
/** * @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 ts from 'typescript'; /** * Creates a fake TypeScript source file that can contain content of templates or ...
{ "end_byte": 1552, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tslint/tslint_html_source_file.ts" }
angular/packages/core/schematics/utils/tslint/BUILD.bazel_0_292
load("//tools:defaults.bzl", "ts_library") ts_library( name = "tslint", srcs = glob(["**/*.ts"]), tsconfig = "//packages/core/schematics:tsconfig.json", visibility = [ "//packages/core/schematics/migrations/google3:__pkg__", ], deps = ["@npm//typescript"], )
{ "end_byte": 292, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tslint/BUILD.bazel" }
angular/packages/core/schematics/utils/typescript/decorators.ts_0_831
/** * @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 ts from 'typescript'; import {getImportOfIdentifier, Import} from './imports'; export function getCallDecor...
{ "end_byte": 831, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/typescript/decorators.ts" }
angular/packages/core/schematics/utils/typescript/class_declaration.ts_0_1699
/** * @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 ts from 'typescript'; /** Determines the base type identifiers of a specified class declaration. */ export f...
{ "end_byte": 1699, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/typescript/class_declaration.ts" }
angular/packages/core/schematics/utils/typescript/nodes.ts_0_2176
/** * @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 ts from 'typescript'; /** Checks whether the given TypeScript node has the specified modifier set. */ export...
{ "end_byte": 2176, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/typescript/nodes.ts" }
angular/packages/core/schematics/utils/typescript/imports.ts_0_5838
/** * @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 ts from 'typescript'; export type Import = { name: string; importModule: string; node: ts.ImportDeclar...
{ "end_byte": 5838, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/typescript/imports.ts" }
angular/packages/core/schematics/utils/typescript/symbol.ts_0_3521
/** * @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 ts from 'typescript'; export function getValueSymbolOfDeclaration( node: ts.Node, typeChecker: ts.TypeCh...
{ "end_byte": 3521, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/typescript/symbol.ts" }
angular/packages/core/schematics/utils/typescript/find_base_classes.ts_0_1229
/** * @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 ts from 'typescript'; import {getBaseTypeIdentifiers} from './class_declaration'; /** Gets all base class de...
{ "end_byte": 1229, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/typescript/find_base_classes.ts" }
angular/packages/core/schematics/utils/typescript/property_name.ts_0_1221
/** * @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 ts from 'typescript'; /** Type that describes a property name with an obtainable text. */ type PropertyNameW...
{ "end_byte": 1221, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/typescript/property_name.ts" }
angular/packages/core/schematics/utils/typescript/parse_tsconfig.ts_0_1106
/** * @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 * as path from 'path'; import ts from 'typescript'; export function parseTsconfigFile(tsconfigPath: string, ...
{ "end_byte": 1106, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/typescript/parse_tsconfig.ts" }
angular/packages/core/schematics/utils/typescript/compiler_host.ts_0_5438
/** * @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 {Tree} from '@angular-devkit/schematics'; import {dirname, relative, resolve} from 'path'; import ts from 'typ...
{ "end_byte": 5438, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/typescript/compiler_host.ts" }
angular/packages/core/schematics/utils/typescript/functions.ts_0_1139
/** * @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 ts from 'typescript'; /** Checks whether a given node is a function like declaration. */ export function isF...
{ "end_byte": 1139, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/typescript/functions.ts" }
angular/packages/core/schematics/utils/tsurge/project_paths.ts_0_4559
/** * @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 { AbsoluteFsPath, FileSystem, getFileSystem, isLocalRelativePath, } from '@angular/compiler-cli/src/n...
{ "end_byte": 4559, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/project_paths.ts" }
angular/packages/core/schematics/utils/tsurge/migration.ts_0_3781
/** * @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 {TsurgeBaseMigration} from './base_migration'; import {ProgramInfo} from './program_info'; import {Replacemen...
{ "end_byte": 3781, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/migration.ts" }
angular/packages/core/schematics/utils/tsurge/program_info.ts_0_1647
/** * @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 {NgCompilerOptions} from '@angular/compiler-cli/src/ngtsc/core/api'; import {AbsoluteFsPath} from '@angular/c...
{ "end_byte": 1647, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/program_info.ts" }
angular/packages/core/schematics/utils/tsurge/replacement.ts_0_1019
/** * @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 MagicString from 'magic-string'; import {ProjectFile} from './project_paths'; /** A text replacement for the...
{ "end_byte": 1019, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/replacement.ts" }
angular/packages/core/schematics/utils/tsurge/BUILD.bazel_0_901
load("//tools:defaults.bzl", "ts_library") package_group( name = "users", packages = [ "//packages/core/schematics/...", "//packages/language-service/src/refactorings/...", ], ) ts_library( name = "tsurge", srcs = glob(["**/*.ts"]), visibility = [":users"], deps = [ ...
{ "end_byte": 901, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/BUILD.bazel" }
angular/packages/core/schematics/utils/tsurge/index.ts_0_440
/** * @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 './base_migration'; export * from './migration'; export * from './program_info'; export * from './repl...
{ "end_byte": 440, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/index.ts" }
angular/packages/core/schematics/utils/tsurge/base_migration.ts_0_3435
/** * @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, FileSystem} from '@angular/compiler-cli/src/ngtsc/file_system'; import {isShim} from '@angular...
{ "end_byte": 3435, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/base_migration.ts" }
angular/packages/core/schematics/utils/tsurge/test/output_migration.ts_0_4590
/** * @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 {DtsMetadataReader} from '@angular/compiler-cli/src/ngtsc/metadata'; import {TypeScriptReflectionHost} from '...
{ "end_byte": 4590, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/test/output_migration.ts" }
angular/packages/core/schematics/utils/tsurge/test/BUILD.bazel_0_1020
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") ts_library( name = "migration_lib", srcs = glob( ["**/*.ts"], exclude = ["*.spec.ts"], ), deps = [ "//packages/compiler-cli", "//packages/compiler-cli/src/ngtsc/annotations", "//packages/compiler-cli...
{ "end_byte": 1020, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/test/BUILD.bazel" }
angular/packages/core/schematics/utils/tsurge/test/output_migration.spec.ts_0_3022
/** * @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": 3022, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/test/output_migration.spec.ts" }
angular/packages/core/schematics/utils/tsurge/test/output_helpers.ts_0_3596
/** * @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 path from 'path'; import {UniqueID} from '../helpers/unique_id'; import ts from 'typescript'; import {Program...
{ "end_byte": 3596, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/test/output_helpers.ts" }
angular/packages/core/schematics/utils/tsurge/testing/jasmine.ts_0_1304
/** * @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" /> import chalk from 'chalk'; import {dedent} from './dedent'; import {diffText} fro...
{ "end_byte": 1304, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/testing/jasmine.ts" }
angular/packages/core/schematics/utils/tsurge/testing/diff.ts_0_2345
/** * @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 * as diff from 'diff'; import chalk from 'chalk'; /** * Diffs the given two strings and creates a human-rea...
{ "end_byte": 2345, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/testing/diff.ts" }
angular/packages/core/schematics/utils/tsurge/testing/run_single.ts_0_2729
/** * @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 {TsurgeFunnelMigration, TsurgeMigration} from '../migration'; import {MockFileSystem} from '@angular/compiler...
{ "end_byte": 2729, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/testing/run_single.ts" }
angular/packages/core/schematics/utils/tsurge/testing/dedent.ts_0_1118
/** * @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 */ /** * Template string function that can be used to dedent the resulting * string literal. The smallest common inde...
{ "end_byte": 1118, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/testing/dedent.ts" }
angular/packages/core/schematics/utils/tsurge/testing/test_run.ts_0_648
/** * @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 {MockFileSystem} from '../../../../../compiler-cli/src/ngtsc/file_system/testing'; import {MigrationStats} fr...
{ "end_byte": 648, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/testing/test_run.ts" }
angular/packages/core/schematics/utils/tsurge/testing/index.ts_0_339
/** * @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 './diff'; export * from './run_single'; export * from './dedent'; export * from './jasmine'; export * ...
{ "end_byte": 339, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/testing/index.ts" }
angular/packages/core/schematics/utils/tsurge/executors/combine_exec.ts_0_691
/** * @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 {Serializable} from '../helpers/serializable'; import {TsurgeMigration} from '../migration'; /** * Executes...
{ "end_byte": 691, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/executors/combine_exec.ts" }
angular/packages/core/schematics/utils/tsurge/executors/analyze_exec.ts_0_810
/** * @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 {TsurgeMigration} from '../migration'; import {Serializable} from '../helpers/serializable'; /** * Executes...
{ "end_byte": 810, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/executors/analyze_exec.ts" }
angular/packages/core/schematics/utils/tsurge/executors/migrate_exec.ts_0_1196
/** * @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 {AbsoluteFsPath} from '@angular/compiler-cli/src/ngtsc/file_system'; import {TsurgeMigration} from '../migrat...
{ "end_byte": 1196, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/executors/migrate_exec.ts" }
angular/packages/core/schematics/utils/tsurge/executors/global_meta_exec.ts_0_718
/** * @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 {Serializable} from '../helpers/serializable'; import {TsurgeMigration} from '../migration'; /** * Executes...
{ "end_byte": 718, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/executors/global_meta_exec.ts" }
angular/packages/core/schematics/utils/tsurge/beam_pipeline/read_units_blob.ts_0_1798
/** * @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 * as fs from 'fs'; import * as readline from 'readline'; import {TsurgeMigration} from '../migration'; /** ...
{ "end_byte": 1798, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/beam_pipeline/read_units_blob.ts" }
angular/packages/core/schematics/utils/tsurge/helpers/apply_import_manager.ts_0_3371
/** * @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 ts from 'typescript'; import {ImportManager} from '@angular/compiler-cli/src/ngtsc/translator'; import {absol...
{ "end_byte": 3371, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/helpers/apply_import_manager.ts" }
angular/packages/core/schematics/utils/tsurge/helpers/group_replacements.ts_0_949
/** * @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 {Replacement, TextUpdate} from '../replacement'; import {ProjectRootRelativePath} from '../project_paths'; /...
{ "end_byte": 949, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/helpers/group_replacements.ts" }
angular/packages/core/schematics/utils/tsurge/helpers/combine_units.ts_0_989
/** * @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 {TsurgeMigration} from '../migration'; /** * Synchronously combines unit data for the given migration. * ...
{ "end_byte": 989, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/helpers/combine_units.ts" }
angular/packages/core/schematics/utils/tsurge/helpers/serializable.ts_0_497
/** * @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 */ /** Branded type indicating that the given data `T` is serializable. */ export type Serializable<T> = T & {__seriali...
{ "end_byte": 497, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/helpers/serializable.ts" }
angular/packages/core/schematics/utils/tsurge/helpers/unique_id.ts_0_767
/** * @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 */ /** * Helper type for creating unique branded IDs. * * Unique IDs are a fundamental piece for a `Tsurge` migratio...
{ "end_byte": 767, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/helpers/unique_id.ts" }
angular/packages/core/schematics/utils/tsurge/helpers/ngtsc_program.ts_0_2182
/** * @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 {readConfiguration} from '@angular/compiler-cli/src/perform_compile'; import {NgCompilerOptions} from '@angul...
{ "end_byte": 2182, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/helpers/ngtsc_program.ts" }
angular/packages/core/schematics/utils/tsurge/helpers/string_manipulation/cut_string_line_length.ts_0_1047
/** * @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 */ /** * Cuts the given string into lines basing around the specified * line length limit. This function breaks the st...
{ "end_byte": 1047, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/helpers/string_manipulation/cut_string_line_length.ts" }
angular/packages/core/schematics/utils/tsurge/helpers/ast/leading_space.ts_0_915
/** * @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 ts from 'typescript'; /** * Gets the leading line whitespace of a given node. * * Useful for inserting e.g...
{ "end_byte": 915, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/helpers/ast/leading_space.ts" }
angular/packages/core/schematics/utils/tsurge/helpers/ast/BUILD.bazel_0_849
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//packages/core/schematics/utils/tsurge:users"]) ts_library( name = "ast", srcs = glob(["**/*.ts"]), deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/annotations", "//packages/compiler-cli/s...
{ "end_byte": 849, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/helpers/ast/BUILD.bazel" }
angular/packages/core/schematics/utils/tsurge/helpers/ast/insert_preceding_line.ts_0_967
/** * @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 ts from 'typescript'; import {Replacement, TextUpdate} from '../../replacement'; import {getLeadingLineWhitesp...
{ "end_byte": 967, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/helpers/ast/insert_preceding_line.ts" }
angular/packages/core/schematics/utils/tsurge/helpers/ast/lookup_property_access.ts_0_1548
/** * @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 ts from 'typescript'; /** * Attempts to look up the given property access chain using * the type checker. ...
{ "end_byte": 1548, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/helpers/ast/lookup_property_access.ts" }
angular/packages/core/schematics/utils/tsurge/helpers/angular_devkit/devkit_filesystem.ts_0_5700
/** * @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 { normalize, join, extname, relative, dirname, Path as DevkitAbsPath, PathFragment as DevkitPath...
{ "end_byte": 5700, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/helpers/angular_devkit/devkit_filesystem.ts" }
angular/packages/core/schematics/utils/tsurge/helpers/angular_devkit/BUILD.bazel_0_395
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//packages/core/schematics/ng-generate:__subpackages__"]) ts_library( name = "angular_devkit", srcs = glob(["**/*.ts"]), deps = [ "//packages/compiler-cli/src/ngtsc/file_system", "@npm//@angular-devkit/core", ...
{ "end_byte": 395, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/utils/tsurge/helpers/angular_devkit/BUILD.bazel" }
angular/packages/core/schematics/ng-generate/route-lazy-loading/to-lazy-routes.ts_0_9221
/*! * @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 ts from 'typescript'; import {ChangeTracker, PendingChange} from '../../utils/change_tracker'; import {find...
{ "end_byte": 9221, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/ng-generate/route-lazy-loading/to-lazy-routes.ts" }
angular/packages/core/schematics/ng-generate/route-lazy-loading/to-lazy-routes.ts_9223_11095
/** * Generates the loadComponent property assignment for a given component. * * Example: * loadComponent: () => import('./path').then(m => m.componentName) * or * loadComponent: () => import('./path') // when isDefaultExport is true */ function createLoadComponentPropertyAssignment( componentImportPath: strin...
{ "end_byte": 11095, "start_byte": 9223, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/ng-generate/route-lazy-loading/to-lazy-routes.ts" }
angular/packages/core/schematics/ng-generate/route-lazy-loading/README.md_0_2298
# Route lazy loading migration This schematic helps developers to convert eagerly loaded component routes to lazy loaded routes. By lazy loading components we can split the production bundle into smaller chunks, to avoid big JS bundle that includes all routes, which negatively affects initial page load of an applicatio...
{ "end_byte": 2298, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/ng-generate/route-lazy-loading/README.md" }
angular/packages/core/schematics/ng-generate/route-lazy-loading/util.ts_0_3971
/*! * @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 ts from 'typescript'; import {findLiteralProperty} from '../../utils/typescript/property_name'; /** * Check...
{ "end_byte": 3971, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/ng-generate/route-lazy-loading/util.ts" }
angular/packages/core/schematics/ng-generate/route-lazy-loading/BUILD.bazel_0_700
load("//tools:defaults.bzl", "ts_library") package( default_visibility = [ "//packages/core/schematics:__pkg__", "//packages/core/schematics/migrations/google3:__pkg__", "//packages/core/schematics/test:__pkg__", ], ) filegroup( name = "static_files", srcs = ["schema.json"], ) ...
{ "end_byte": 700, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/ng-generate/route-lazy-loading/BUILD.bazel" }
angular/packages/core/schematics/ng-generate/route-lazy-loading/index.ts_0_4762
/** * @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 {Rule, SchematicsException, Tree} from '@angular-devkit/schematics'; import {existsSync, statSync} from 'fs';...
{ "end_byte": 4762, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/ng-generate/route-lazy-loading/index.ts" }
angular/packages/core/schematics/ng-generate/inject-migration/migration.ts_0_4677
/** * @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 ts from 'typescript'; import {PendingChange, ChangeTracker} from '../../utils/change_tracker'; import { ana...
{ "end_byte": 4677, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/ng-generate/inject-migration/migration.ts" }
angular/packages/core/schematics/ng-generate/inject-migration/migration.ts_4678_10650
tion migrateClass( node: ts.ClassDeclaration, constructor: ts.ConstructorDeclaration, superCall: ts.CallExpression | null, options: MigrationOptions, memberIndentation: string, prependToClass: string[], removedStatements: Set<ts.Statement>, localTypeChecker: ts.TypeChecker, printer: ts.Printer, trac...
{ "end_byte": 10650, "start_byte": 4678, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/ng-generate/inject-migration/migration.ts" }
angular/packages/core/schematics/ng-generate/inject-migration/migration.ts_10651_18158
tion migrateParameter( node: ts.ParameterDeclaration, options: MigrationOptions, localTypeChecker: ts.TypeChecker, printer: ts.Printer, tracker: ChangeTracker, superCall: ts.CallExpression | null, usedInSuper: boolean, usedInConstructor: boolean, memberIndentation: string, innerIndentation: string, ...
{ "end_byte": 18158, "start_byte": 10651, "url": "https://github.com/angular/angular/blob/main/packages/core/schematics/ng-generate/inject-migration/migration.ts" }