_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular/packages/compiler-cli/src/ngtsc/incremental/README.md_4835_13810
## Reuse of emit results In plain TypeScript programs, the compiled JavaScript code for any given input file (e.g. `foo.ts`) depends only on the code within that input file. That is, only the contents of `foo.ts` can affect the generated contents written to `foo.js`. The TypeScript compiler can therefore perform a ver...
{ "end_byte": 13810, "start_byte": 4835, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/README.md" }
angular/packages/compiler-cli/src/ngtsc/incremental/README.md_13810_15519
## Unsuccessful compilation attempts Often, incremental compilations will fail. The user's input program may contain incomplete changes, typos, semantic errors, or other problems which prevent the compiler from fully analyzing or emitting it. Such errors create problems for incremental build correctness, as the compil...
{ "end_byte": 15519, "start_byte": 13810, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/README.md" }
angular/packages/compiler-cli/src/ngtsc/incremental/BUILD.bazel_0_1160
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "incremental", srcs = ["index.ts"] + glob([ "src/**/*.ts", ]), deps = [ ":api", "//packages/compiler-cli/src/ngtsc/file_system", "//packages/compiler-cli/...
{ "end_byte": 1160, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/incremental/index.ts_0_499
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {IncrementalCompilation} from './src/incremental'; export {NOOP_INCREMENTAL_BUILD} from './src/noop'; export ...
{ "end_byte": 499, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/index.ts" }
angular/packages/compiler-cli/src/ngtsc/incremental/test/BUILD.bazel_0_802
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": 802, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/test/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/incremental/test/incremental_spec.ts_0_1681
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {absoluteFrom, getSourceFileOrError} from '../../file_system'; import {runInEachFileSystem} from '../../file_...
{ "end_byte": 1681, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/test/incremental_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/BUILD.bazel_0_398
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "semantic_graph", srcs = ["index.ts"] + glob([ "src/**/*.ts", ]), deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/file_system", "//pack...
{ "end_byte": 398, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/index.ts_0_547
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {SemanticReference, SemanticSymbol} from './src/api'; export {SemanticDepGraph, SemanticDepGraphUpdater} from...
{ "end_byte": 547, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/index.ts" }
angular/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.ts_0_5443
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {absoluteFromSourceFile, AbsoluteFsPath} from '../../../file_system'; import {Cl...
{ "end_byte": 5443, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.ts" }
angular/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.ts_0_2904
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {ClassDeclaration} from '../../../reflection'; import {isArrayEqual} from './uti...
{ "end_byte": 2904, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.ts" }
angular/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.ts_0_4751
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {Expression, ExternalExpr} from '@angular/compiler'; import {AbsoluteFsPath} from '../../../file_system'; im...
{ "end_byte": 4751, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.ts" }
angular/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.ts_4752_10665
export class SemanticDepGraphUpdater { private readonly newGraph = new SemanticDepGraph(); /** * Contains opaque symbols that were created for declarations for which there was no symbol * registered, which happens for e.g. external declarations. */ private readonly opaqueSymbols = new Map<ClassDeclarati...
{ "end_byte": 10665, "start_byte": 4752, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.ts" }
angular/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.ts_0_2584
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {SemanticReference, SemanticSymbol} from './api'; /** * Determines whether the provided symbols represent th...
{ "end_byte": 2584, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.ts" }
angular/packages/compiler-cli/src/ngtsc/incremental/src/incremental.ts_0_2140
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {absoluteFromSourceFile, AbsoluteFsPath, resolve} from '../../file_system'; imp...
{ "end_byte": 2140, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/src/incremental.ts" }
angular/packages/compiler-cli/src/ngtsc/incremental/src/incremental.ts_2141_11164
export class IncrementalCompilation implements IncrementalBuild<ClassRecord, FileTypeCheckingData> { private phase: Phase; /** * `IncrementalState` of this compilation if it were to be reused in a subsequent incremental * compilation at the current moment. * * Exposed via the `state` read-only getter. ...
{ "end_byte": 11164, "start_byte": 2141, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/src/incremental.ts" }
angular/packages/compiler-cli/src/ngtsc/incremental/src/incremental.ts_11168_15366
recordSuccessfulEmit(sf: ts.SourceFile): void { if (this._state.kind !== IncrementalStateKind.Analyzed) { throw new Error(`AssertionError: Expected successfully analyzed compilation.`); } this._state.emitted.add(absoluteFromSourceFile(sf)); } priorAnalysisFor(sf: ts.SourceFile): ClassRecord[] | n...
{ "end_byte": 15366, "start_byte": 11168, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/src/incremental.ts" }
angular/packages/compiler-cli/src/ngtsc/incremental/src/state.ts_0_3658
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {ClassRecord} from '../../tra...
{ "end_byte": 3658, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/src/state.ts" }
angular/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.ts_0_4632
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {absoluteFromSourceFile, AbsoluteFsPath} from '../../file_system'; import {Depe...
{ "end_byte": 4632, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.ts" }
angular/packages/compiler-cli/src/ngtsc/incremental/src/noop.ts_0_431
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {IncrementalBuild} from '../api'; export const NOOP_INCREMENTAL_BUILD: IncrementalBuild<any, any> = { prio...
{ "end_byte": 431, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/src/noop.ts" }
angular/packages/compiler-cli/src/ngtsc/incremental/src/strategy.ts_0_3829
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {IncrementalState} from './state'; /** * Strategy used to manage the associat...
{ "end_byte": 3829, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/incremental/src/strategy.ts" }
angular/packages/compiler-cli/src/ngtsc/entry_point/BUILD.bazel_0_620
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "entry_point", srcs = ["index.ts"] + glob([ "src/**/*.ts", ]), module_name = "@angular/compiler-cli/src/ngtsc/entry_point", deps = [ "//packages/compiler-cli/src/ngts...
{ "end_byte": 620, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/entry_point/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/entry_point/index.ts_0_432
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {FlatIndexGenerator} from './src/generator'; export {findFlatIndexEntryPoint} from './src/logic'; export {che...
{ "end_byte": 432, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/entry_point/index.ts" }
angular/packages/compiler-cli/src/ngtsc/entry_point/test/reference_graph_spec.ts_0_1640
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {ReferenceGraph} from '../src/reference_graph'; describe('entry_point reference graph', () => { let graph:...
{ "end_byte": 1640, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/entry_point/test/reference_graph_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/entry_point/test/entry_point_spec.ts_0_1017
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {absoluteFrom} from '../../file_system'; import {runInEachFileSystem} from '../../file_system/testing'; import...
{ "end_byte": 1017, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/entry_point/test/entry_point_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/entry_point/test/BUILD.bazel_0_613
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/entry_point", ...
{ "end_byte": 613, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/entry_point/test/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.ts_0_6007
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {DeclarationNode} fro...
{ "end_byte": 6007, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.ts" }
angular/packages/compiler-cli/src/ngtsc/entry_point/src/generator.ts_0_1336
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /// <reference types="node" /> import ts from 'typescript'; import {AbsoluteFsPath, dirname, join} from '../../fil...
{ "end_byte": 1336, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/entry_point/src/generator.ts" }
angular/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.ts_0_2470
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {DeclarationNode} from '../../reflection'; export class ReferenceGraph<T = DeclarationNode> { private refe...
{ "end_byte": 2470, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.ts" }
angular/packages/compiler-cli/src/ngtsc/entry_point/src/logic.ts_0_1523
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {AbsoluteFsPath, getFileSystem} from '../../file_system'; import {isNonDeclarationTsPath} from '../../util/sr...
{ "end_byte": 1523, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/entry_point/src/logic.ts" }
angular/packages/compiler-cli/src/ngtsc/util/BUILD.bazel_0_460
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "util", srcs = glob([ "src/**/*.ts", ]), deps = [ "//packages:types", "//packages/compiler-cli/src/ngtsc/file_system", "//packages/compiler-cli/src/ngtsc/...
{ "end_byte": 460, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/util/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/util/test/typescript_spec.ts_0_908
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {FileSystem, getFileSystem} from '../../file_system'; import {runInEachFileSystem} from '../../file_system/te...
{ "end_byte": 908, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/util/test/typescript_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/util/test/BUILD.bazel_0_659
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/file_system", ...
{ "end_byte": 659, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/util/test/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/util/test/visitor_spec.ts_0_3525
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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, getSourceFileOrError} from '../../file_system'; import {runInEach...
{ "end_byte": 3525, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/util/test/visitor_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/util/src/path.ts_0_1683
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {dirname, relative, resolve, toRelativeImport} from '../../file_system'; import {stripExtension} from '../../f...
{ "end_byte": 1683, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/util/src/path.ts" }
angular/packages/compiler-cli/src/ngtsc/util/src/visitor.ts_0_4561
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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'; /** * Result type of visiting a node that's typically an entry in a list, which allow...
{ "end_byte": 4561, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/util/src/visitor.ts" }
angular/packages/compiler-cli/src/ngtsc/util/src/typescript.ts_0_7683
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ const TS = /\.tsx?$/i; const D_TS = /\.d\.ts$/i; import ts from 'typescript'; import {AbsoluteFsPath, getFileSystem...
{ "end_byte": 7683, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/util/src/typescript.ts" }
angular/packages/compiler-cli/src/ngtsc/hmr/BUILD.bazel_0_520
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "hmr", srcs = ["index.ts"] + glob([ "src/**/*.ts", ]), deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/reflection", "//packages/compile...
{ "end_byte": 520, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/hmr/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/hmr/index.ts_0_278
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use 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/metadata'; export * from './src/update_declaration';
{ "end_byte": 278, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/hmr/index.ts" }
angular/packages/compiler-cli/src/ngtsc/hmr/src/update_declaration.ts_0_2283
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {compileHmrUpdateCallback, R3HmrMetadata, outputAst as o} from '@angular/compiler'; import {CompileResult} fr...
{ "end_byte": 2283, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/hmr/src/update_declaration.ts" }
angular/packages/compiler-cli/src/ngtsc/hmr/src/metadata.ts_0_1905
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {R3CompiledExpression, R3HmrMetadata, outputAst as o} from '@angular/compiler'; import {DeclarationNode, Refl...
{ "end_byte": 1905, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/hmr/src/metadata.ts" }
angular/packages/compiler-cli/src/ngtsc/hmr/src/extract_locals.ts_0_8029
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {R3CompiledExpression, outputAst as o} from '@angular/compiler'; import {DeclarationNode} from '../../reflect...
{ "end_byte": 8029, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/hmr/src/extract_locals.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/BUILD.bazel_0_690
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "partial_evaluator", srcs = ["index.ts"] + glob([ "src/*.ts", ]), module_name = "@angular/compiler-cli/src/ngtsc/partial_evaluator", deps = [ "//packages:types", ...
{ "end_byte": 690, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/index.ts_0_614
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {describeResolvedType, traceDynamicValue} from './src/diagnostics'; export {DynamicValue} from './src/dynamic...
{ "end_byte": 614, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/index.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/test/diagnostics_spec.ts_0_4231
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {platform} from 'os'; import ts from 'typescript'; import {absoluteFrom as _, absoluteFromSourceFile} from '...
{ "end_byte": 4231, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/test/diagnostics_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/test/diagnostics_spec.ts_4237_12528
if (os !== 'Windows' && platform() !== 'win32') { describe('traceDynamicValue()', () => { it('should not include the origin node if points to a different dynamic node.', () => { // In the below expression, the read of "value" is evaluated to be dynamic, but it's also // the exact node ...
{ "end_byte": 12528, "start_byte": 4237, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/test/diagnostics_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/test/diagnostics_spec.ts_12530_13432
function traceExpression(code: string, expr: string): ts.DiagnosticRelatedInformation[] { const {program} = makeProgram( [ {name: _('/entry.ts'), contents: `${code}; const target$ = ${expr};`}, {name: _('/lib.d.ts'), contents: `declare const document: any;`}, ], /* options */ undefined, /*...
{ "end_byte": 13432, "start_byte": 12530, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/test/diagnostics_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/test/utils.ts_0_2911
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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} from '../../file_system'; import {TestFile} from '../../file_syst...
{ "end_byte": 2911, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/test/utils.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/test/BUILD.bazel_0_873
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": 873, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/test/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/test/evaluator_spec.ts_0_756
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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, getSourceFileOrError} from '../../file_system'; import {runInEach...
{ "end_byte": 756, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/test/evaluator_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/test/evaluator_spec.ts_758_6771
runInEachFileSystem(() => { describe('ngtsc metadata', () => { let _: typeof absoluteFrom; beforeEach(() => (_ = absoluteFrom)); it('reads a file correctly', () => { const value = evaluate( ` import {Y} from './other'; const A = Y; `, 'A', [ { ...
{ "end_byte": 6771, "start_byte": 758, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/test/evaluator_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/test/evaluator_spec.ts_6777_14320
it('array `concat` function works', () => { expect(evaluate(`const a = [1, 2], b = [3, 4];`, "a['concat'](b)")).toEqual([1, 2, 3, 4]); expect(evaluate(`const a = [1, 2], b = 3;`, "a['concat'](b)")).toEqual([1, 2, 3]); expect(evaluate(`const a = [1, 2], b = 3, c = [4, 5];`, "a['concat'](b, c)")).toEqua...
{ "end_byte": 14320, "start_byte": 6777, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/test/evaluator_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/test/evaluator_spec.ts_14326_22162
it('supports declarations of primitive constant types', () => { expect(evaluate(`declare const x: 'foo';`, `x`)).toEqual('foo'); expect(evaluate(`declare const x: 42;`, `x`)).toEqual(42); expect(evaluate(`declare const x: null;`, `x`)).toEqual(null); expect(evaluate(`declare const x: true;`, `x`...
{ "end_byte": 22162, "start_byte": 14326, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/test/evaluator_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/test/evaluator_spec.ts_22168_30771
it('string `concat` function works', () => { expect(evaluate(`const a = '12', b = '34';`, "a['concat'](b)")).toBe('1234'); expect(evaluate(`const a = '12', b = '3';`, "a['concat'](b)")).toBe('123'); expect(evaluate(`const a = '12', b = '3', c = '45';`, "a['concat'](b,c)")).toBe('12345'); expect(...
{ "end_byte": 30771, "start_byte": 22168, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/test/evaluator_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/test/evaluator_spec.ts_30777_34824
describe('(visited file tracking)', () => { it('should track each time a source file is visited', () => { const addDependency = jasmine.createSpy<DependencyTracker['addDependency']>('DependencyTracker'); const {expression, checker, program} = makeExpression( `class A { static f...
{ "end_byte": 34824, "start_byte": 30777, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/test/evaluator_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.ts_0_1986
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {DynamicValue} from './dynamic'; import {EnumValue, KnownFn, ResolvedValue, Res...
{ "end_byte": 1986, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.ts_0_3725
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {Reference} from '../../imports'; import {OwningModule} from '../../imports/src...
{ "end_byte": 3725, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.ts_3726_11911
export class StaticInterpreter { constructor( private host: ReflectionHost, private checker: ts.TypeChecker, private dependencyTracker: DependencyTracker | null, ) {} visit(node: ts.Expression, context: Context): ResolvedValue { return this.visitExpression(node, context); } private visitExpr...
{ "end_byte": 11911, "start_byte": 3726, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.ts_11914_20532
private visitVariableDeclaration(node: ts.VariableDeclaration, context: Context): ResolvedValue { const value = this.host.getVariableValue(node); if (value !== null) { return this.visitExpression(value, context); } else if (isVariableDeclarationDeclared(node)) { // If the declaration has a liter...
{ "end_byte": 20532, "start_byte": 11914, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.ts_20535_29197
private visitFfrExpression(expr: ts.Expression, context: Context): ResolvedValue { const res = this.visitExpression(expr, context); if (res instanceof Reference) { // This Reference was created synthetically, via a foreign function resolver. The real // runtime value of the function expression may b...
{ "end_byte": 29197, "start_byte": 20535, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.ts_29199_30505
function isVariableDeclarationDeclared(node: ts.VariableDeclaration): boolean { if (node.parent === undefined || !ts.isVariableDeclarationList(node.parent)) { return false; } const declList = node.parent; if (declList.parent === undefined || !ts.isVariableStatement(declList.parent)) { return false; } ...
{ "end_byte": 30505, "start_byte": 29199, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.ts_0_2683
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {Reference} from '../../imports'; import {Declaration} from '../../reflection';...
{ "end_byte": 2683, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.ts_0_8152
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {Reference} from '../../imports'; import {FunctionDefinition} from '../../refle...
{ "end_byte": 8152, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.ts_0_1456
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {Reference} from '../../imports'; import {DependencyTracker} from '../../increm...
{ "end_byte": 1456, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.ts_0_7305
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {makeRelatedInformation} from '../../diagnostics'; import {Reference} from '../...
{ "end_byte": 7305, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.ts" }
angular/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.ts_0_507
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * A value produced which originated in a `ForeignFunctionResolver` and doesn't come from the * template itself...
{ "end_byte": 507, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/README.md_0_2752
# Virtual file-system layer To improve cross platform support, all file access (and path manipulation) is now done through a well known interface (`FileSystem`). Note that `FileSystem` extends `ReadonlyFileSystem`, which itself extends `PathManipulation`. If you are using a file-system object you should only ask for ...
{ "end_byte": 2752, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/README.md" }
angular/packages/compiler-cli/src/ngtsc/file_system/BUILD.bazel_0_280
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "file_system", srcs = ["index.ts"] + glob([ "src/**/*.ts", ]), deps = [ "@npm//@types/node", "@npm//typescript", ], )
{ "end_byte": 280, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/file_system/index.ts_0_902
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {NgtscCompilerHost} from './src/compiler_host'; export { absoluteFrom, absoluteFromSourceFile, basename,...
{ "end_byte": 902, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/index.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/test/compiler_host_spec.ts_0_2417
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {NgtscCompilerHost} from '../src/compiler_host'; import {absoluteFrom, getFileSys...
{ "end_byte": 2417, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/test/compiler_host_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/test/helpers_spec.ts_0_2018
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 os from 'os'; import {absoluteFrom, relativeFrom, setFileSystem} from '../src/helpers'; import {NodeJSFi...
{ "end_byte": 2018, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/test/helpers_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/test/logical_spec.ts_0_4252
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {NgtscCompilerHost} from '../src/compiler_host'; import {absoluteFrom, getFileSystem} from '../src/helpers'; ...
{ "end_byte": 4252, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/test/logical_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/test/node_js_file_system_spec.ts_0_6547
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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: We do not use a namespace import here because this will result in the // named exports being modified if we ...
{ "end_byte": 6547, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/test/node_js_file_system_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/test/BUILD.bazel_0_528
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/src/ngtsc/file_system", "//packages/compiler-...
{ "end_byte": 528, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/test/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/file_system/testing/BUILD.bazel_0_374
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "testing", srcs = glob([ "**/*.ts", ]), deps = [ "//packages:types", "//packages/compiler-cli/src/ngtsc/file_system", "@npm//@types/jasmine", "@np...
{ "end_byte": 374, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/testing/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/file_system/testing/index.ts_0_556
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {Folder, MockFileSystem} from './src/mock_file_system'; export {MockFileSystemNative} from './src/mock_file_s...
{ "end_byte": 556, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/testing/index.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/testing/test/mock_file_system_spec.ts_0_1626
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {getFileSystem} from '../../src/helpers'; import {FileSystem} from '../../src/types'; import {runInEachFileSy...
{ "end_byte": 1626, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/testing/test/mock_file_system_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/testing/test/BUILD.bazel_0_500
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/src/ngtsc/file_system", "//packages/compiler-...
{ "end_byte": 500, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/testing/test/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/file_system/testing/src/mock_file_system_windows.ts_0_1544
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /// <reference types="node" /> import * as p from 'path'; import {AbsoluteFsPath, PathSegment, PathString} from '../...
{ "end_byte": 1544, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/testing/src/mock_file_system_windows.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/testing/src/mock_file_system.ts_0_430
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {basename, dirname, resolve} from '../../src/helpers'; import {AbsoluteFsPath, FileStats, FileSystem, PathSeg...
{ "end_byte": 430, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/testing/src/mock_file_system.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/testing/src/mock_file_system.ts_431_8517
export abstract class MockFileSystem implements FileSystem { private _fileTree: Folder = {}; private _cwd: AbsoluteFsPath; constructor( private _isCaseSensitive = false, cwd: AbsoluteFsPath = '/' as AbsoluteFsPath, ) { this._cwd = this.normalize(cwd); } isCaseSensitive() { return this._isC...
{ "end_byte": 8517, "start_byte": 431, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/testing/src/mock_file_system.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/testing/src/mock_file_system.ts_8521_12449
mount(path: AbsoluteFsPath, folder: Folder): void { if (this.exists(path)) { throw new Error(`Unable to mount in '${path}' as it already exists.`); } const mountFolder = this.ensureDir(path); this.copyInto(folder, mountFolder); } private cloneFolder(folder: Folder): Folder { const clone:...
{ "end_byte": 12449, "start_byte": 8521, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/testing/src/mock_file_system.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/testing/src/mock_file_system_native.ts_0_2541
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /// <reference types="node" /> import * as os from 'os'; import {NodeJSFileSystem} from '../../src/node_js_file_syste...
{ "end_byte": 2541, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/testing/src/mock_file_system_native.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/testing/src/test_helper.ts_0_5647
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /// <reference types="jasmine"/> import ts from 'typescript'; import {absoluteFrom, setFileSystem} from '../../src/h...
{ "end_byte": 5647, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/testing/src/test_helper.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/testing/src/mock_file_system_posix.ts_0_1523
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /// <reference types="node" /> import * as p from 'path'; import {AbsoluteFsPath, PathSegment, PathString} from '../...
{ "end_byte": 1523, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/testing/src/mock_file_system_posix.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/src/helpers.ts_0_3636
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {InvalidFileSystem} from './invalid_file_system'; import {AbsoluteFsPath, FileSy...
{ "end_byte": 3636, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/src/helpers.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.ts_0_4805
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /// <reference types="node" /> import fs from 'fs'; import {createRequire} from 'module'; import * as p from 'path'; ...
{ "end_byte": 4805, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/src/types.ts_0_3371
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * A `string` representing a specific type of path, with a particular brand `B`. * * A `string` is not assigna...
{ "end_byte": 3371, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/src/types.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.ts_0_2902
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {AbsoluteFsPath, FileStats, FileSystem, PathSegment, PathString} from './types'; /** * The default `FileSyst...
{ "end_byte": 2902, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/src/util.ts_0_1123
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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, PathString} from './types'; const TS_DTS_JS_EXTENSION = /(?:\.d...
{ "end_byte": 1123, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/src/util.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/src/logical.ts_0_4642
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 { absoluteFromSourceFile, dirname, isLocalRelativePath, relative, reso...
{ "end_byte": 4642, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/src/logical.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.ts_0_2350
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /// <reference types="node" /> import * as os from 'os'; import ts from 'typescript'; import {absoluteFrom} from '....
{ "end_byte": 2350, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.ts" }
angular/packages/compiler-cli/src/ngtsc/file_system/src/ts_read_directory.ts_0_3450
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // We use TypeScript's native `ts.matchFiles` utility for the virtual file systems // and their TypeScript compiler ...
{ "end_byte": 3450, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/file_system/src/ts_read_directory.ts" }
angular/packages/compiler-cli/src/ngtsc/scope/BUILD.bazel_0_546
package(default_visibility = ["//visibility:public"]) load("//tools:defaults.bzl", "ts_library") ts_library( name = "scope", srcs = ["index.ts"] + glob([ "src/**/*.ts", ]), deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/diagnostics", "//packages/comp...
{ "end_byte": 546, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/scope/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/scope/index.ts_0_759
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 { ComponentScopeKind, ComponentScopeReader, ExportScope, LocalModuleScope, ScopeData, StandaloneS...
{ "end_byte": 759, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/scope/index.ts" }
angular/packages/compiler-cli/src/ngtsc/scope/test/dependency_spec.ts_0_3037
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {ExternalExpr, ExternalReference} from '@angular/compiler'; import ts from 'typescript'; import {UnifiedModul...
{ "end_byte": 3037, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/scope/test/dependency_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/scope/test/dependency_spec.ts_3039_10576
runInEachFileSystem(() => { describe('MetadataDtsModuleScopeResolver', () => { it('should produce an accurate scope for a basic NgModule', () => { const {resolver, refs} = makeTestEnv({ 'test': ` export declare class Dir { static ɵdir: DirectiveMeta<Dir, '[dir]', ['exportAs'], {'in...
{ "end_byte": 10576, "start_byte": 3039, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/scope/test/dependency_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/scope/test/BUILD.bazel_0_908
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": 908, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/scope/test/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/scope/test/local_spec.ts_0_1426
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {Reference, ReferenceEmitter} from '../../imports'; import { ClassPropertyMap...
{ "end_byte": 1426, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/scope/test/local_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/scope/test/local_spec.ts_1428_10019
describe('LocalModuleScopeRegistry', () => { const refEmitter = new ReferenceEmitter([]); let scopeRegistry!: LocalModuleScopeRegistry; let metaRegistry!: MetadataRegistry; beforeEach(() => { const localRegistry = new LocalMetadataRegistry(); scopeRegistry = new LocalModuleScopeRegistry( localReg...
{ "end_byte": 10019, "start_byte": 1428, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/scope/test/local_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/scope/test/local_spec.ts_10021_11787
function fakeDirective(ref: Reference<ClassDeclaration>): DirectiveMeta { const name = ref.debugName!; return { kind: MetaKind.Directive, matchSource: MatchSource.Selector, ref, name, selector: `[${ref.debugName}]`, isComponent: name.startsWith('Cmp'), inputs: ClassPropertyMapping.fromMa...
{ "end_byte": 11787, "start_byte": 10021, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/scope/test/local_spec.ts" }