_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular/packages/compiler-cli/src/ngtsc/typecheck/test/output_function_diagnostics.spec.ts_0_3194
/** * @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 '../../file_system/testing'; import {generateDiagnoseJasmineSpecs, TestCase} from...
{ "end_byte": 3194, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/test/output_function_diagnostics.spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/test/BUILD.bazel_0_1482
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": 1482, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/test/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/test/type_constructor_spec.ts_0_1267
/** * @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 { absoluteFrom, getFileSystem, getSourceFileOrError, LogicalFileSystem, ...
{ "end_byte": 1267, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/test/type_constructor_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/test/type_constructor_spec.ts_1269_10705
runInEachFileSystem(() => { describe('ngtsc typechecking', () => { let _: typeof absoluteFrom; let LIB_D_TS: TestFile; beforeEach(() => { _ = absoluteFrom; LIB_D_TS = { name: _('/lib.d.ts'), contents: ` type Partial<T> = { [P in keyof T]?: T[P]; }; type Pick<T, K exten...
{ "end_byte": 10705, "start_byte": 1269, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/test/type_constructor_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/test/type_checker__completion_spec.ts_0_6973
/** * @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 {ParseTemplateOptions, TmplAstTemplate} from '@angular/compiler'; import ts from 'typescript'; import {absol...
{ "end_byte": 6973, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/test/type_checker__completion_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/test/input_signal_diagnostics_spec.ts_0_8481
/** * @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 '../../file_system/testing'; import {generateDiagnoseJasmineSpecs, TestCase} from...
{ "end_byte": 8481, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/test/input_signal_diagnostics_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/test/input_signal_diagnostics_spec.ts_8488_15676
{ id: 'generic inference and binding to directive, mix of zone and signal', inputs: { gen: { type: 'InputSignal<T>', isSignal: true, }, other: { type: 'T', isSignal: false, }, }, directiveGenerics: '<...
{ "end_byte": 15676, "start_byte": 8488, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/test/input_signal_diagnostics_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/test/program_spec.ts_0_4080
/** * @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 {absoluteFrom, AbsoluteFsPath, getSourceFileOrError} from '../../file_system'; ...
{ "end_byte": 4080, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/test/program_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/BUILD.bazel_0_590
load("//tools:defaults.bzl", "ts_library") ts_library( name = "template_semantics", srcs = glob( ["**/*.ts"], ), visibility = ["//packages/compiler-cli/src/ngtsc:__subpackages__"], deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/core:api", "//packa...
{ "end_byte": 590, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/api/api.ts_0_616
/** * @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 {TemplateDiagnostic} from '../../api'; /** * Interface to generate diagnostic...
{ "end_byte": 616, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/api/api.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/api/BUILD.bazel_0_442
load("//tools:defaults.bzl", "ts_library") ts_library( name = "api", srcs = glob( ["**/*.ts"], ), visibility = ["//packages/compiler-cli/src/ngtsc:__subpackages__"], deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/core:api", "//packages/compiler-cl...
{ "end_byte": 442, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/api/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/src/template_semantics_checker.ts_0_5589
/** * @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 { AST, ASTWithSource, ImplicitReceiver, ParsedEventType, PropertyRead, PropertyWrite, Recursive...
{ "end_byte": 5589, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/src/template_semantics_checker.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/testing/BUILD.bazel_0_1068
load("//tools:defaults.bzl", "ts_library") ts_library( name = "testing", testonly = True, srcs = glob([ "**/*.ts", ]), visibility = ["//packages/compiler-cli/src/ngtsc:__subpackages__"], deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/file_system", ...
{ "end_byte": 1068, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/testing/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/testing/index.ts_0_8012
/** * @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 { BindingPipe, CssSelector, ParseSourceFile, ParseSourceSpan, parseTemplate, ParseTemplateOptions...
{ "end_byte": 8012, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/testing/index.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/testing/index.ts_8013_13871
export interface TestDirective extends Partial< Pick< TypeCheckableDirectiveMeta, Exclude< keyof TypeCheckableDirectiveMeta, | 'ref' | 'coercedInputFields' | 'restrictedInputFields' | 'stringLiteralInputFields' | 'undeclaredInputFields' | 'inputs...
{ "end_byte": 13871, "start_byte": 8013, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/testing/index.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/testing/index.ts_13872_22623
export function setup( targets: TypeCheckingTarget[], overrides: { config?: Partial<TypeCheckingConfig>; options?: ts.CompilerOptions; inlining?: boolean; parseOptions?: ParseTemplateOptions; } = {}, ): { templateTypeChecker: TemplateTypeChecker; program: ts.Program; programStrategy: TsCreat...
{ "end_byte": 22623, "start_byte": 13872, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/testing/index.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/testing/index.ts_22625_31234
function getFakeMetadataReader( fakeMetadataRegistry: Map<any, DirectiveMeta | null>, ): MetadataReaderWithIndex { return { getDirectiveMetadata(node: Reference<ClassDeclaration>): DirectiveMeta | null { return fakeMetadataRegistry.get(node.debugName) ?? null; }, getKnown(kind: MetaKind): Array<Cl...
{ "end_byte": 31234, "start_byte": 22625, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/testing/index.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/testing/index.ts_31236_32312
export class NoopOobRecorder implements OutOfBandDiagnosticRecorder { get diagnostics(): ReadonlyArray<TemplateDiagnostic> { return []; } missingReferenceTarget(): void {} missingPipe(): void {} deferredPipeUsedEagerly(templateId: TemplateId, ast: BindingPipe): void {} deferredComponentUsedEagerly(templ...
{ "end_byte": 32312, "start_byte": 31236, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/testing/index.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/BUILD.bazel_0_523
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "diagnostics", srcs = glob(["**/*.ts"]), module_name = "@angular/compiler-cli/src/ngtsc/typecheck/diagnostics", deps = [ "//packages:types", "//packages/compiler", ...
{ "end_byte": 523, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/index.ts_0_264
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ export * from './src/diagnostic'; export * from './src/id';
{ "end_byte": 264, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/index.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.ts_0_6752
/** * @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 {ParseSourceSpan} from '@angular/compiler'; import ts from 'typescript'; import {addDiagnosticChain, makeDia...
{ "end_byte": 6752, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.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.dev/license */ import ts from 'typescript'; import {DeclarationNode} from '../../../reflection'; import {TemplateId} from '../../a...
{ "end_byte": 1047, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/BUILD.bazel_0_1594
load("//tools:defaults.bzl", "ts_library") ts_library( name = "extended", srcs = glob( ["**/*.ts"], ), visibility = ["//packages/compiler-cli/src/ngtsc:__subpackages__"], deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/core:api", "//packages/compil...
{ "end_byte": 1594, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/index.ts_0_2082
/** * @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, ExtendedTemplateDiagnosticName} from '../../diagnostics'; import {TemplateCheckFactory} from './...
{ "end_byte": 2082, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/index.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/skip_hydration_not_static/skip_hydration_not_static_spec.ts_0_5941
/** * @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, ExtendedTemplateDiagnosticName, ngErrorCode} from '../../../../../d...
{ "end_byte": 5941, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/skip_hydration_not_static/skip_hydration_not_static_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/skip_hydration_not_static/BUILD.bazel_0_956
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") ts_library( name = "test_lib", testonly = True, srcs = ["skip_hydration_not_static_spec.ts"], deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/core:api", "//packages/compiler-cli/src/ngtsc/diagnost...
{ "end_byte": 956, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/skip_hydration_not_static/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/optional_chain_not_nullable/optional_chain_not_nullable_spec.ts_0_873
/** * @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 {DiagnosticCategoryLabel} from '@angular/compiler-cli/src/ngtsc/core/api'; import ts from 'typescript'; impo...
{ "end_byte": 873, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/optional_chain_not_nullable/optional_chain_not_nullable_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/optional_chain_not_nullable/optional_chain_not_nullable_spec.ts_875_9355
runInEachFileSystem(() => { describe('OptionalChainNotNullableCheck', () => { it('binds the error code to its extended template diagnostic name', () => { expect(optionalChainNotNullableFactory.code).toBe(ErrorCode.OPTIONAL_CHAIN_NOT_NULLABLE); expect(optionalChainNotNullableFactory.name).toBe( ...
{ "end_byte": 9355, "start_byte": 875, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/optional_chain_not_nullable/optional_chain_not_nullable_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/optional_chain_not_nullable/optional_chain_not_nullable_spec.ts_9361_12364
it('should not produce optional chain warning for a type that includes undefined', () => { const fileName = absoluteFrom('/main.ts'); const {program, templateTypeChecker} = setup([ { fileName, templates: { 'TestCmp': `{{ var1?.bar }}`, }, source: '...
{ "end_byte": 12364, "start_byte": 9361, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/optional_chain_not_nullable/optional_chain_not_nullable_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/optional_chain_not_nullable/BUILD.bazel_0_960
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") ts_library( name = "test_lib", testonly = True, srcs = ["optional_chain_not_nullable_spec.ts"], deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/core:api", "//packages/compiler-cli/src/ngtsc/diagno...
{ "end_byte": 960, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/optional_chain_not_nullable/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/interpolated_signal_not_invoked/interpolated_signal_not_invoked_spec.ts_0_789
/** * @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, ExtendedTemplateDiagnosticName, ngErrorCode} from '../../../../../d...
{ "end_byte": 789, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/interpolated_signal_not_invoked/interpolated_signal_not_invoked_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/interpolated_signal_not_invoked/interpolated_signal_not_invoked_spec.ts_791_8880
runInEachFileSystem(() => { describe('Interpolated Signal', () => { it('binds the error code to its extended template diagnostic name', () => { expect(interpolatedSignalFactory.code).toBe(ErrorCode.INTERPOLATED_SIGNAL_NOT_INVOKED); expect(interpolatedSignalFactory.name).toBe( ExtendedTemplateD...
{ "end_byte": 8880, "start_byte": 791, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/interpolated_signal_not_invoked/interpolated_signal_not_invoked_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/interpolated_signal_not_invoked/interpolated_signal_not_invoked_spec.ts_8884_17543
it('should produce a warning when a required model signal is not invoked', () => { const fileName = absoluteFrom('/main.ts'); const {program, templateTypeChecker} = setup([ { fileName, templates: { 'TestCmp': `<div>{{ myRequiredModel }}</div>`, }, source: ` ...
{ "end_byte": 17543, "start_byte": 8884, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/interpolated_signal_not_invoked/interpolated_signal_not_invoked_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/interpolated_signal_not_invoked/interpolated_signal_not_invoked_spec.ts_17547_25859
it('should not produce a warning when signal is invoked on interpolated binding', () => { const fileName = absoluteFrom('/main.ts'); const {program, templateTypeChecker} = setup([ { fileName, templates: { 'TestCmp': `<div id="{{mySignal()}}"></div>`, }, source: ` ...
{ "end_byte": 25859, "start_byte": 17547, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/interpolated_signal_not_invoked/interpolated_signal_not_invoked_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/interpolated_signal_not_invoked/interpolated_signal_not_invoked_spec.ts_25863_29603
['name', 'length', 'prototype', 'set', 'update', 'asReadonly'].forEach( (functionInstanceProperty) => { it(`should produce a warning when a property named '${functionInstanceProperty}' of a not invoked signal is used in interpolation`, () => { const fileName = absoluteFrom('/main.ts'); const {...
{ "end_byte": 29603, "start_byte": 25863, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/interpolated_signal_not_invoked/interpolated_signal_not_invoked_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/interpolated_signal_not_invoked/BUILD.bazel_0_968
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") ts_library( name = "test_lib", testonly = True, srcs = ["interpolated_signal_not_invoked_spec.ts"], deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/core:api", "//packages/compiler-cli/src/ngtsc/di...
{ "end_byte": 968, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/interpolated_signal_not_invoked/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/uninvoked_function_in_event_binding/uninvoked_function_in_event_binding_spec.ts_0_806
/** * @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, ExtendedTemplateDiagnosticName, ngErrorCode} from '../../../../../d...
{ "end_byte": 806, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/uninvoked_function_in_event_binding/uninvoked_function_in_event_binding_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/uninvoked_function_in_event_binding/uninvoked_function_in_event_binding_spec.ts_808_8460
runInEachFileSystem(() => { describe('UninvokedFunctionInEventBindingFactoryCheck', () => { it('binds the error code to its extended template diagnostic name', () => { expect(uninvokedFunctionInEventBindingFactory.code).toBe( ErrorCode.UNINVOKED_FUNCTION_IN_EVENT_BINDING, ); expect(uninv...
{ "end_byte": 8460, "start_byte": 808, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/uninvoked_function_in_event_binding/uninvoked_function_in_event_binding_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/uninvoked_function_in_event_binding/uninvoked_function_in_event_binding_spec.ts_8462_9247
function setupTestComponent(template: string, classField: string) { const fileName = absoluteFrom('/main.ts'); const {program, templateTypeChecker} = setup([ { fileName, templates: {'TestCmp': template}, source: `export class TestCmp { ${classField} }`, }, ]); const sf = getSourceFileO...
{ "end_byte": 9247, "start_byte": 8462, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/uninvoked_function_in_event_binding/uninvoked_function_in_event_binding_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/uninvoked_function_in_event_binding/BUILD.bazel_0_976
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") ts_library( name = "test_lib", testonly = True, srcs = ["uninvoked_function_in_event_binding_spec.ts"], deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/core:api", "//packages/compiler-cli/src/ngts...
{ "end_byte": 976, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/uninvoked_function_in_event_binding/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/text_attribute_not_binding/BUILD.bazel_0_958
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") ts_library( name = "test_lib", testonly = True, srcs = ["text_attribute_not_binding_spec.ts"], deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/core:api", "//packages/compiler-cli/src/ngtsc/diagnos...
{ "end_byte": 958, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/text_attribute_not_binding/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/text_attribute_not_binding/text_attribute_not_binding_spec.ts_0_5327
/** * @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 {DiagnosticCategoryLabel} from '@angular/compiler-cli/src/ngtsc/core/api'; import ts from 'typescript'; impo...
{ "end_byte": 5327, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/text_attribute_not_binding/text_attribute_not_binding_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/nullish_coalescing_not_nullable/BUILD.bazel_0_968
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") ts_library( name = "test_lib", testonly = True, srcs = ["nullish_coalescing_not_nullable_spec.ts"], deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/core:api", "//packages/compiler-cli/src/ngtsc/di...
{ "end_byte": 968, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/nullish_coalescing_not_nullable/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/nullish_coalescing_not_nullable/nullish_coalescing_not_nullable_spec.ts_0_881
/** * @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 {DiagnosticCategoryLabel} from '@angular/compiler-cli/src/ngtsc/core/api'; import ts from 'typescript'; impo...
{ "end_byte": 881, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/nullish_coalescing_not_nullable/nullish_coalescing_not_nullable_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/nullish_coalescing_not_nullable/nullish_coalescing_not_nullable_spec.ts_883_8802
runInEachFileSystem(() => { describe('NullishCoalescingNotNullableCheck', () => { it('binds the error code to its extended template diagnostic name', () => { expect(nullishCoalescingNotNullableFactory.code).toBe( ErrorCode.NULLISH_COALESCING_NOT_NULLABLE, ); expect(nullishCoalescingNotNu...
{ "end_byte": 8802, "start_byte": 883, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/nullish_coalescing_not_nullable/nullish_coalescing_not_nullable_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/nullish_coalescing_not_nullable/nullish_coalescing_not_nullable_spec.ts_8808_13607
it('warns for pipe arguments which are likely configured incorrectly (?? operates on "format" here)', () => { const fileName = absoluteFrom('/main.ts'); const {program, templateTypeChecker} = setup([ { fileName, templates: { 'TestCmp': `{{ 123 | date: 'format' ?? 'inv...
{ "end_byte": 13607, "start_byte": 8808, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/nullish_coalescing_not_nullable/nullish_coalescing_not_nullable_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/missing_control_flow_directive/BUILD.bazel_0_966
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") ts_library( name = "test_lib", testonly = True, srcs = ["missing_control_flow_directive_spec.ts"], deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/core:api", "//packages/compiler-cli/src/ngtsc/dia...
{ "end_byte": 966, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/missing_control_flow_directive/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/missing_control_flow_directive/missing_control_flow_directive_spec.ts_0_7148
/** * @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 '../../../../../diagnostics'; import {absoluteFro...
{ "end_byte": 7148, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/missing_control_flow_directive/missing_control_flow_directive_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/suffix_not_supported/BUILD.bazel_0_946
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") ts_library( name = "test_lib", testonly = True, srcs = ["suffix_not_supported_spec.ts"], deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/core:api", "//packages/compiler-cli/src/ngtsc/diagnostics",...
{ "end_byte": 946, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/suffix_not_supported/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/suffix_not_supported/suffix_not_supported_spec.ts_0_3840
/** * @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 {DiagnosticCategoryLabel} from '@angular/compiler-cli/src/ngtsc/core/api'; import ts from 'typescript'; impo...
{ "end_byte": 3840, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/suffix_not_supported/suffix_not_supported_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/missing_ngforof_let/missing_ngforof_let_spec.ts_0_4027
/** * @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, ExtendedTemplateDiagnosticName, ngErrorCode} from '../../../../../d...
{ "end_byte": 4027, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/missing_ngforof_let/missing_ngforof_let_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/missing_ngforof_let/BUILD.bazel_0_944
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") ts_library( name = "test_lib", testonly = True, srcs = ["missing_ngforof_let_spec.ts"], deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/core:api", "//packages/compiler-cli/src/ngtsc/diagnostics", ...
{ "end_byte": 944, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/missing_ngforof_let/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/invalid_banana_in_box/BUILD.bazel_0_948
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") ts_library( name = "test_lib", testonly = True, srcs = ["invalid_banana_in_box_spec.ts"], deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/core:api", "//packages/compiler-cli/src/ngtsc/diagnostics"...
{ "end_byte": 948, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/invalid_banana_in_box/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/invalid_banana_in_box/invalid_banana_in_box_spec.ts_0_6555
/** * @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 {DiagnosticCategoryLabel} from '../../../../../core/api'; import {ErrorCode, Ex...
{ "end_byte": 6555, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/invalid_banana_in_box/invalid_banana_in_box_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/unused_let_declaration/unused_let_declaration_spec.ts_0_3926
/** * @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, ExtendedTemplateDiagnosticName, ngErrorCode} from '../../../../../d...
{ "end_byte": 3926, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/unused_let_declaration/unused_let_declaration_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/unused_let_declaration/BUILD.bazel_0_950
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") ts_library( name = "test_lib", testonly = True, srcs = ["unused_let_declaration_spec.ts"], deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/core:api", "//packages/compiler-cli/src/ngtsc/diagnostics...
{ "end_byte": 950, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/unused_let_declaration/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/skip_hydration_not_static/BUILD.bazel_0_527
load("//tools:defaults.bzl", "ts_library") ts_library( name = "skip_hydration_not_static", srcs = ["index.ts"], visibility = [ "//packages/compiler-cli/src/ngtsc:__subpackages__", "//packages/compiler-cli/test/ngtsc:__pkg__", ], deps = [ "//packages/compiler", "//pac...
{ "end_byte": 527, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/skip_hydration_not_static/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/skip_hydration_not_static/index.ts_0_2386
/** * @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 {AST, TmplAstBoundAttribute, TmplAstNode, TmplAstTextAttribute} from '@angular/compiler'; import ts from 'typ...
{ "end_byte": 2386, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/skip_hydration_not_static/index.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/BUILD.bazel_0_514
load("//tools:defaults.bzl", "ts_library") ts_library( name = "optional_chain_not_nullable", srcs = ["index.ts"], visibility = ["//packages/compiler-cli/src/ngtsc:__subpackages__"], deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/core:api", "//packages/compile...
{ "end_byte": 514, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.ts_0_3574
/** * @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 {AST, SafeCall, SafeKeyedRead, SafePropertyRead, TmplAstNode} from '@angular/compiler'; import ts from 'types...
{ "end_byte": 3574, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/BUILD.bazel_0_588
load("//tools:defaults.bzl", "ts_library") ts_library( name = "interpolated_signal_not_invoked", srcs = ["index.ts"], visibility = [ "//packages/compiler-cli/src/ngtsc:__subpackages__", "//packages/compiler-cli/test/ngtsc:__pkg__", ], deps = [ "//packages/compiler", ...
{ "end_byte": 588, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.ts_0_5489
/** * @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 { AST, ASTWithSource, BindingType, Interpolation, PropertyRead, TmplAstBoundAttribute, TmplAstN...
{ "end_byte": 5489, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/uninvoked_function_in_event_binding/BUILD.bazel_0_537
load("//tools:defaults.bzl", "ts_library") ts_library( name = "uninvoked_function_in_event_binding", srcs = ["index.ts"], visibility = [ "//packages/compiler-cli/src/ngtsc:__subpackages__", "//packages/compiler-cli/test/ngtsc:__pkg__", ], deps = [ "//packages/compiler", ...
{ "end_byte": 537, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/uninvoked_function_in_event_binding/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/uninvoked_function_in_event_binding/index.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 */ import { AST, ASTWithSource, Call, Chain, Conditional, ParsedEventType, PropertyRead, SafeCall, Sa...
{ "end_byte": 4268, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/uninvoked_function_in_event_binding/index.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/BUILD.bazel_0_528
load("//tools:defaults.bzl", "ts_library") ts_library( name = "text_attribute_not_binding", srcs = ["index.ts"], visibility = [ "//packages/compiler-cli/src/ngtsc:__subpackages__", "//packages/compiler-cli/test/ngtsc:__pkg__", ], deps = [ "//packages/compiler", "//pa...
{ "end_byte": 528, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.ts_0_2819
/** * @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 {AST, TmplAstNode, TmplAstTextAttribute} from '@angular/compiler'; import ts from 'typescript'; import {Erro...
{ "end_byte": 2819, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/BUILD.bazel_0_518
load("//tools:defaults.bzl", "ts_library") ts_library( name = "nullish_coalescing_not_nullable", srcs = ["index.ts"], visibility = ["//packages/compiler-cli/src/ngtsc:__subpackages__"], deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/core:api", "//packages/com...
{ "end_byte": 518, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.ts_0_3353
/** * @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 {AST, Binary, TmplAstNode} from '@angular/compiler'; import ts from 'typescript'; import {NgCompilerOptions}...
{ "end_byte": 3353, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/BUILD.bazel_0_517
load("//tools:defaults.bzl", "ts_library") ts_library( name = "missing_control_flow_directive", srcs = ["index.ts"], visibility = ["//packages/compiler-cli/src/ngtsc:__subpackages__"], deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/core:api", "//packages/comp...
{ "end_byte": 517, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.ts_0_4199
/** * @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 {AST, TmplAstNode, TmplAstTemplate} from '@angular/compiler'; import ts from 'typescript'; import {NgCompile...
{ "end_byte": 4199, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/BUILD.bazel_0_507
load("//tools:defaults.bzl", "ts_library") ts_library( name = "suffix_not_supported", srcs = ["index.ts"], visibility = ["//packages/compiler-cli/src/ngtsc:__subpackages__"], deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/core:api", "//packages/compiler-cli/s...
{ "end_byte": 507, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.ts_0_1876
/** * @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 {AST, TmplAstBoundAttribute, TmplAstNode} from '@angular/compiler'; import ts from 'typescript'; import {Err...
{ "end_byte": 1876, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/BUILD.bazel_0_521
load("//tools:defaults.bzl", "ts_library") ts_library( name = "missing_ngforof_let", srcs = ["index.ts"], visibility = [ "//packages/compiler-cli/src/ngtsc:__subpackages__", "//packages/compiler-cli/test/ngtsc:__pkg__", ], deps = [ "//packages/compiler", "//packages/...
{ "end_byte": 521, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.ts_0_1893
/** * @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 {AST, TmplAstNode, TmplAstTemplate} from '@angular/compiler'; import ts from 'typescript'; import {ErrorCode...
{ "end_byte": 1893, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/BUILD.bazel_0_523
load("//tools:defaults.bzl", "ts_library") ts_library( name = "invalid_banana_in_box", srcs = ["index.ts"], visibility = [ "//packages/compiler-cli/src/ngtsc:__subpackages__", "//packages/compiler-cli/test/ngtsc:__pkg__", ], deps = [ "//packages/compiler", "//package...
{ "end_byte": 523, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.ts_0_1963
/** * @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 {AST, TmplAstBoundEvent, TmplAstNode} from '@angular/compiler'; import ts from 'typescript'; import {ErrorCo...
{ "end_byte": 1963, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/unused_let_declaration/BUILD.bazel_0_524
load("//tools:defaults.bzl", "ts_library") ts_library( name = "unused_let_declaration", srcs = ["index.ts"], visibility = [ "//packages/compiler-cli/src/ngtsc:__subpackages__", "//packages/compiler-cli/test/ngtsc:__pkg__", ], deps = [ "//packages/compiler", "//packag...
{ "end_byte": 524, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/unused_let_declaration/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/unused_let_declaration/index.ts_0_3006
/** * @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 {AST, ASTWithSource, TmplAstLetDeclaration, TmplAstNode} from '@angular/compiler'; import ts from 'typescript...
{ "end_byte": 3006, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/unused_let_declaration/index.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/api/extended_template_checker.ts_0_600
/** * @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 {TemplateDiagnostic} from '../../api'; /** * Interface to generate extended t...
{ "end_byte": 600, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/api/extended_template_checker.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.ts_0_4687
/** * @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 { AST, ASTWithSource, ParseSourceSpan, RecursiveAstVisitor, TmplAstBoundAttribute, TmplAstBoundDe...
{ "end_byte": 4687, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.ts_4688_9367
class TemplateVisitor<Code extends ErrorCode> extends RecursiveAstVisitor implements TmplAstRecursiveVisitor { diagnostics: NgTemplateDiagnostic<Code>[] = []; constructor( private readonly ctx: TemplateContext<Code>, private readonly component: ts.ClassDeclaration, private readonly check: TemplateC...
{ "end_byte": 9367, "start_byte": 4688, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/api/BUILD.bazel_0_442
load("//tools:defaults.bzl", "ts_library") ts_library( name = "api", srcs = glob( ["**/*.ts"], ), visibility = ["//packages/compiler-cli/src/ngtsc:__subpackages__"], deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/core:api", "//packages/compiler-cl...
{ "end_byte": 442, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/api/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/api/index.ts_0_272
/** * @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 './api'; export * from './extended_template_checker';
{ "end_byte": 272, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/api/index.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.ts_0_4302
/** * @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 {ParseSourceSpan} from '@angular/compiler'; import ts from 'typescript'; import {DiagnosticCategoryLabel, Ng...
{ "end_byte": 4302, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/api/checker.ts_0_1687
/** * @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 { AST, LiteralPrimitive, ParseSourceSpan, PropertyRead, SafePropertyRead, TemplateEntity, TmplA...
{ "end_byte": 1687, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/api/checker.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/api/checker.ts_1688_9914
export interface TemplateTypeChecker { /** * Retrieve the template in use for the given component. */ getTemplate(component: ts.ClassDeclaration, optimizeFor?: OptimizeFor): TmplAstNode[] | null; /** * Get all `ts.Diagnostic`s currently available for the given `ts.SourceFile`. * * This method will...
{ "end_byte": 9914, "start_byte": 1688, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/api/checker.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/api/checker.ts_9915_10742
export enum OptimizeFor { /** * Indicates that a consumer of a `TemplateTypeChecker` is only interested in results for a * given file, and wants them as fast as possible. * * Calling `TemplateTypeChecker` methods successively for multiple files while specifying * `OptimizeFor.SingleFile` can result in ...
{ "end_byte": 10742, "start_byte": 9915, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/api/checker.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/api/scope.ts_0_2395
/** * @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 {EmittedReference, Reference} from '../../imports'; import {ClassDeclaration} f...
{ "end_byte": 2395, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/api/scope.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/api/context.ts_0_2587
/** * @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 { ParseError, ParseSourceFile, R3TargetBinder, SchemaMetadata, TmplAstNode, } from '@angular/compil...
{ "end_byte": 2587, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/api/context.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.ts_0_7991
/** * @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 { TmplAstElement, TmplAstLetDeclaration, TmplAstReference, TmplAstTemplate, TmplAstVariable, } from...
{ "end_byte": 7991, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.ts_7993_10286
export interface TemplateSymbol { kind: SymbolKind.Template; /** A list of directives applied to the element. */ directives: DirectiveSymbol[]; templateNode: TmplAstTemplate; } /** Interface shared between host and non-host directives. */ interface DirectiveSymbolBase extends PotentialDirective { kind: Sym...
{ "end_byte": 10286, "start_byte": 7993, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/api/api.ts_0_3287
/** * @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 { AbsoluteSourceSpan, BoundTarget, DirectiveMeta, ParseSourceSpan, SchemaMetadata, } from '@angular...
{ "end_byte": 3287, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/api/api.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/api/api.ts_3289_11351
export interface TypeCheckingConfig { /** * Whether to check the left-hand side type of binding operations. * * For example, if this is `false` then the expression `[input]="expr"` will have `expr` type- * checked, but not the assignment of the resulting type to the `input` property of whichever * dire...
{ "end_byte": 11351, "start_byte": 3289, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/api/api.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/api/api.ts_11355_14869
/** * Whether to use inline type constructors. * * If this is `true`, create inline type constructors when required. For example, if a type * constructor's parameters has private types, it cannot be created normally, so we inline it in * the directives definition file. * * If false, do not create i...
{ "end_byte": 14869, "start_byte": 11355, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/api/api.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/api/BUILD.bazel_0_662
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "api", srcs = glob(["**/*.ts"]), module_name = "@angular/compiler-cli/src/ngtsc/typecheck/api", deps = [ "//packages:types", "//packages/compiler", "//packages/co...
{ "end_byte": 662, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/api/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/typecheck/api/index.ts_0_363
/** * @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 './api'; export * from './checker'; export * from './completion'; export * from './context'; export * ...
{ "end_byte": 363, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/api/index.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/api/completion.ts_0_2790
/** * @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 {TmplAstLetDeclaration, TmplAstReference, TmplAstVariable} from '@angular/compiler'; import {TcbLocation} fr...
{ "end_byte": 2790, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/api/completion.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/src/comments.ts_0_6612
/** * @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 {AbsoluteSourceSpan, ParseSourceSpan} from '@angular/compiler'; import ts from 'typescript'; const parseSpan...
{ "end_byte": 6612, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/src/comments.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/src/checker.ts_0_2704
/** * @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 { AST, CssSelector, DomElementSchemaRegistry, ExternalExpr, LiteralPrimitive, ParseSourceSpan, ...
{ "end_byte": 2704, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/src/checker.ts" }
angular/packages/compiler-cli/src/ngtsc/typecheck/src/checker.ts_2705_9829
export class TemplateTypeCheckerImpl implements TemplateTypeChecker { private state = new Map<AbsoluteFsPath, FileTypeCheckingData>(); /** * Stores the `CompletionEngine` which powers autocompletion for each component class. * * Must be invalidated whenever the component's template or the `ts.Program` cha...
{ "end_byte": 9829, "start_byte": 2705, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/typecheck/src/checker.ts" }