_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_factory_linker_1.ts_0_2210
/** * @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 { compileFactoryFunction, ConstantPool, FactoryTarget, outputAst as o, R3DeclareFactoryMetadata, R...
{ "end_byte": 2210, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_factory_linker_1.ts" }
angular/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_ng_module_linker_1.ts_0_4713
/** * @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 { compileNgModule, ConstantPool, outputAst as o, R3DeclareNgModuleMetadata, R3NgModuleMetadata, R3...
{ "end_byte": 4713, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_ng_module_linker_1.ts" }
angular/packages/compiler-cli/linker/src/file_linker/partial_linkers/util.ts_0_4364
/** * @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 { createMayBeForwardRefExpression, ForwardRefHandling, MaybeForwardRefExpression, outputAst as o, R3...
{ "end_byte": 4364, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/partial_linkers/util.ts" }
angular/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_injectable_linker_1.ts_0_2486
/** * @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 { compileInjectable, ConstantPool, createMayBeForwardRefExpression, ForwardRefHandling, outputAst as...
{ "end_byte": 2486, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_injectable_linker_1.ts" }
angular/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_class_metadata_async_linker_1.ts_0_2020
/** * @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 { compileOpaqueAsyncClassMetadata, ConstantPool, R3ClassMetadata, R3DeclareClassMetadataAsync, } from ...
{ "end_byte": 2020, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_class_metadata_async_linker_1.ts" }
angular/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_linker_selector.ts_0_6129
/** * @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 {AbsoluteFsPath} from '../../../../src/ngtsc/file_system'; import {Logger} from ...
{ "end_byte": 6129, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_linker_selector.ts" }
angular/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_linker_selector.ts_6130_9280
vate readonly linkers: Map<string, LinkerRange<TExpression>[]>, private readonly logger: Logger, private readonly unknownDeclarationVersionHandling: 'ignore' | 'warn' | 'error', ) {} /** * Returns true if there are `PartialLinker` classes that can handle functions with this name. */ supportsDeclara...
{ "end_byte": 9280, "start_byte": 6130, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_linker_selector.ts" }
angular/packages/compiler-cli/private/babel.d.ts_0_1684
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // The following modules are declared to work around a limitation in tsc_wrapped's `strict_deps` // check. Since Bab...
{ "end_byte": 1684, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/private/babel.d.ts" }
angular/packages/compiler-cli/private/bazel.ts_0_364
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * @fileoverview The API from compiler-cli that the `@angular/bazel` * package requires for ngc-wrapped. */ e...
{ "end_byte": 364, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/private/bazel.ts" }
angular/packages/compiler-cli/private/tooling.ts_0_1239
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * @fileoverview * This file is used as a private API channel to shared Angular FW APIs with @angular/cli. * ...
{ "end_byte": 1239, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/private/tooling.ts" }
angular/packages/compiler-cli/private/migrations.ts_0_914
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * @fileoverview The API from compiler-cli that the `@angular/core` * package requires for migration schematics...
{ "end_byte": 914, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/private/migrations.ts" }
angular/packages/compiler-cli/private/localize.ts_0_456
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * @fileoverview The API from compiler-cli that the `@angular/localize` * package requires. */ export * from ...
{ "end_byte": 456, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/private/localize.ts" }
angular/packages/compiler-cli/private/README.md_0_726
This is a directory defining the `@angular/compiler-cli/private` entry-point. The entry-point can be used to expose code that is needed by other Angular framework packages, without having to expose code through the primary entry-point. The primary entry-point has a couple of downsides when it comes to cross-package im...
{ "end_byte": 726, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/private/README.md" }
angular/packages/compiler-cli/private/BUILD.bazel_0_829
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "private", srcs = glob(["*.ts"]), deps = [ "//packages/compiler-cli/src/ngtsc/annotations", "//packages/compiler-cli/src/ngtsc/file_system", "//packages/compiler-cli/...
{ "end_byte": 829, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/private/BUILD.bazel" }
angular/packages/compiler-cli/integrationtest/BUILD.bazel_0_534
load("//tools:defaults.bzl", "nodejs_binary") package(default_visibility = ["//visibility:public"]) nodejs_binary( name = "ngc_bin", data = [ "//packages/compiler-cli", "@npm//chokidar", "@npm//reflect-metadata", ], entry_point = "//packages/compiler-cli:src/main.ts", ) nodejs...
{ "end_byte": 534, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/BUILD.bazel" }
angular/packages/compiler-cli/integrationtest/bazel/injector_def/ivy_build/app/BUILD.bazel_0_316
load("//tools:defaults.bzl", "ng_module") package(default_visibility = ["//visibility:public"]) ng_module( name = "app", srcs = glob( [ "src/**/*.ts", ], ), module_name = "app_built", tags = [], deps = [ "//packages/core", "@npm//rxjs", ], )
{ "end_byte": 316, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/bazel/injector_def/ivy_build/app/BUILD.bazel" }
angular/packages/compiler-cli/integrationtest/bazel/injector_def/ivy_build/app/test/module_spec.ts_0_2190
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { forwardRef, Injectable, InjectionToken, Injector, NgModule, ɵcreateInjector as createInjector, ...
{ "end_byte": 2190, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/bazel/injector_def/ivy_build/app/test/module_spec.ts" }
angular/packages/compiler-cli/integrationtest/bazel/injector_def/ivy_build/app/test/BUILD.bazel_0_539
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/compiler-cli/integrationtest/bazel/injector...
{ "end_byte": 539, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/bazel/injector_def/ivy_build/app/test/BUILD.bazel" }
angular/packages/compiler-cli/integrationtest/bazel/injector_def/ivy_build/app/src/module.ts_0_793
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Injectable, InjectionToken, NgModule} from '@angular/core'; export const AOT_TOKEN = new InjectionToken<str...
{ "end_byte": 793, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/bazel/injector_def/ivy_build/app/src/module.ts" }
angular/packages/compiler-cli/integrationtest/bazel/injectable_def/lib2/module.ts_0_770
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Component, Injector, NgModule} from '@angular/core'; import {Lib1Module, Service} from 'lib1_built/module'; ...
{ "end_byte": 770, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/bazel/injectable_def/lib2/module.ts" }
angular/packages/compiler-cli/integrationtest/bazel/injectable_def/lib2/BUILD.bazel_0_376
load("//tools:defaults.bzl", "ng_module") package(default_visibility = ["//visibility:public"]) ng_module( name = "lib2", srcs = glob( [ "**/*.ts", ], ), module_name = "lib2_built", deps = [ "//packages/compiler-cli/integrationtest/bazel/injectable_def/lib1", ...
{ "end_byte": 376, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/bazel/injectable_def/lib2/BUILD.bazel" }
angular/packages/compiler-cli/integrationtest/bazel/injectable_def/app/BUILD.bazel_0_539
load("//tools:defaults.bzl", "ng_module") package(default_visibility = ["//visibility:public"]) ng_module( name = "app", testonly = True, srcs = glob( [ "src/**/*.ts", ], ), module_name = "app_built", deps = [ "//packages/compiler-cli/integrationtest/bazel/i...
{ "end_byte": 539, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/bazel/injectable_def/app/BUILD.bazel" }
angular/packages/compiler-cli/integrationtest/bazel/injectable_def/app/test/BUILD.bazel_0_726
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/compiler-cli/integrationtest/bazel/injectab...
{ "end_byte": 726, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/bazel/injectable_def/app/test/BUILD.bazel" }
angular/packages/compiler-cli/integrationtest/bazel/injectable_def/app/test/app_spec.ts_0_5988
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Component, Injectable, INJECTOR, NgModule} from '@angular/core'; import {TestBed} from '@angular/core/testin...
{ "end_byte": 5988, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/bazel/injectable_def/app/test/app_spec.ts" }
angular/packages/compiler-cli/integrationtest/bazel/injectable_def/app/src/root_service.ts_0_310
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Injectable} from '@angular/core'; @Injectable({ providedIn: 'root', }) export class Service {}
{ "end_byte": 310, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/bazel/injectable_def/app/src/root_service.ts" }
angular/packages/compiler-cli/integrationtest/bazel/injectable_def/app/src/string.ts_0_940
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Component, Inject, Injectable, NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platfor...
{ "end_byte": 940, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/bazel/injectable_def/app/src/string.ts" }
angular/packages/compiler-cli/integrationtest/bazel/injectable_def/app/src/root_lazy.ts_0_905
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Component, NgModule, Optional, Self} from '@angular/core'; import {RouterModule} from '@angular/router'; imp...
{ "end_byte": 905, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/bazel/injectable_def/app/src/root_lazy.ts" }
angular/packages/compiler-cli/integrationtest/bazel/injectable_def/app/src/root.ts_0_991
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Component, NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; import {...
{ "end_byte": 991, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/bazel/injectable_def/app/src/root.ts" }
angular/packages/compiler-cli/integrationtest/bazel/injectable_def/app/src/basic.ts_0_701
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Component, NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; import {...
{ "end_byte": 701, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/bazel/injectable_def/app/src/basic.ts" }
angular/packages/compiler-cli/integrationtest/bazel/injectable_def/app/src/self.ts_0_994
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Component, Injectable, NgModule, Optional, Self} from '@angular/core'; import {BrowserModule} from '@angular...
{ "end_byte": 994, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/bazel/injectable_def/app/src/self.ts" }
angular/packages/compiler-cli/integrationtest/bazel/injectable_def/app/src/hierarchy.ts_0_995
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Component, Injectable, NgModule, Optional, Self} from '@angular/core'; import {BrowserModule} from '@angular...
{ "end_byte": 995, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/bazel/injectable_def/app/src/hierarchy.ts" }
angular/packages/compiler-cli/integrationtest/bazel/injectable_def/app/src/index.ts_0_242
/** * @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 {RootAppModule} from './root';
{ "end_byte": 242, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/bazel/injectable_def/app/src/index.ts" }
angular/packages/compiler-cli/integrationtest/bazel/injectable_def/app/src/token.ts_0_1231
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { Component, forwardRef, Inject, inject, Injectable, InjectionToken, NgModule, } from '@angular...
{ "end_byte": 1231, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/bazel/injectable_def/app/src/token.ts" }
angular/packages/compiler-cli/integrationtest/bazel/injectable_def/app/src/dep.ts_0_942
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Component, Injectable, NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platform-browse...
{ "end_byte": 942, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/bazel/injectable_def/app/src/dep.ts" }
angular/packages/compiler-cli/integrationtest/bazel/injectable_def/lib1/module.ts_0_433
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Injectable, NgModule} from '@angular/core'; @NgModule({}) export class Lib1Module {} @Injectable({ provi...
{ "end_byte": 433, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/bazel/injectable_def/lib1/module.ts" }
angular/packages/compiler-cli/integrationtest/bazel/injectable_def/lib1/BUILD.bazel_0_299
load("//tools:defaults.bzl", "ng_module") package(default_visibility = ["//visibility:public"]) ng_module( name = "lib1", srcs = glob( [ "**/*.ts", ], ), module_name = "lib1_built", deps = [ "//packages/core", "@npm//rxjs", ], )
{ "end_byte": 299, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/integrationtest/bazel/injectable_def/lib1/BUILD.bazel" }
angular/packages/compiler-cli/src/perform_compile.ts_0_7912
/** * @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, createFileSystemTsReadDirectoryFn, File...
{ "end_byte": 7912, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/perform_compile.ts" }
angular/packages/compiler-cli/src/perform_compile.ts_7914_11476
export function performCompilation<CbEmitRes extends ts.EmitResult = ts.EmitResult>({ rootNames, options, host, oldProgram, emitCallback, mergeEmitResultsCallback, gatherDiagnostics = defaultGatherDiagnostics, customTransformers, emitFlags = api.EmitFlags.Default, forceEmit = false, modifiedResour...
{ "end_byte": 11476, "start_byte": 7914, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/perform_compile.ts" }
angular/packages/compiler-cli/src/main.ts_0_7006
/** * @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 yargs from 'yargs'; import { exitCodeFromResult, formatDiagnostics, Parse...
{ "end_byte": 7006, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/main.ts" }
angular/packages/compiler-cli/src/perform_watch.ts_0_4307
/** * @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 chokidar from 'chokidar'; import * as path from 'path'; import ts from 'typescript'; import { exitCod...
{ "end_byte": 4307, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/perform_watch.ts" }
angular/packages/compiler-cli/src/perform_watch.ts_4308_11839
export function performWatchCompilation(host: PerformWatchHost): { close: () => void; ready: (cb: () => void) => void; firstCompileResult: ReadonlyArray<ts.Diagnostic>; } { let cachedProgram: api.Program | undefined; // Program cached from last compilation let cachedCompilerHost: api.CompilerHost | undefined;...
{ "end_byte": 11839, "start_byte": 4308, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/perform_watch.ts" }
angular/packages/compiler-cli/src/extract_i18n.ts_0_1442
/** * @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 */ /** * Extract i18n messages from source code */ import yargs from 'yargs'; import {main, readCommandLineAndConfi...
{ "end_byte": 1442, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/extract_i18n.ts" }
angular/packages/compiler-cli/src/typescript_support.ts_0_2284
/** * @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 {compareVersions} from './version_helpers'; /** * Minimum supported TypeScript...
{ "end_byte": 2284, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/typescript_support.ts" }
angular/packages/compiler-cli/src/version.ts_0_405
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * @module * @description * Entry point for all public APIs of the compiler-cli package. */ import {Version}...
{ "end_byte": 405, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/version.ts" }
angular/packages/compiler-cli/src/version_helpers.ts_0_3165
/** * @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 */ /** * Converts a `string` version into an array of numbers * @example * toNumbers('2.0.1'); // returns [2, 0, 1] ...
{ "end_byte": 3165, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/version_helpers.ts" }
angular/packages/compiler-cli/src/bin/ngc.ts_0_823
#!/usr/bin/env node /** * @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 */ // Must be imported first, because Angular decorators throw on load. import 'reflect-metadata'; ...
{ "end_byte": 823, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/bin/ngc.ts" }
angular/packages/compiler-cli/src/bin/ng_xi18n.ts_0_679
#!/usr/bin/env node /** * @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 */ // Must be imported first, because Angular decorators throw on load. import 'reflect-metadata'; ...
{ "end_byte": 679, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/bin/ng_xi18n.ts" }
angular/packages/compiler-cli/src/transformers/program.ts_0_617
/** * @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 {NgtscProgram} from '../ngtsc/program'; import {CompilerHost, CompilerOptions, Program} from './api'; expor...
{ "end_byte": 617, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/transformers/program.ts" }
angular/packages/compiler-cli/src/transformers/i18n.ts_0_2177
/** * @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 {MessageBundle, Serializer, Xliff, Xliff2, Xmb} from '@angular/compiler'; import * as path from 'path'; impor...
{ "end_byte": 2177, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/transformers/i18n.ts" }
angular/packages/compiler-cli/src/transformers/api.ts_0_6357
/** * @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 {ExtendedTsCompilerHost, NgCompilerOptions} from '../ngtsc/core/api'; export c...
{ "end_byte": 6357, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/transformers/api.ts" }
angular/packages/compiler-cli/src/transformers/api.ts_6359_9736
xport interface Program { /** * Retrieve the TypeScript program used to produce semantic diagnostics and emit the sources. * * Angular structural information is required to produce the program. */ getTsProgram(): ts.Program; /** * Retrieve options diagnostics for the TypeScript options used to cre...
{ "end_byte": 9736, "start_byte": 6359, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/transformers/api.ts" }
angular/packages/compiler-cli/src/transformers/entry_points.ts_0_297
/** * @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 {createCompilerHost} from './compiler_host'; export {createProgram} from './program';
{ "end_byte": 297, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/transformers/entry_points.ts" }
angular/packages/compiler-cli/src/transformers/util.ts_0_958
/** * @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 {DEFAULT_ERROR_CODE, SOURCE} from './api'; export function error(msg: string):...
{ "end_byte": 958, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/transformers/util.ts" }
angular/packages/compiler-cli/src/transformers/compiler_host.ts_0_782
/** * @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 {CompilerHost, CompilerOptions} from './api'; let wrapHostForTest: ((host: ts....
{ "end_byte": 782, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/transformers/compiler_host.ts" }
angular/packages/compiler-cli/src/ngtsc/tsc_plugin.ts_0_6403
/** * @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 { CompilationTicket, freshCompilationTicket, incrementalFromStateTicket, ...
{ "end_byte": 6403, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/tsc_plugin.ts" }
angular/packages/compiler-cli/src/ngtsc/program.ts_0_9015
/** * @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 {HtmlParser, MessageBundle} from '@angular/compiler'; import ts from 'typescript'; import * as api from '../...
{ "end_byte": 9015, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/program.ts" }
angular/packages/compiler-cli/src/ngtsc/program.ts_9019_14499
emit<CbEmitRes extends ts.EmitResult>( opts?: api.EmitOptions<CbEmitRes> | undefined, ): ts.EmitResult { // Check if emission of the i18n messages bundle was requested. if ( opts !== undefined && opts.emitFlags !== undefined && opts.emitFlags & api.EmitFlags.I18nBundle ) { this...
{ "end_byte": 14499, "start_byte": 9019, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/program.ts" }
angular/packages/compiler-cli/src/ngtsc/cycles/BUILD.bazel_0_356
package(default_visibility = ["//visibility:public"]) load("//tools:defaults.bzl", "ts_library") ts_library( name = "cycles", srcs = ["index.ts"] + glob([ "src/**/*.ts", ]), module_name = "@angular/compiler-cli/src/ngtsc/cycles", deps = [ "//packages/compiler-cli/src/ngtsc/perf", ...
{ "end_byte": 356, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/cycles/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/cycles/index.ts_0_323
/** * @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 {Cycle, CycleAnalyzer, CycleHandlingStrategy} from './src/analyzer'; export {ImportGraph} from './src/imports...
{ "end_byte": 323, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/cycles/index.ts" }
angular/packages/compiler-cli/src/ngtsc/cycles/test/imports_spec.ts_0_2943
/** * @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} from '../../file_system'; imp...
{ "end_byte": 2943, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/cycles/test/imports_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/cycles/test/analyzer_spec.ts_0_4872
/** * @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} from '../../file_system'; imp...
{ "end_byte": 4872, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/cycles/test/analyzer_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/cycles/test/util.ts_0_2326
/** * @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 {getFileSystem, PathManipulation} from '../../file_system'; import {TestFile} fr...
{ "end_byte": 2326, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/cycles/test/util.ts" }
angular/packages/compiler-cli/src/ngtsc/cycles/test/BUILD.bazel_0_711
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-cli/src/ngtsc/cycles", ...
{ "end_byte": 711, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/cycles/test/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/cycles/src/imports.ts_0_5358
/** * @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 {PerfPhase, PerfRecorder} from '../../perf'; /** * A cached graph of imports ...
{ "end_byte": 5358, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/cycles/src/imports.ts" }
angular/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.ts_0_5283
/** * @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 {ImportGraph} from './imports'; /** * Analyzes a `ts.Program` for cycles. */...
{ "end_byte": 5283, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.ts" }
angular/packages/compiler-cli/src/ngtsc/program_driver/README.md_0_2512
# The Program Driver interface `ProgramDriver` is a small but important interface which allows the template type-checking machinery to request changes to the current `ts.Program`, and to receive a new `ts.Program` with those changes applied. This is used to add template type-checking code to the current `ts.Program`, ...
{ "end_byte": 2512, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/program_driver/README.md" }
angular/packages/compiler-cli/src/ngtsc/program_driver/BUILD.bazel_0_477
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "program_driver", srcs = ["index.ts"] + glob([ "src/*.ts", ]), module_name = "@angular/compiler-cli/src/ngtsc/program_driver", deps = [ "//packages/compiler-cli/src/n...
{ "end_byte": 477, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/program_driver/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/program_driver/index.ts_0_301
/** * @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/api'; export {TsCreateProgramDriver} from './src/ts_create_program_driver';
{ "end_byte": 301, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/program_driver/index.ts" }
angular/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.ts_0_7174
/** * @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 {AbsoluteFsPath} from '../../file_system'; import {copyFileShimData, retagAllTs...
{ "end_byte": 7174, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.ts" }
angular/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.ts_7175_9747
export class TsCreateProgramDriver implements ProgramDriver { /** * A map of source file paths to replacement `ts.SourceFile`s for those paths. * * Effectively, this tracks the delta between the user's program (represented by the * `originalHost`) and the template type-checking program being managed. *...
{ "end_byte": 9747, "start_byte": 7175, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.ts" }
angular/packages/compiler-cli/src/ngtsc/program_driver/src/api.ts_0_2489
/** * @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 {AbsoluteFsPath} from '../../file_system'; export interface FileUpdate { /** ...
{ "end_byte": 2489, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/program_driver/src/api.ts" }
angular/packages/compiler-cli/src/ngtsc/core/README.md_0_5358
# What is the 'core' package? This package contains the core functionality of the Angular compiler. It provides APIs for the implementor of a TypeScript compiler to provide Angular compilation as well. It supports the 'ngc' command-line tool and the Angular CLI (via the `NgtscProgram`), as well as an experimental int...
{ "end_byte": 5358, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/README.md" }
angular/packages/compiler-cli/src/ngtsc/core/BUILD.bazel_0_2633
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "core", srcs = ["index.ts"] + glob([ "src/*.ts", ]), module_name = "@angular/compiler-cli/src/ngtsc/core", deps = [ ":api", "//packages:types", "//pac...
{ "end_byte": 2633, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/core/index.ts_0_279
/** * @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/compiler'; export {NgCompilerHost} from './src/host';
{ "end_byte": 279, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/index.ts" }
angular/packages/compiler-cli/src/ngtsc/core/test/BUILD.bazel_0_947
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-cli/src/ngtsc/core", ...
{ "end_byte": 947, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/test/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/core/test/compiler_test.ts_0_7698
/** * @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 as _, FileSystem, getFileSystem, getSourceFileOrError, ...
{ "end_byte": 7698, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/test/compiler_test.ts" }
angular/packages/compiler-cli/src/ngtsc/core/test/compiler_test.ts_7704_15401
describe('getComponentResources', () => { it('should return the component resources', () => { const styleFile = _('/style.css'); fs.writeFile(styleFile, `/* This is the template, used by components CmpA */`); const styleFile2 = _('/style2.css'); fs.writeFile(styleFile2, `/* This is...
{ "end_byte": 15401, "start_byte": 7704, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/test/compiler_test.ts" }
angular/packages/compiler-cli/src/ngtsc/core/api/index.ts_0_338
/** * @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/adapter'; export * from './src/interfaces'; export * from './src/options'; export * from './src...
{ "end_byte": 338, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/api/index.ts" }
angular/packages/compiler-cli/src/ngtsc/core/api/src/adapter.ts_0_4217
/** * @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 {AbsoluteFsPath} from '../../../file_system'; import {ExtendedTsCompilerHost, ...
{ "end_byte": 4217, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/api/src/adapter.ts" }
angular/packages/compiler-cli/src/ngtsc/core/api/src/public_options.ts_0_4076
/** * @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 {ExtendedTemplateDiagnosticName} from '../../../../ngtsc/diagnostics'; /** * Options supported by the legac...
{ "end_byte": 4076, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/api/src/public_options.ts" }
angular/packages/compiler-cli/src/ngtsc/core/api/src/public_options.ts_4077_11014
export interface StrictTemplateOptions { /** * If `true`, implies all template strictness flags below (unless individually disabled). * * This flag is a superset of the deprecated `fullTemplateTypeCheck` option. * * Defaults to `false`, even if "fullTemplateTypeCheck" is `true`. */ strictTemplates...
{ "end_byte": 11014, "start_byte": 4077, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/api/src/public_options.ts" }
angular/packages/compiler-cli/src/ngtsc/core/api/src/public_options.ts_11015_17236
export interface BazelAndG3Options { /** * Enables the generation of alias re-exports of directives/pipes that are visible from an * NgModule from that NgModule's file. * * This option should be disabled for application builds or for Angular Package Format libraries * (where NgModules along with their ...
{ "end_byte": 17236, "start_byte": 11015, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/api/src/public_options.ts" }
angular/packages/compiler-cli/src/ngtsc/core/api/src/interfaces.ts_0_4698
/** * @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 host backed by a build system which has a unified view of the module namespac...
{ "end_byte": 4698, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/api/src/interfaces.ts" }
angular/packages/compiler-cli/src/ngtsc/core/api/src/options.ts_0_4188
/** * @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 { BazelAndG3Options, DiagnosticOptions, I18nOptions, LegacyNgcOptions, ...
{ "end_byte": 4188, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/api/src/options.ts" }
angular/packages/compiler-cli/src/ngtsc/core/src/feature_detection.ts_0_1040
/*! * @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 */ // Note: semver isn't available internally so this import will be commented out. // When adding more dependencies he...
{ "end_byte": 1040, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/src/feature_detection.ts" }
angular/packages/compiler-cli/src/ngtsc/core/src/core_version.ts_0_1067
/** * @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 {ExternalReference} from '@angular/compiler'; import ts from 'typescript'; export function coreHasSymbol(pro...
{ "end_byte": 1067, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/src/core_version.ts" }
angular/packages/compiler-cli/src/ngtsc/core/src/host.ts_0_5850
/** * @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 {findFlatIndexEntryPo...
{ "end_byte": 5850, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/src/host.ts" }
angular/packages/compiler-cli/src/ngtsc/core/src/host.ts_5851_13307
export class NgCompilerHost extends DelegatingCompilerHost implements RequiredDelegations<ExtendedTsCompilerHost>, ExtendedTsCompilerHost, NgCompilerAdapter { readonly entryPoint: AbsoluteFsPath | null = null; readonly constructionDiagnostics: ts.Diagnostic[]; readonly inputFiles: ReadonlyArray<string>; re...
{ "end_byte": 13307, "start_byte": 5851, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/src/host.ts" }
angular/packages/compiler-cli/src/ngtsc/core/src/compiler.ts_0_7800
/** * @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 {R3Identifiers} from '@angular/compiler'; import ts from 'typescript'; import { ComponentDecoratorHandler,...
{ "end_byte": 7800, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/src/compiler.ts" }
angular/packages/compiler-cli/src/ngtsc/core/src/compiler.ts_7801_11155
export function incrementalFromCompilerTicket( oldCompiler: NgCompiler, newProgram: ts.Program, incrementalBuildStrategy: IncrementalBuildStrategy, programDriver: ProgramDriver, modifiedResourceFiles: Set<AbsoluteFsPath>, perfRecorder: ActivePerfRecorder | null, ): CompilationTicket { const oldProgram = o...
{ "end_byte": 11155, "start_byte": 7801, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/src/compiler.ts" }
angular/packages/compiler-cli/src/ngtsc/core/src/compiler.ts_11156_20150
export class NgCompiler { /** * Lazily evaluated state of the compilation. * * This is created on demand by calling `ensureAnalyzed`. */ private compilation: LazyCompilationState | null = null; /** * Any diagnostics related to the construction of the compilation. * * These are diagnostics wh...
{ "end_byte": 20150, "start_byte": 11156, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/src/compiler.ts" }
angular/packages/compiler-cli/src/ngtsc/core/src/compiler.ts_20153_27145
getDiagnosticsForFile(file: ts.SourceFile, optimizeFor: OptimizeFor): ts.Diagnostic[] { const diagnostics: ts.Diagnostic[] = [ ...this.getNonTemplateDiagnostics().filter((diag) => diag.file === file), ]; // Type check code may throw fatal diagnostic errors if e.g. the type check // block cannot b...
{ "end_byte": 27145, "start_byte": 20153, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/src/compiler.ts" }
angular/packages/compiler-cli/src/ngtsc/core/src/compiler.ts_27148_35152
prepareEmit(): { transformers: ts.CustomTransformers; } { const compilation = this.ensureAnalyzed(); // Untag all the files, otherwise TS 5.4 may end up emitting // references to typecheck files (see #56945 and #57135). untagAllTsFiles(this.inputProgram); const coreImportsFrom = compilation....
{ "end_byte": 35152, "start_byte": 27148, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/src/compiler.ts" }
angular/packages/compiler-cli/src/ngtsc/core/src/compiler.ts_35156_44145
private getTypeCheckingConfig(): TypeCheckingConfig { // Determine the strictness level of type checking based on compiler options. As // `strictTemplates` is a superset of `fullTemplateTypeCheck`, the former implies the latter. // Also see `verifyCompatibleTypeCheckOptions` where it is verified that `fullT...
{ "end_byte": 44145, "start_byte": 35156, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/src/compiler.ts" }
angular/packages/compiler-cli/src/ngtsc/core/src/compiler.ts_44149_45984
private getNonTemplateDiagnostics(): ts.Diagnostic[] { if (this.nonTemplateDiagnostics === null) { const compilation = this.ensureAnalyzed(); this.nonTemplateDiagnostics = [...compilation.traitCompiler.diagnostics]; if (this.entryPoint !== null && compilation.exportReferenceGraph !== null) { ...
{ "end_byte": 45984, "start_byte": 44149, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/src/compiler.ts" }
angular/packages/compiler-cli/src/ngtsc/core/src/compiler.ts_45988_55205
private makeCompilation(): LazyCompilationState { const isCore = isAngularCorePackage(this.inputProgram); // Note: If this compilation builds `@angular/core`, we always build in full compilation // mode. Code inside the core package is always compatible with itself, so it does not // make sense to go t...
{ "end_byte": 55205, "start_byte": 45988, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/src/compiler.ts" }
angular/packages/compiler-cli/src/ngtsc/core/src/compiler.ts_55210_63076
const handlers: DecoratorHandler<unknown, unknown, SemanticSymbol | null, unknown>[] = [ new ComponentDecoratorHandler( reflector, evaluator, metaRegistry, metaReader, scopeReader, this.adapter, ngModuleScopeRegistry, typeCheckScopeRegistry, ...
{ "end_byte": 63076, "start_byte": 55210, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/src/compiler.ts" }
angular/packages/compiler-cli/src/ngtsc/core/src/compiler.ts_63077_68364
function* verifyCompatibleTypeCheckOptions( options: NgCompilerOptions, ): Generator<ts.Diagnostic, void, void> { if (options.fullTemplateTypeCheck === false && options.strictTemplates === true) { yield makeConfigDiagnostic({ category: ts.DiagnosticCategory.Error, code: ErrorCode.CONFIG_STRICT_TEMPL...
{ "end_byte": 68364, "start_byte": 63077, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/core/src/compiler.ts" }
angular/packages/compiler-cli/src/ngtsc/incremental/api.ts_0_2046
/** * @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 {AbsoluteFsPath} from '../file_system'; /** * Interface of the incremental bui...
{ "end_byte": 2046, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/api.ts" }
angular/packages/compiler-cli/src/ngtsc/incremental/README.md_0_4835
# Incremental Compilation The `incremental` package contains logic related to incremental compilation in ngtsc. Its goal is to ensure that the compiler's incremental performance is largely O(number of files changed in that iteration) instead of O(size of the program as a whole), by allowing the compiler to optimize aw...
{ "end_byte": 4835, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/README.md" }