_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular/packages/compiler-cli/test/ngtsc/incremental_error_spec.ts_14472_18968
describe('chained errors', () => { it('should remember a change to a TS file across broken builds', () => { // Two components, an NgModule, and a random file. writeTwoComponentSystem(env); writeRandomFile(env, 'other.ts'); // Start with a clean build. env.driveMain(); ...
{ "end_byte": 18968, "start_byte": 14472, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/incremental_error_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/incremental_spec.ts_0_523
/** * @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 {ErrorCode, ngErrorCode} from '../../src/ngtsc/diagnostics'; import {runInEachFileSystem} from '../../src/ngt...
{ "end_byte": 523, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/incremental_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/incremental_spec.ts_524_9385
{ describe('ngtsc incremental compilation', () => { let env!: NgtscTestEnvironment; beforeEach(() => { env = NgtscTestEnvironment.setup(testFiles); env.enableMultipleCompilations(); env.tsconfig(); }); it('should not crash if CLI does not provide getModifiedResourceFiles()', () => ...
{ "end_byte": 9385, "start_byte": 524, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/incremental_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/incremental_spec.ts_9391_18597
it('should rebuild components where their NgModule has changed', () => { setupFooBarProgram(env); // Pretend a change was made to FooModule. env.write( 'foo_module.ts', ` import {NgModule} from '@angular/core'; import {FooCmp} from './foo_component'; import {Fo...
{ "end_byte": 18597, "start_byte": 9391, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/incremental_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/incremental_spec.ts_18603_24052
// https://github.com/angular/angular/issues/38979 it('should retain ambient types provided by auto-discovered @types', () => { // This test verifies that ambient types declared in node_modules/@types are still available // in incremental compilations. In the below code, the usage of `require` should be...
{ "end_byte": 24052, "start_byte": 18603, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/incremental_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/incremental_spec.ts_24058_32625
describe('template type-checking', () => { beforeEach(() => { env.tsconfig({strictTemplates: true}); }); it('should repeat type errors across rebuilds, even if nothing has changed', () => { // This test verifies that when a project is rebuilt multiple times with no changes, all ...
{ "end_byte": 32625, "start_byte": 24058, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/incremental_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/incremental_spec.ts_32633_40155
describe('inline operations', () => { it('should still pick up on errors from inlined type check blocks', () => { // In certain cases the template type-checker has to inline type checking blocks into user // code, instead of placing it in a parallel template type-checking file. In these case...
{ "end_byte": 40155, "start_byte": 32633, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/incremental_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/incremental_spec.ts_40159_42331
function setupFooBarProgram(env: NgtscTestEnvironment) { env.write( 'foo_component.ts', ` import {Component} from '@angular/core'; import {fooSelector} from './foo_selector'; @Component({ selector: fooSelector, template: '{{ 1 | foo }}', standalone: false, }) expor...
{ "end_byte": 42331, "start_byte": 40159, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/incremental_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/scope_spec.ts_0_8388
/** * @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 {ErrorCode, ngErrorCode} from '../../src/ngtsc/diagnostics'; import {runInEachF...
{ "end_byte": 8388, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/scope_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/scope_spec.ts_8396_15122
ports', () => { it('should emit exports in a pure function call', () => { env.write( 'test.ts', ` import {NgModule} from '@angular/core'; @NgModule({}) export class OtherModule {} @NgModule({exports: [OtherModule]}) export cla...
{ "end_byte": 15122, "start_byte": 8396, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/scope_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/docs_private_spec.ts_0_1898
/** * @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 {DocEntry} from '@angular/compiler-cli/src/ngtsc/docs/src/entities'; import {runInEachFileSystem} from '@angu...
{ "end_byte": 1898, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/docs_private_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/ng_module_doc_extraction_spec.ts_0_1486
/** * @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 {DocEntry} from '@angular/compiler-cli/src/ngtsc/docs'; import {ClassEntry, EntryType} from '@angular/compile...
{ "end_byte": 1486, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/ng_module_doc_extraction_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/reexport_docs_extraction_spec.ts_0_3157
/** * @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 {DocEntry} from '@angular/compiler-cli/src/ngtsc/docs'; import {EntryType} from '@angular/compiler-cli/src/ng...
{ "end_byte": 3157, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/reexport_docs_extraction_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/class_doc_extraction_spec.ts_0_698
/** * @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 {DocEntry} from '@angular/compiler-cli/src/ngtsc/docs'; import { ClassEntry, EntryType, MemberTags, M...
{ "end_byte": 698, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/class_doc_extraction_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/class_doc_extraction_spec.ts_700_9632
runInEachFileSystem(() => { let env!: NgtscTestEnvironment; describe('ngtsc class docs extraction', () => { beforeEach(() => { env = NgtscTestEnvironment.setup(testFiles); env.tsconfig(); }); it('should extract classes', () => { env.write( 'index.ts', ` export...
{ "end_byte": 9632, "start_byte": 700, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/class_doc_extraction_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/class_doc_extraction_spec.ts_9638_17014
t('should extract getters and setters', () => { // Test getter-only, a getter + setter, and setter-only. env.write( 'index.ts', ` export class UserProfile { get userId(): number { return 123; } get userName(): string { return 'Morgan'; } set userName(va...
{ "end_byte": 17014, "start_byte": 9638, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/class_doc_extraction_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/class_doc_extraction_spec.ts_17020_22108
t('should extract inherited members', () => { env.write( 'index.ts', ` class Ancestor { id: string; value: string|number; save(value: string|number): string|number { return 0; } } class Parent extends Ancestor { name: string; ...
{ "end_byte": 22108, "start_byte": 17020, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/class_doc_extraction_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/import_extractor_spec.ts_0_2996
/** * @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 {runInEachFileSystem} from '@angular/compiler-cli/src/ngtsc/file_system/testing'; import {loadStandardTestFil...
{ "end_byte": 2996, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/import_extractor_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/directive_doc_extraction_spec.ts_0_687
/** * @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 {DocEntry} from '@angular/compiler-cli/src/ngtsc/docs'; import { ClassEntry, DirectiveEntry, EntryType,...
{ "end_byte": 687, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/directive_doc_extraction_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/directive_doc_extraction_spec.ts_689_9717
runInEachFileSystem(() => { let env!: NgtscTestEnvironment; describe('ngtsc directive docs extraction', () => { beforeEach(() => { env = NgtscTestEnvironment.setup(testFiles); env.tsconfig(); }); it('should extract standalone directive info', () => { env.write( 'index.ts', ...
{ "end_byte": 9717, "start_byte": 689, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/directive_doc_extraction_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/enum_doc_extraction_spec.ts_0_2969
/** * @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 {DocEntry} from '@angular/compiler-cli/src/ngtsc/docs'; import {EntryType, EnumEntry} from '@angular/compiler...
{ "end_byte": 2969, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/enum_doc_extraction_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/jsdoc_extraction_spec.ts_0_8210
/** * @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 {DocEntry} from '@angular/compiler-cli/src/ngtsc/docs'; import { ClassEntry, FunctionEntry, FunctionSig...
{ "end_byte": 8210, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/jsdoc_extraction_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/jsdoc_extraction_spec.ts_8216_10285
it('should extract class member descriptions', () => { env.write( 'index.ts', ` export class UserProfile { /** A user identifier. */ userId: number = 0; /** Name of the user */ get name(): string { return ''; } /** Name of the user */ ...
{ "end_byte": 10285, "start_byte": 8216, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/jsdoc_extraction_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/function_doc_extraction_spec.ts_0_4942
/** * @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 {DocEntry} from '@angular/compiler-cli/src/ngtsc/docs'; import {EntryType, FunctionEntry} from '@angular/comp...
{ "end_byte": 4942, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/function_doc_extraction_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/decorator_doc_extraction_spec.ts_0_5612
/** * @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 {DocEntry} from '@angular/compiler-cli/src/ngtsc/docs'; import { DecoratorEntry, DecoratorType, EntryTy...
{ "end_byte": 5612, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/decorator_doc_extraction_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/constant_doc_extraction_spec.ts_0_5415
/** * @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 {DocEntry} from '@angular/compiler-cli/src/ngtsc/docs'; import { ConstantEntry, EntryType, EnumEntry, }...
{ "end_byte": 5415, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/constant_doc_extraction_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/initializer_api_extraction_spec.ts_0_7548
/** * @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 { EntryType, FunctionSignatureMetadata, InitializerApiFunctionEntry, ParameterEntry, } from '@angular...
{ "end_byte": 7548, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/initializer_api_extraction_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/common_doc_extraction_spec.ts_0_1094
/** * @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 {DocEntry} from '@angular/compiler-cli/src/ngtsc/docs'; import {runInEachFileSystem} from '@angular/compiler-...
{ "end_byte": 1094, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/common_doc_extraction_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/doc_extraction_filtering_spec.ts_0_1506
/** * @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 {DocEntry} from '@angular/compiler-cli/src/ngtsc/docs'; import {runInEachFileSystem} from '@angular/compiler-...
{ "end_byte": 1506, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/doc_extraction_filtering_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/pipe_doc_extraction_spec.ts_0_2419
/** * @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 {DocEntry} from '@angular/compiler-cli/src/ngtsc/docs'; import {EntryType, PipeEntry} from '@angular/compiler...
{ "end_byte": 2419, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/pipe_doc_extraction_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/type_alias_doc_extraction_spec.ts_0_2011
/** * @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 {DocEntry} from '@angular/compiler-cli/src/ngtsc/docs'; import {EntryType, TypeAliasEntry} from '@angular/com...
{ "end_byte": 2011, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/type_alias_doc_extraction_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/interface_doc_extraction_spec.ts_0_8571
/** * @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 {DocEntry} from '@angular/compiler-cli/src/ngtsc/docs'; import { ClassEntry, EntryType, InterfaceEntry,...
{ "end_byte": 8571, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/interface_doc_extraction_spec.ts" }
angular/packages/compiler-cli/test/ngtsc/doc_extraction/interface_doc_extraction_spec.ts_8577_13043
it('should extract inherited members', () => { env.write( 'index.ts', ` interface Ancestor { id: string; value: string|number; save(value: string|number): string|number; } interface Parent extends Ancestor { name: string; } ...
{ "end_byte": 13043, "start_byte": 8577, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/test/ngtsc/doc_extraction/interface_doc_extraction_spec.ts" }
angular/packages/compiler-cli/linker/README.md_0_863
# Angular Linker This package contains a `FileLinker` and supporting code to be able to "link" partial declarations of components, directives, etc in libraries to produce the full definitions. The partial declaration format allows library packages to be published to npm without exposing the underlying Ivy instruction...
{ "end_byte": 863, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/README.md" }
angular/packages/compiler-cli/linker/BUILD.bazel_0_554
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "linker", srcs = ["index.ts"] + glob([ "src/**/*.ts", ]), deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/file_system", "//packages/com...
{ "end_byte": 554, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/BUILD.bazel" }
angular/packages/compiler-cli/linker/index.ts_0_723
/** * @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 {AstHost, Range} from './src/ast/ast_host'; export {assert} from './src/ast/utils'; export {FatalLinkerError, ...
{ "end_byte": 723, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/index.ts" }
angular/packages/compiler-cli/linker/test/BUILD.bazel_0_801
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "test_lib", testonly = True, srcs = glob([ "**/*.ts", ]), deps = [ "//packages:types", "//packages/compiler", "//packages/compile...
{ "end_byte": 801, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/test/BUILD.bazel" }
angular/packages/compiler-cli/linker/test/fatal_linker_error_spec.ts_0_970
/** * @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 {FatalLinkerError, isFatalLinkerError} from '../src/fatal_linker_error'; describe('FatalLinkerError', () => ...
{ "end_byte": 970, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/test/fatal_linker_error_spec.ts" }
angular/packages/compiler-cli/linker/test/linker_import_generator_spec.ts_0_2643
/** * @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 {TypeScriptAstFactory} from '../../src/ngtsc/translator'; import {LinkerImportGe...
{ "end_byte": 2643, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/test/linker_import_generator_spec.ts" }
angular/packages/compiler-cli/linker/test/ast/ast_value_spec.ts_0_6591
/** * @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 {WrappedNodeExpr} from '@angular/compiler'; import {TypeScriptAstFactory} from '@angular/compiler-cli/src/ngts...
{ "end_byte": 6591, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/test/ast/ast_value_spec.ts" }
angular/packages/compiler-cli/linker/test/ast/ast_value_spec.ts_6593_15352
describe('AstValue', () => { function createAstValue<T>(node: ts.Expression): AstValue<T, ts.Expression> { return new AstValue<T, ts.Expression>(node, host); } describe('getSymbolName', () => { it('should return the name of an identifier', () => { expect(createAstValue(factory.createIdentifier('Foo...
{ "end_byte": 15352, "start_byte": 6593, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/test/ast/ast_value_spec.ts" }
angular/packages/compiler-cli/linker/test/ast/ast_value_spec.ts_15356_17227
describe('getArguments', () => { it('should return the arguments as an array of values', () => { const callExpr = factory.createCallExpression( factory.createIdentifier('foo'), [factory.createLiteral(1), factory.createLiteral(2)], false, ); expect(createAstValue<Function>(c...
{ "end_byte": 17227, "start_byte": 15356, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/test/ast/ast_value_spec.ts" }
angular/packages/compiler-cli/linker/test/ast/typescript/typescript_ast_host_spec.ts_0_8158
/** * @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 {TypeScriptAstHost} from '../../../src/ast/typescript/typescript_ast_host'; des...
{ "end_byte": 8158, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/test/ast/typescript/typescript_ast_host_spec.ts" }
angular/packages/compiler-cli/linker/test/ast/typescript/typescript_ast_host_spec.ts_8162_16349
describe('parseObjectLiteral()', () => { it('should extract the properties from the object', () => { const moo = jasmine.objectContaining({text: 'moo', kind: ts.SyntaxKind.StringLiteral}); expect(host.parseObjectLiteral(rhs('x = {}'))).toEqual(new Map()); expect(host.parseObjectLiteral(rhs("x = {a...
{ "end_byte": 16349, "start_byte": 8162, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/test/ast/typescript/typescript_ast_host_spec.ts" }
angular/packages/compiler-cli/linker/test/ast/typescript/typescript_ast_host_spec.ts_16351_16909
function stmt(code: string, attachParents = true): ts.Statement { const sf = ts.createSourceFile('test.ts', code, ts.ScriptTarget.ES2015, attachParents); return sf.statements[0]; } function expr(code: string, attachParents = true): ts.Expression { return (stmt(code, attachParents) as ts.ExpressionStatement).expr...
{ "end_byte": 16909, "start_byte": 16351, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/test/ast/typescript/typescript_ast_host_spec.ts" }
angular/packages/compiler-cli/linker/test/file_linker/helpers.ts_0_559
/** * @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'; /** * A simple helper to render a TS Node as a string. */ export function generate(no...
{ "end_byte": 559, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/test/file_linker/helpers.ts" }
angular/packages/compiler-cli/linker/test/file_linker/translator_spec.ts_0_1792
/** * @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 o from '@angular/compiler'; import {TypeScriptAstFactory} from '@angular/compiler-cli/src/ngtsc/translato...
{ "end_byte": 1792, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/test/file_linker/translator_spec.ts" }
angular/packages/compiler-cli/linker/test/file_linker/file_linker_spec.ts_0_7760
/** * @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 o from '@angular/compiler/src/output/output_ast'; import ts from 'typescript'; import {MockFileSystemNat...
{ "end_byte": 7760, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/test/file_linker/file_linker_spec.ts" }
angular/packages/compiler-cli/linker/test/file_linker/file_linker_spec.ts_7764_12483
tStatements()', () => { it('should capture shared constant values', () => { const {fileLinker} = createFileLinker(); spyOnLinkPartialDeclarationWithConstants(o.literal('REPLACEMENT')); // Here we use the `core` identifier for `ngImport` to trigger the use of a shared scope for // constant s...
{ "end_byte": 12483, "start_byte": 7764, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/test/file_linker/file_linker_spec.ts" }
angular/packages/compiler-cli/linker/test/file_linker/needs_linking_spec.ts_0_2259
/** * @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 {needsLinking} from '../../src/file_linker/needs_linking'; describe('needsLinking', () => { it('should ret...
{ "end_byte": 2259, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/test/file_linker/needs_linking_spec.ts" }
angular/packages/compiler-cli/linker/test/file_linker/emit_scopes/emit_scope_spec.ts_0_4393
/** * @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 o from '@angular/compiler/src/output/output_ast'; import ts from 'typescript'; import {TypeScriptAstFact...
{ "end_byte": 4393, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/test/file_linker/emit_scopes/emit_scope_spec.ts" }
angular/packages/compiler-cli/linker/test/file_linker/emit_scopes/local_emit_scope_spec.ts_0_3793
/** * @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 {ConstantPool} from '@angular/compiler'; import * as o from '@angular/compiler/src/output/output_ast'; import ...
{ "end_byte": 3793, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/test/file_linker/emit_scopes/local_emit_scope_spec.ts" }
angular/packages/compiler-cli/linker/test/file_linker/partial_linkers/partial_linker_selector_spec.ts_0_5712
/** * @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 semver from 'semver'; import {MockLogger} from '../../../../src/ngtsc/logging/testing'; import {PartialLinker...
{ "end_byte": 5712, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/test/file_linker/partial_linkers/partial_linker_selector_spec.ts" }
angular/packages/compiler-cli/linker/babel/README.md_0_363
# Angular linker - Babel plugin This package contains a Babel plugin that can be used to find and link partially compiled declarations in library source code. See the [linker package README](../README.md) for more information. ## Unit Testing The unit tests are built and run using Bazel: ```bash yarn bazel test //p...
{ "end_byte": 363, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/README.md" }
angular/packages/compiler-cli/linker/babel/BUILD.bazel_0_564
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "babel", srcs = ["index.ts"] + glob([ "src/**/*.ts", ]), deps = [ "//packages/compiler", "//packages/compiler-cli/linker", "//packages/compiler-cli/privat...
{ "end_byte": 564, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/BUILD.bazel" }
angular/packages/compiler-cli/linker/babel/index.ts_0_365
/** * @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 {defaultLinkerPlugin} from './src/babel_plugin'; export {createEs2015LinkerPlugin} from './src/es2015_linker_...
{ "end_byte": 365, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/index.ts" }
angular/packages/compiler-cli/linker/babel/test/es2015_linker_plugin_spec.ts_0_926
/** * @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 o from '@angular/compiler/src/output/output_ast'; import babel, {NodePath, PluginObj, types as t} from '@...
{ "end_byte": 926, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/test/es2015_linker_plugin_spec.ts" }
angular/packages/compiler-cli/linker/babel/test/es2015_linker_plugin_spec.ts_928_7838
describe('createEs2015LinkerPlugin()', () => { it('should return a Babel plugin visitor that handles Program (enter/exit) and CallExpression nodes', () => { const fileSystem = new MockFileSystemNative(); const logger = new MockLogger(); const plugin = createEs2015LinkerPlugin({fileSystem, logger}); ex...
{ "end_byte": 7838, "start_byte": 928, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/test/es2015_linker_plugin_spec.ts" }
angular/packages/compiler-cli/linker/babel/test/es2015_linker_plugin_spec.ts_7842_15578
t adds shared statements at the start of the program if it is an ECMAScript Module and there are no imports', () => { spyOnLinkPartialDeclarationWithConstants(o.literal('REPLACEMENT')); const fileSystem = new MockFileSystemNative(); const logger = new MockLogger(); const result = babel.transformSync( ...
{ "end_byte": 15578, "start_byte": 7842, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/test/es2015_linker_plugin_spec.ts" }
angular/packages/compiler-cli/linker/babel/test/babel_plugin_spec.ts_0_1836
/** * @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 babel from '@babel/core'; describe('default babel plugin entry-point', () => { it('should work as a Babel p...
{ "end_byte": 1836, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/test/babel_plugin_spec.ts" }
angular/packages/compiler-cli/linker/babel/test/BUILD.bazel_0_863
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "test_lib", testonly = True, srcs = glob([ "**/*.ts", ]), deps = [ "//packages:types", "//packages/compiler", "//packages/compile...
{ "end_byte": 863, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/test/BUILD.bazel" }
angular/packages/compiler-cli/linker/babel/test/babel_declaration_scope_spec.ts_0_4157
/** * @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 {NodePath, parse, traverse, types as t} from '@babel/core'; import {BabelDeclarationScope} from '../src/babe...
{ "end_byte": 4157, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/test/babel_declaration_scope_spec.ts" }
angular/packages/compiler-cli/linker/babel/test/ast/babel_ast_host_spec.ts_0_8074
/** * @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 {parse, template, types as t} from '@babel/core'; import {BabelAstHost} from '../../src/ast/babel_ast_host'; ...
{ "end_byte": 8074, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/test/ast/babel_ast_host_spec.ts" }
angular/packages/compiler-cli/linker/babel/test/ast/babel_ast_host_spec.ts_8078_16343
describe('parseObjectLiteral()', () => { it('should extract the properties from the object', () => { const moo = expr("'moo'"); expect(host.parseObjectLiteral(rhs('x = {}'))).toEqual(new Map()); expect(host.parseObjectLiteral(rhs("x = {a: 'moo'}"))).toEqual(new Map([['a', moo]])); }); it(...
{ "end_byte": 16343, "start_byte": 8078, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/test/ast/babel_ast_host_spec.ts" }
angular/packages/compiler-cli/linker/babel/test/ast/babel_ast_host_spec.ts_16345_16549
function assertAssignmentExpression(e: t.Expression): asserts e is t.AssignmentExpression { if (!t.isAssignmentExpression(e)) { throw new Error('Bad test - expected an assignment expression'); } }
{ "end_byte": 16549, "start_byte": 16345, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/test/ast/babel_ast_host_spec.ts" }
angular/packages/compiler-cli/linker/babel/test/ast/babel_ast_factory_spec.ts_0_802
/** * @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 {leadingComment} from '@angular/compiler'; import {template, types as t} from '@babel/core'; import _generate ...
{ "end_byte": 802, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/test/ast/babel_ast_factory_spec.ts" }
angular/packages/compiler-cli/linker/babel/test/ast/babel_ast_factory_spec.ts_803_8550
() => { let factory: BabelAstFactory; beforeEach(() => (factory = new BabelAstFactory('/original.ts'))); describe('attachComments()', () => { it('should add the comments to the given statement', () => { const stmt = statement.ast`x = 10;`; factory.attachComments(stmt, [ leadingComment('co...
{ "end_byte": 8550, "start_byte": 803, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/test/ast/babel_ast_factory_spec.ts" }
angular/packages/compiler-cli/linker/babel/test/ast/babel_ast_factory_spec.ts_8554_15502
describe('createIfStatement()', () => { it('should create an if-else statement', () => { const test = expression.ast`!test`; const thenStmt = statement.ast`x = 10;`; const elseStmt = statement.ast`x = 42;`; const ifStmt = factory.createIfStatement(test, thenStmt, elseStmt); expect(gene...
{ "end_byte": 15502, "start_byte": 8554, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/test/ast/babel_ast_factory_spec.ts" }
angular/packages/compiler-cli/linker/babel/test/ast/babel_ast_factory_spec.ts_15506_16923
describe('setSourceMapRange()', () => { it('should attach the `sourceMapRange` to the given `node`', () => { const expr = expression.ast`42`; expect(expr.loc).toBeUndefined(); expect(expr.start).toBeUndefined(); expect(expr.end).toBeUndefined(); factory.setSourceMapRange(expr, { ...
{ "end_byte": 16923, "start_byte": 15506, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/test/ast/babel_ast_factory_spec.ts" }
angular/packages/compiler-cli/linker/babel/src/babel_plugin.ts_0_1650
/** * @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 {ConfigAPI, PluginObj} from '@babel/core'; import {NodeJSFileSystem} from '../../../src/ngtsc/file_system'; i...
{ "end_byte": 1650, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/src/babel_plugin.ts" }
angular/packages/compiler-cli/linker/babel/src/linker_plugin_options.ts_0_608
/** * @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 {LinkerOptions} from '../..'; import {ReadonlyFileSystem} from '../../../src/ngtsc/file_system'; import {Logge...
{ "end_byte": 608, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/src/linker_plugin_options.ts" }
angular/packages/compiler-cli/linker/babel/src/es2015_linker_plugin.ts_0_6414
/** * @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 {BabelFile, NodePath, PluginObj, types as t} from '@babel/core'; import {FileLinker, isFatalLinkerError, Lin...
{ "end_byte": 6414, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/src/es2015_linker_plugin.ts" }
angular/packages/compiler-cli/linker/babel/src/babel_declaration_scope.ts_0_2713
/** * @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 {NodePath, types as t} from '@babel/core'; import {DeclarationScope} from '../../../linker'; export type Con...
{ "end_byte": 2713, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/src/babel_declaration_scope.ts" }
angular/packages/compiler-cli/linker/babel/src/ast/babel_ast_factory.ts_0_7056
/** * @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 {types as t} from '@babel/core'; import {assert} from '../../../../linker'; import { AstFactory, BinaryOp...
{ "end_byte": 7056, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/src/ast/babel_ast_factory.ts" }
angular/packages/compiler-cli/linker/babel/src/ast/babel_ast_host.ts_0_6908
/** * @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 {types as t} from '@babel/core'; import {assert, AstHost, FatalLinkerError, Range} from '../../../../linker'...
{ "end_byte": 6908, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/babel/src/ast/babel_ast_host.ts" }
angular/packages/compiler-cli/linker/src/fatal_linker_error.ts_0_769
/** * @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 */ /** * An unrecoverable error during linking. */ export class FatalLinkerError extends Error { readonly type = 'F...
{ "end_byte": 769, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/fatal_linker_error.ts" }
angular/packages/compiler-cli/linker/src/linker_import_generator.ts_0_1454
/** * @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 {AstFactory, ImportGenerator, ImportRequest} from '../../src/ngtsc/translator'; import {FatalLinkerError} fro...
{ "end_byte": 1454, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/linker_import_generator.ts" }
angular/packages/compiler-cli/linker/src/ast/ast_value.ts_0_7584
/** * @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 o from '@angular/compiler'; import {FatalLinkerError} from '../fatal_linker_error'; import {AstHost, Ra...
{ "end_byte": 7584, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/ast/ast_value.ts" }
angular/packages/compiler-cli/linker/src/ast/ast_value.ts_7585_11657
export class AstValue<T, TExpression> { /** Type brand that ensures that the `T` type is respected for assignability. */ ɵtypeBrand: T = null!; constructor( readonly expression: TExpression, private host: AstHost<TExpression>, ) {} /** * Get the name of the symbol represented by the given express...
{ "end_byte": 11657, "start_byte": 7585, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/ast/ast_value.ts" }
angular/packages/compiler-cli/linker/src/ast/utils.ts_0_598
/** * @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 {FatalLinkerError} from '../fatal_linker_error'; /** * Assert that the given `node` is of the type guarded b...
{ "end_byte": 598, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/ast/utils.ts" }
angular/packages/compiler-cli/linker/src/ast/ast_host.ts_0_4268
/** * @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 */ /** * An abstraction for getting information from an AST while being agnostic to the underlying AST * implementati...
{ "end_byte": 4268, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/ast/ast_host.ts" }
angular/packages/compiler-cli/linker/src/ast/typescript/typescript_ast_host.ts_0_6943
/** * @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 {FatalLinkerError} from '../../fatal_linker_error'; import {AstHost, Range} fro...
{ "end_byte": 6943, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/ast/typescript/typescript_ast_host.ts" }
angular/packages/compiler-cli/linker/src/file_linker/translator.ts_0_1574
/** * @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 o from '@angular/compiler'; import { AstFactory, Context, ExpressionTranslatorVisitor, ImportGen...
{ "end_byte": 1574, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/translator.ts" }
angular/packages/compiler-cli/linker/src/file_linker/get_source_file.ts_0_1227
/** * @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 '../../../src/ngtsc/file_system'; import {SourceFile, SourceFileLoader} from '../../../...
{ "end_byte": 1227, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/get_source_file.ts" }
angular/packages/compiler-cli/linker/src/file_linker/declaration_scope.ts_0_1818
/** * @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 interface represents the lexical scope of a partial declaration in the source code. * * For example, i...
{ "end_byte": 1818, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/declaration_scope.ts" }
angular/packages/compiler-cli/linker/src/file_linker/linker_environment.ts_0_1905
/** * @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 {ReadonlyFileSystem} from '../../../src/ngtsc/file_system'; import {Logger} from '../../../src/ngtsc/logging';...
{ "end_byte": 1905, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/linker_environment.ts" }
angular/packages/compiler-cli/linker/src/file_linker/linker_options.ts_0_1505
/** * @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 */ /** * Options to configure the linking behavior. */ export interface LinkerOptions { /** * Whether to use sou...
{ "end_byte": 1505, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/linker_options.ts" }
angular/packages/compiler-cli/linker/src/file_linker/file_linker.ts_0_4662
/** * @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 {R3PartialDeclaration} from '@angular/compiler'; import {AbsoluteFsPath} from '../../../src/ngtsc/file_system...
{ "end_byte": 4662, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/file_linker.ts" }
angular/packages/compiler-cli/linker/src/file_linker/needs_linking.ts_0_1211
/** * @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 {declarationFunctions} from './partial_linkers/partial_linker_selector'; /** * Determines if the provided s...
{ "end_byte": 1211, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/needs_linking.ts" }
angular/packages/compiler-cli/linker/src/file_linker/emit_scopes/local_emit_scope.ts_0_1624
/** * @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 {LinkedDefinition} from '../partial_linkers/partial_linker'; import {EmitScope} from './emit_scope'; /** *...
{ "end_byte": 1624, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/emit_scopes/local_emit_scope.ts" }
angular/packages/compiler-cli/linker/src/file_linker/emit_scopes/emit_scope.ts_0_3338
/** * @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 {ConstantPool, outputAst as o} from '@angular/compiler'; import {AstFactory} from '../../../../src/ngtsc/tran...
{ "end_byte": 3338, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/emit_scopes/emit_scope.ts" }
angular/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_linker.ts_0_1056
/** * @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 {ConstantPool, outputAst as o, R3PartialDeclaration} from '@angular/compiler'; import {AstObject} from '../.....
{ "end_byte": 1056, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_linker.ts" }
angular/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_injector_linker_1.ts_0_1724
/** * @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 { compileInjector, ConstantPool, outputAst as o, R3DeclareInjectorMetadata, R3InjectorMetadata, R3...
{ "end_byte": 1724, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_injector_linker_1.ts" }
angular/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_class_metadata_linker_1.ts_0_1467
/** * @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 { compileClassMetadata, ConstantPool, outputAst as o, R3ClassMetadata, R3DeclareClassMetadata, R3P...
{ "end_byte": 1467, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_class_metadata_linker_1.ts" }
angular/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_component_linker_1.ts_0_2387
/** * @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 { BoundTarget, ChangeDetectionStrategy, compileComponentFromMetadata, ConstantPool, DeclarationListE...
{ "end_byte": 2387, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_component_linker_1.ts" }
angular/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_component_linker_1.ts_2388_10745
port class PartialComponentLinkerVersion1<TStatement, TExpression> implements PartialLinker<TExpression> { constructor( private readonly getSourceFile: GetSourceFileFn, private sourceUrl: AbsoluteFsPath, private code: string, ) {} linkPartialDeclaration( constantPool: ConstantPool, metaObj:...
{ "end_byte": 10745, "start_byte": 2388, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_component_linker_1.ts" }
angular/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_component_linker_1.ts_10749_14550
ivate templateFromPartialCode( templateNode: AstValue<unknown, TExpression>, {startPos, endPos, startLine, startCol}: Range, ): TemplateInfo { if (!/["'`]/.test(this.code[startPos]) || this.code[startPos] !== this.code[endPos - 1]) { throw new FatalLinkerError( templateNode.expression, ...
{ "end_byte": 14550, "start_byte": 10749, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_component_linker_1.ts" }
angular/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_pipe_linker_1.ts_0_1939
/** * @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 { compilePipeFromMetadata, ConstantPool, outputAst as o, R3DeclarePipeMetadata, R3PartialDeclaration...
{ "end_byte": 1939, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_pipe_linker_1.ts" }
angular/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_directive_linker_1.ts_0_7844
/** * @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 { compileDirectiveFromMetadata, ConstantPool, ForwardRefHandling, LegacyInputPartialMapping, makeBin...
{ "end_byte": 7844, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_directive_linker_1.ts" }
angular/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_directive_linker_1.ts_7845_9343
nction toHostDirectivesMetadata<TExpression>( hostDirectives: AstValue<R3DeclareHostDirectiveMetadata[] | undefined, TExpression>, ): R3HostDirectiveMetadata[] { return hostDirectives.getArray().map((hostDirective) => { const hostObject = hostDirective.getObject(); const type = extractForwardRef(hostObject....
{ "end_byte": 9343, "start_byte": 7845, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_directive_linker_1.ts" }