_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular/packages/compiler-cli/src/ngtsc/transform/src/compilation.ts_25887_27646
decoratorsFor(node: ts.Declaration): ts.Decorator[] { const original = ts.getOriginalNode(node) as typeof node; if (!this.reflector.isClass(original) || !this.classes.has(original)) { return []; } const record = this.classes.get(original)!; const decorators: ts.Decorator[] = []; for (con...
{ "end_byte": 27646, "start_byte": 25887, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/transform/src/compilation.ts" }
angular/packages/compiler-cli/src/ngtsc/transform/src/api.ts_0_8687
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {ConstantPool, Expression, Statement, Type} from '@angular/compiler'; import ts from 'typescript'; import {R...
{ "end_byte": 8687, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/transform/src/api.ts" }
angular/packages/compiler-cli/src/ngtsc/transform/src/api.ts_8688_10447
export interface DetectResult<M> { /** * The node that triggered the match, which is typically a decorator. */ trigger: ts.Node | null; /** * Refers to the decorator that was recognized for this detection, if any. This can be a concrete * decorator that is actually present in a file, or a synthetic d...
{ "end_byte": 10447, "start_byte": 8688, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/transform/src/api.ts" }
angular/packages/compiler-cli/src/ngtsc/transform/src/declaration.ts_0_8169
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Type} from '@angular/compiler'; import ts from 'typescript'; import {ImportRewriter, ReferenceEmitter} from...
{ "end_byte": 8169, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/transform/src/declaration.ts" }
angular/packages/compiler-cli/src/ngtsc/transform/src/trait.ts_0_5500
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {SemanticSymbol} from '../../incremental/semantic_graph'; import {DecoratorHan...
{ "end_byte": 5500, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/transform/src/trait.ts" }
angular/packages/compiler-cli/src/ngtsc/transform/src/trait.ts_5501_8418
class TraitImpl<D, A, S extends SemanticSymbol | null, R> { state: TraitState = TraitState.Pending; handler: DecoratorHandler<D, A, S, R>; detected: DetectResult<D>; analysis: Readonly<A> | null = null; symbol: S | null = null; resolution: Readonly<R> | null = null; analysisDiagnostics: ts.Diagnostic[] | ...
{ "end_byte": 8418, "start_byte": 5501, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/transform/src/trait.ts" }
angular/packages/compiler-cli/src/ngtsc/transform/src/alias.ts_0_1158
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import ts from 'typescript'; export function aliasTransformFactory( exportStatements: Map<string, Map<string, [st...
{ "end_byte": 1158, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/transform/src/alias.ts" }
angular/packages/compiler-cli/src/ngtsc/metadata/BUILD.bazel_0_495
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "metadata", srcs = ["index.ts"] + glob([ "src/**/*.ts", ]), deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/file_system", "//packages/c...
{ "end_byte": 495, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/metadata/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/metadata/index.ts_0_974
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {DtsMetadataReader} from './src/dts'; export {flattenInheritedDirectiveMetadata} f...
{ "end_byte": 974, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/metadata/index.ts" }
angular/packages/compiler-cli/src/ngtsc/metadata/test/dts_spec.ts_0_658
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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, getFileSystem, getSourceFileOrError} from '../../file_system'; import {runInEachFileSystem} fr...
{ "end_byte": 658, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/metadata/test/dts_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/metadata/test/dts_spec.ts_660_9049
runInEachFileSystem(() => { beforeEach(() => { loadAngularCore(getFileSystem()); }); describe('DtsMetadataReader', () => { it('should not assume directives are structural', () => { const mainPath = absoluteFrom('/main.d.ts'); const {program} = makeProgram( [ { na...
{ "end_byte": 9049, "start_byte": 660, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/metadata/test/dts_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/metadata/test/dts_spec.ts_9053_11600
-v16 inputs map syntax', () => { const mainPath = absoluteFrom('/main.d.ts'); const {program} = makeProgram( [ { name: mainPath, contents: ` import * as i0 from '@angular/core'; export declare class TestDir { static ɵdir: i0.ɵɵDirectiveDec...
{ "end_byte": 11600, "start_byte": 9053, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/metadata/test/dts_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/metadata/test/BUILD.bazel_0_926
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", ...
{ "end_byte": 926, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/metadata/test/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.ts_0_3143
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {Reference} from '../../imports'; import {ClassDeclaration} from '../../reflection'; import {DirectiveMeta, ...
{ "end_byte": 3143, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.ts" }
angular/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.ts_0_3962
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {ClassDeclaration} from '../....
{ "end_byte": 3962, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.ts" }
angular/packages/compiler-cli/src/ngtsc/metadata/src/dts.ts_0_8140
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {OwningModule, Reference} from '../../imports'; import { ClassDeclaration, ...
{ "end_byte": 8140, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/metadata/src/dts.ts" }
angular/packages/compiler-cli/src/ngtsc/metadata/src/dts.ts_8142_12244
ion readInputsType(type: ts.TypeNode): Record<string, InputMapping> { const inputsMap = {} as Record<string, InputMapping>; if (ts.isTypeLiteralNode(type)) { for (const member of type.members) { if ( !ts.isPropertySignature(member) || member.type === undefined || member.name === u...
{ "end_byte": 12244, "start_byte": 8142, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/metadata/src/dts.ts" }
angular/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.ts_0_4140
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {DirectiveMeta, InputMapping, MatchSource, MetadataReader} from '../../metadata/src/api'; import {ClassDeclar...
{ "end_byte": 4140, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.ts" }
angular/packages/compiler-cli/src/ngtsc/metadata/src/api.ts_0_8561
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {DirectiveMeta as T2DirectiveMeta, Expression, SchemaMetadata} from '@angular/compiler'; import ts from 'type...
{ "end_byte": 8561, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/metadata/src/api.ts" }
angular/packages/compiler-cli/src/ngtsc/metadata/src/api.ts_8562_11744
export interface HostDirectiveMeta { /** * Reference to the host directive class. * * Only in local compilation mode this can be Expression * which indicates the expression could not be resolved due to being imported from some external * file. In this case, the expression is the raw expression as appea...
{ "end_byte": 11744, "start_byte": 8562, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/metadata/src/api.ts" }
angular/packages/compiler-cli/src/ngtsc/metadata/src/providers.ts_0_3380
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {Reference} from '../../imports'; import {ClassDeclaration} from '../../reflection'; import {MetadataReader}...
{ "end_byte": 3380, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/metadata/src/providers.ts" }
angular/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.ts_0_4325
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {Reference} from '../../imports'; import {ClassDeclaration} from '../../reflection'; import {MetadataReader,...
{ "end_byte": 4325, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.ts" }
angular/packages/compiler-cli/src/ngtsc/metadata/src/registry.ts_0_2754
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {Reference} from '../../imports'; import {ClassDeclaration} from '../../reflection'; import { DirectiveMet...
{ "end_byte": 2754, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/metadata/src/registry.ts" }
angular/packages/compiler-cli/src/ngtsc/metadata/src/util.ts_0_7742
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {OwningModule, Reference} from '../../imports'; import { ClassDeclaration, ...
{ "end_byte": 7742, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/metadata/src/util.ts" }
angular/packages/compiler-cli/src/ngtsc/metadata/src/util.ts_7743_9415
export class CompoundMetadataReader implements MetadataReader { constructor(private readers: MetadataReader[]) {} getDirectiveMetadata(node: Reference<ClassDeclaration<ts.Declaration>>): DirectiveMeta | null { for (const reader of this.readers) { const meta = reader.getDirectiveMetadata(node); if (...
{ "end_byte": 9415, "start_byte": 7743, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/metadata/src/util.ts" }
angular/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.ts_0_7296
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {InputOutputPropertySet} from '@angular/compiler'; /** * The name of a class property that backs an input o...
{ "end_byte": 7296, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.ts" }
angular/packages/compiler-cli/src/ngtsc/logging/README.md_0_110
# Logging Here you can find a simple abstraction over the console logging that allows filtered logs by level.
{ "end_byte": 110, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/logging/README.md" }
angular/packages/compiler-cli/src/ngtsc/logging/BUILD.bazel_0_248
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "logging", srcs = ["index.ts"] + glob([ "src/**/*.ts", ]), deps = [ "@npm//@types/node", ], )
{ "end_byte": 248, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/logging/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/logging/index.ts_0_302
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {ConsoleLogger} from './src/console_logger'; export {Logger, LogLevel} from './src/logger';
{ "end_byte": 302, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/logging/index.ts" }
angular/packages/compiler-cli/src/ngtsc/logging/test/console_logger_spec.ts_0_1977
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {ConsoleLogger, DEBUG, ERROR, WARN} from '../src/console_logger'; import {LogLevel} from '../src/logger'; des...
{ "end_byte": 1977, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/logging/test/console_logger_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/logging/test/BUILD.bazel_0_431
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/logging", ], ) jasmine_node_test( ...
{ "end_byte": 431, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/logging/test/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/logging/testing/BUILD.bazel_0_253
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "testing", srcs = glob([ "**/*.ts", ]), deps = [ "//packages/compiler-cli/src/ngtsc/logging", ], )
{ "end_byte": 253, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/logging/testing/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/logging/testing/index.ts_0_249
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {MockLogger} from './src/mock_logger';
{ "end_byte": 249, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/logging/testing/index.ts" }
angular/packages/compiler-cli/src/ngtsc/logging/testing/src/mock_logger.ts_0_722
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {Logger, LogLevel} from '../..'; export class MockLogger implements Logger { constructor(public level = Lo...
{ "end_byte": 722, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/logging/testing/src/mock_logger.ts" }
angular/packages/compiler-cli/src/ngtsc/logging/src/console_logger.ts_0_1141
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {Logger, LogLevel} from './logger'; const RESET = '\x1b[0m'; const RED = '\x1b[31m'; const YELLOW = '\x1b[33m...
{ "end_byte": 1141, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/logging/src/console_logger.ts" }
angular/packages/compiler-cli/src/ngtsc/logging/src/logger.ts_0_565
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * Implement this interface if you want to provide different logging * output from the standard ConsoleLogger. ...
{ "end_byte": 565, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/logging/src/logger.ts" }
angular/packages/compiler-cli/src/ngtsc/indexer/README.md_0_984
# `indexer` The `indexer` module generates semantic analysis about components used in an Angular project. The module is consumed by a semantic analysis API on an Angular program, which can be invoked separately from the regular Angular compilation pipeline. The module is _not_ a fully-featured source code indexer. Ra...
{ "end_byte": 984, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/indexer/README.md" }
angular/packages/compiler-cli/src/ngtsc/indexer/BUILD.bazel_0_441
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "indexer", srcs = ["index.ts"] + glob([ "src/**/*.ts", ]), deps = [ "//packages/compiler", "//packages/compiler-cli/src/ngtsc/imports", "//packages/compil...
{ "end_byte": 441, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/indexer/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/indexer/index.ts_0_328
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {IndexingContext} from './src/context'; export {generateAnalysis} from './src/tran...
{ "end_byte": 328, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/indexer/index.ts" }
angular/packages/compiler-cli/src/ngtsc/indexer/test/context_spec.ts_0_1380
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {ParseSourceFile} from '@angular/compiler'; import {runInEachFileSystem} from '../../file_system/testing'; imp...
{ "end_byte": 1380, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/indexer/test/context_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/indexer/test/util.ts_0_2465
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { BoundTarget, CssSelector, parseTemplate, ParseTemplateOptions, R3TargetBinder, SelectorMatcher,...
{ "end_byte": 2465, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/indexer/test/util.ts" }
angular/packages/compiler-cli/src/ngtsc/indexer/test/template_spec.ts_0_4689
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {BoundTarget} from '@angular/compiler'; import { AbsoluteSourceSpan, AttributeIdentifier, ElementIdent...
{ "end_byte": 4689, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/indexer/test/template_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/indexer/test/template_spec.ts_4695_12183
describe('generates identifiers for PropertyReads', () => { it('should discover component properties', () => { const template = '{{foo}}'; const refs = getTemplateIdentifiers(bind(template)); expect(refs.size).toBe(1); const [ref] = Array.from(refs); expect(ref).toEqual({ ...
{ "end_byte": 12183, "start_byte": 4695, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/indexer/test/template_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/indexer/test/template_spec.ts_12189_19905
describe('generates identifiers for method calls', () => { it('should discover component method calls', () => { const template = '{{foo()}}'; const refs = getTemplateIdentifiers(bind(template)); expect(refs.size).toBe(1); const [ref] = Array.from(refs); expect(ref).toEqual...
{ "end_byte": 19905, "start_byte": 12189, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/indexer/test/template_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/indexer/test/template_spec.ts_19909_28553
describe('generates identifiers for template variables', () => { it('should discover variables', () => { const template = '<div *ngFor="let foo of foos">'; const refs = getTemplateIdentifiers(bind(template)); const refArray = Array.from(refs); expect(refArray).toEqual( jasmine.array...
{ "end_byte": 28553, "start_byte": 19909, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/indexer/test/template_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/indexer/test/template_spec.ts_28557_32040
describe('generates identifiers for templates', () => { it('should record templates as TemplateNodeIdentifiers', () => { const template = '<ng-template>'; const refs = getTemplateIdentifiers(bind(template)); expect(refs.size).toBe(1); const [ref] = Array.from(refs); expect(ref.kind).t...
{ "end_byte": 32040, "start_byte": 28557, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/indexer/test/template_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/indexer/test/BUILD.bazel_0_828
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", "//packages/compiler-cli/src/ngtsc/file_system"...
{ "end_byte": 828, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/indexer/test/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/indexer/test/transform_spec.ts_0_4574
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {BoundTarget, ParseSourceFile} from '@angular/compiler'; import {runInEachFileSystem} from '../../file_system...
{ "end_byte": 4574, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/indexer/test/transform_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/indexer/src/template.ts_0_6222
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { AST, ASTWithSource, BoundTarget, ImplicitReceiver, ParseSourceSpan, PropertyRead, PropertyWrit...
{ "end_byte": 6222, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/indexer/src/template.ts" }
angular/packages/compiler-cli/src/ngtsc/indexer/src/template.ts_6223_13970
class TemplateVisitor extends TmplAstRecursiveVisitor { // Identifiers of interest found in the template. readonly identifiers = new Set<TopLevelIdentifier>(); readonly errors: Error[] = []; // Map of targets in a template to their identifiers. private readonly targetIdentifierCache: TargetIdentifierMap = ne...
{ "end_byte": 13970, "start_byte": 6223, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/indexer/src/template.ts" }
angular/packages/compiler-cli/src/ngtsc/indexer/src/template.ts_13973_17924
private targetToIdentifier(node: TmplTarget): TargetIdentifier | null { // If this node has already been seen, return the cached result. if (this.targetIdentifierCache.has(node)) { return this.targetIdentifierCache.get(node)!; } const {name, sourceSpan} = node; const start = this.getStartLoca...
{ "end_byte": 17924, "start_byte": 13973, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/indexer/src/template.ts" }
angular/packages/compiler-cli/src/ngtsc/indexer/src/transform.ts_0_2004
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {ParseSourceFile} from '@angular/compiler'; import {DeclarationNode} from '../../reflection'; import {Index...
{ "end_byte": 2004, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/indexer/src/transform.ts" }
angular/packages/compiler-cli/src/ngtsc/indexer/src/context.ts_0_1696
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {BoundTarget, DirectiveMeta, ParseSourceFile} from '@angular/compiler'; import {Reference} from '../../impor...
{ "end_byte": 1696, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/indexer/src/context.ts" }
angular/packages/compiler-cli/src/ngtsc/indexer/src/api.ts_0_4567
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {ParseSourceFile} from '@angular/compiler'; import {ClassDeclaration, DeclarationNode} from '../../reflectio...
{ "end_byte": 4567, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/indexer/src/api.ts" }
angular/packages/compiler-cli/src/ngtsc/validation/BUILD.bazel_0_542
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "validation", srcs = glob( ["**/*.ts"], ), deps = [ "//packages/compiler-cli/src/ngtsc/annotations", "//packages/compiler-cli/src/ngtsc/diagnostics", "//p...
{ "end_byte": 542, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/validation/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/validation/index.ts_0_269
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {SourceFileValidator} from './src/source_file_validator';
{ "end_byte": 269, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/validation/index.ts" }
angular/packages/compiler-cli/src/ngtsc/validation/src/config.ts_0_399
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * Whether the rule to check for unused standalone imports is enabled. * Used to disable it conditionally in in...
{ "end_byte": 399, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/validation/src/config.ts" }
angular/packages/compiler-cli/src/ngtsc/validation/src/source_file_validator.ts_0_2597
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {ImportedSymbolsTracker} from '../../imports'; import {ReflectionHost} from '.....
{ "end_byte": 2597, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/validation/src/source_file_validator.ts" }
angular/packages/compiler-cli/src/ngtsc/validation/src/rules/unused_standalone_imports_rule.ts_0_5665
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use 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, makeDiagnostic, makeRelatedInformation} from '../../../diagnostics'...
{ "end_byte": 5665, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/validation/src/rules/unused_standalone_imports_rule.ts" }
angular/packages/compiler-cli/src/ngtsc/validation/src/rules/initializer_api_usage_rule.ts_0_3730
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use 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 { InitializerApiFunction, INPUT_INITIALIZER_FN, MODEL_INITIALIZER_FN, O...
{ "end_byte": 3730, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/validation/src/rules/initializer_api_usage_rule.ts" }
angular/packages/compiler-cli/src/ngtsc/validation/src/rules/api.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'; /** * Rule that checks a source file a specific issue. */ export interface SourceFil...
{ "end_byte": 756, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/validation/src/rules/api.ts" }
angular/packages/compiler-cli/src/ngtsc/reflection/BUILD.bazel_0_250
load("//tools:defaults.bzl", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "reflection", srcs = ["index.ts"] + glob([ "src/**/*.ts", ]), deps = [ "@npm//typescript", ], )
{ "end_byte": 250, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/reflection/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/reflection/index.ts_0_641
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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/host'; export {typeNodeToValueExpr, entityNameToValue} from './src/type_to_value'; export { T...
{ "end_byte": 641, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/reflection/index.ts" }
angular/packages/compiler-cli/src/ngtsc/reflection/test/ts_host_spec.ts_0_9041
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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": 9041, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/reflection/test/ts_host_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/reflection/test/ts_host_spec.ts_9047_18248
describe('getImportOfIdentifier()', () => { it('should resolve a direct import', () => { const {program} = makeProgram([ {name: _('/node_modules/absolute/index.ts'), contents: 'export class Target {}'}, { name: _('/entry.ts'), contents: ` import {Tar...
{ "end_byte": 18248, "start_byte": 9047, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/reflection/test/ts_host_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/reflection/test/ts_host_spec.ts_18254_23125
describe('getMembersOfClass()', () => { it('should get string literal members of class', () => { const {program} = makeProgram([ { name: _('/entry.ts'), contents: ` class Foo { 'string-literal-property-member' = 'my value'; } ...
{ "end_byte": 23125, "start_byte": 18254, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/reflection/test/ts_host_spec.ts" }
angular/packages/compiler-cli/src/ngtsc/reflection/test/BUILD.bazel_0_665
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": 665, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/reflection/test/BUILD.bazel" }
angular/packages/compiler-cli/src/ngtsc/reflection/src/util.ts_0_1567
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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, ClassMemberAccessLevel} from './host'; export function isNa...
{ "end_byte": 1567, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/reflection/src/util.ts" }
angular/packages/compiler-cli/src/ngtsc/reflection/src/typescript.ts_0_762
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 { AmbientImport, ClassDeclaration, ClassMember, ClassMemberAccessLevel,...
{ "end_byte": 762, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/reflection/src/typescript.ts" }
angular/packages/compiler-cli/src/ngtsc/reflection/src/typescript.ts_763_9491
{ constructor( protected checker: ts.TypeChecker, private readonly isLocalCompilation = false, ) {} getDecoratorsOfDeclaration(declaration: DeclarationNode): Decorator[] | null { const decorators = ts.canHaveDecorators(declaration) ? ts.getDecorators(declaration) : undefined; return ...
{ "end_byte": 9491, "start_byte": 763, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/reflection/src/typescript.ts" }
angular/packages/compiler-cli/src/ngtsc/reflection/src/typescript.ts_9495_18354
protected getDirectImportOfIdentifier(id: ts.Identifier): Import | null { const symbol = this.checker.getSymbolAtLocation(id); if ( symbol === undefined || symbol.declarations === undefined || symbol.declarations.length !== 1 ) { return null; } const decl = symbol.declarati...
{ "end_byte": 18354, "start_byte": 9495, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/reflection/src/typescript.ts" }
angular/packages/compiler-cli/src/ngtsc/reflection/src/typescript.ts_18356_26682
export function reflectTypeEntityToDeclaration( type: ts.EntityName, checker: ts.TypeChecker, ): {node: ts.Declaration; from: string | null} { let realSymbol = checker.getSymbolAtLocation(type); if (realSymbol === undefined) { throw new Error(`Cannot resolve type entity ${type.getText()} to symbol`); } ...
{ "end_byte": 26682, "start_byte": 18356, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/reflection/src/typescript.ts" }
angular/packages/compiler-cli/src/ngtsc/reflection/src/typescript.ts_26684_28037
/** * Compute the name by which the `decl` was exported, not imported. * If no such declaration can be found (e.g. it is a namespace import) * then fallback to the `originalId`. */ function getExportedName(decl: ts.Declaration, originalId: ts.Identifier): string { return ts.isImportSpecifier(decl) ? (decl.pro...
{ "end_byte": 28037, "start_byte": 26684, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/reflection/src/typescript.ts" }
angular/packages/compiler-cli/src/ngtsc/reflection/src/host.ts_0_7927
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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'; /** * Metadata extracted from an instance of a decorator on another declaration. */ ...
{ "end_byte": 7927, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/reflection/src/host.ts" }
angular/packages/compiler-cli/src/ngtsc/reflection/src/host.ts_7928_15192
export const enum ValueUnavailableKind { /** * No type node was available. */ MISSING_TYPE, /** * The type does not have a value declaration, e.g. an interface. */ NO_VALUE_DECLARATION, /** * The type is imported using a type-only imports, so it is not suitable to be used in a * value-posi...
{ "end_byte": 15192, "start_byte": 7928, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/reflection/src/host.ts" }
angular/packages/compiler-cli/src/ngtsc/reflection/src/host.ts_15193_23146
export interface ReflectionHost { /** * Examine a declaration (for example, of a class or function) and return metadata about any * decorators present on the declaration. * * @param declaration a TypeScript `ts.Declaration` node representing the class or function over * which to reflect. For example, i...
{ "end_byte": 23146, "start_byte": 15193, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/reflection/src/host.ts" }
angular/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.ts_0_8230
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 { TypeValueReference, TypeValueReferenceKind, UnavailableTypeValueReferen...
{ "end_byte": 8230, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.ts" }
angular/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.ts_8232_11593
/** * Resolve a `TypeReference` node to the `ts.Symbol`s for both its declaration and its local source. * * In the event that the `TypeReference` refers to a locally declared symbol, these will be the * same. If the `TypeReference` refers to an imported symbol, then `decl` will be the fully resolved * `ts.Symbol` ...
{ "end_byte": 11593, "start_byte": 8232, "url": "https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.ts" }
angular/packages/misc/angular-in-memory-web-api/CHANGELOG.md_0_6693
# "angular-in-memory-web-api" versions >This in-memory-web-api exists primarily to support the Angular documentation. It is not supposed to emulate every possible real world web API and is not intended for production use. > >Most importantly, it is ***always experimental***. We will make breaking changes and we won't ...
{ "end_byte": 6693, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/CHANGELOG.md" }
angular/packages/misc/angular-in-memory-web-api/CHANGELOG.md_6693_13482
2017-09-07) **Theme: Support `HttpClient` and add tests**. See PR #130. The 0.4.0 release was a major overhaul of this library. You don't have to change your existing application _code_ if your app uses this library without customizations. But this release's **breaking changes** affect developers who used the custom...
{ "end_byte": 13482, "start_byte": 6693, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/CHANGELOG.md" }
angular/packages/misc/angular-in-memory-web-api/CHANGELOG.md_13482_16912
18) * Restore delay option, issue #53. <a id="0.1.7"></a> ## 0.1.7 (2016-10-12) * Angular 2.1.x support. <a id="0.1.6"></a> ## 0.1.6 (2016-10-09) * Do not add delay to observable if delay value === 0 (issue #47) * Can override `parseUrl` method in your db service class (issue #46, #35) * README.md explains `parseUrl`...
{ "end_byte": 16912, "start_byte": 13482, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/CHANGELOG.md" }
angular/packages/misc/angular-in-memory-web-api/README.md_0_6352
# Angular in-memory-web-api An in-memory web api for Angular demos and tests that emulates CRUD operations over a RESTy API. It intercepts Angular `Http` and `HttpClient` requests that would otherwise go to the remote server and redirects them to an in-memory data store that you control. See [Austin McDaniel's artic...
{ "end_byte": 6352, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/README.md" }
angular/packages/misc/angular-in-memory-web-api/README.md_6352_15010
# Advanced Features Some features are not readily apparent in the basic usage described above. ## Configuration arguments The `InMemoryBackendConfigArgs` defines a set of options. Add them as the second `forRoot` argument: ```ts InMemoryWebApiModule.forRoot(InMemHeroService, { delay: 500 }), ``` **Read the `InMemo...
{ "end_byte": 15010, "start_byte": 6352, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/README.md" }
angular/packages/misc/angular-in-memory-web-api/BUILD.bazel_0_612
load("//tools:defaults.bzl", "ng_module", "ng_package") package(default_visibility = ["//visibility:public"]) ng_module( name = "angular-in-memory-web-api", package_name = "angular-in-memory-web-api", srcs = glob( [ "*.ts", "src/**/*.ts", ], ), module_name =...
{ "end_byte": 612, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/BUILD.bazel" }
angular/packages/misc/angular-in-memory-web-api/index.ts_0_481
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // This file is not used to build this module. It is only used during editing // by the TypeScript language service ...
{ "end_byte": 481, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/index.ts" }
angular/packages/misc/angular-in-memory-web-api/public_api.ts_0_321
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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/in-memory-web-api'; // This file only reexports content of the `src` folder. Keep it that way....
{ "end_byte": 321, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/public_api.ts" }
angular/packages/misc/angular-in-memory-web-api/test/http-client-backend-service_spec.ts_0_1128
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 'jasmine-ajax'; import { FetchBackend, HTTP_INTERCEPTORS, HttpBackend, HttpClient, HttpClientModul...
{ "end_byte": 1128, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/test/http-client-backend-service_spec.ts" }
angular/packages/misc/angular-in-memory-web-api/test/http-client-backend-service_spec.ts_1130_8835
describe('HttpClient Backend Service', () => { const delay = 1; // some minimal simulated latency delay describe('raw Angular HttpClient', () => { let http: HttpClient; beforeEach(() => { TestBed.configureTestingModule({ imports: [ HttpClientModule, HttpClientInMemoryWebA...
{ "end_byte": 8835, "start_byte": 1130, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/test/http-client-backend-service_spec.ts" }
angular/packages/misc/angular-in-memory-web-api/test/http-client-backend-service_spec.ts_8839_16546
describe('raw Angular HttpClient w/ override service', () => { let http: HttpClient; beforeEach(() => { TestBed.configureTestingModule({ imports: [ HttpClientModule, HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataOverrideService, {delay}), ], }); http...
{ "end_byte": 16546, "start_byte": 8839, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/test/http-client-backend-service_spec.ts" }
angular/packages/misc/angular-in-memory-web-api/test/http-client-backend-service_spec.ts_16550_23413
describe('HttpClient interceptor', () => { let http: HttpClient; let interceptors: HttpInterceptor[]; let httpBackend: HttpClientBackendService; /** * Test interceptor adds a request header and a response header */ @Injectable() class TestHeaderInterceptor implements HttpInterceptor {...
{ "end_byte": 23413, "start_byte": 16550, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/test/http-client-backend-service_spec.ts" }
angular/packages/misc/angular-in-memory-web-api/test/BUILD.bazel_0_617
load("//tools:defaults.bzl", "karma_web_test_suite", "ts_library") ts_library( name = "test_lib", testonly = True, srcs = glob(["**/*.ts"]), # Visible to //:saucelabs_unit_tests_poc target visibility = ["//:__pkg__"], deps = [ "//packages/common", "//packages/common/http", ...
{ "end_byte": 617, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/test/BUILD.bazel" }
angular/packages/misc/angular-in-memory-web-api/test/fixtures/hero-service.ts_0_672
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {Observable} from 'rxjs'; import {Hero} from './hero'; export abstract class HeroService { heroesUrl = 'ap...
{ "end_byte": 672, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/test/fixtures/hero-service.ts" }
angular/packages/misc/angular-in-memory-web-api/test/fixtures/hero.ts_0_346
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 class Hero { constructor( public id = 0, public name = '', ) {} clone() { return new Hero(t...
{ "end_byte": 346, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/test/fixtures/hero.ts" }
angular/packages/misc/angular-in-memory-web-api/test/fixtures/hero-in-mem-data-override-service.ts_0_3395
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * This is an example of a Hero-oriented InMemoryDbService with method overrides. */ import {Injectable} from '...
{ "end_byte": 3395, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/test/fixtures/hero-in-mem-data-override-service.ts" }
angular/packages/misc/angular-in-memory-web-api/test/fixtures/hero-in-mem-data-service.ts_0_2322
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * This is an example of a Hero-oriented InMemoryDbService. * * For demonstration purposes, it can return the ...
{ "end_byte": 2322, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/test/fixtures/hero-in-mem-data-service.ts" }
angular/packages/misc/angular-in-memory-web-api/test/fixtures/http-client-hero-service.ts_0_2495
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http'; import {Injectable} from '@angular/core'; ...
{ "end_byte": 2495, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/test/fixtures/http-client-hero-service.ts" }
angular/packages/misc/angular-in-memory-web-api/src/in-memory-web-api-module.ts_0_2352
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {XhrFactory} from '@angular/common'; import {HttpBackend} from '@angular/common/http'; import {ModuleWithProv...
{ "end_byte": 2352, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/src/in-memory-web-api-module.ts" }
angular/packages/misc/angular-in-memory-web-api/src/in-memory-web-api.ts_0_453
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 './backend-service'; export * from './http-status-codes'; export * from './http-client-backend-service...
{ "end_byte": 453, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/src/in-memory-web-api.ts" }
angular/packages/misc/angular-in-memory-web-api/src/http-client-backend-service.ts_0_3457
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {XhrFactory} from '@angular/common'; import { HttpBackend, HttpEvent, HttpHeaders, HttpParams, Http...
{ "end_byte": 3457, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/src/http-client-backend-service.ts" }
angular/packages/misc/angular-in-memory-web-api/src/http-client-in-memory-web-api-module.ts_0_2734
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 {XhrFactory} from '@angular/common'; import {HttpBackend} from '@angular/common/http'; import {ModuleWithProv...
{ "end_byte": 2734, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/misc/angular-in-memory-web-api/src/http-client-in-memory-web-api-module.ts" }