source: trip-planner-front/node_modules/@angular/compiler-cli/ngcc/src/host/delegating_host.d.ts@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 2.6 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8/// <amd-module name="@angular/compiler-cli/ngcc/src/host/delegating_host" />
9import * as ts from 'typescript';
10import { ClassDeclaration, ClassMember, CtorParameter, Declaration, DeclarationNode, Decorator, FunctionDefinition, Import, ReflectionHost } from '../../../src/ngtsc/reflection';
11import { NgccClassSymbol, NgccReflectionHost, SwitchableVariableDeclaration } from './ngcc_host';
12/**
13 * A reflection host implementation that delegates reflector queries depending on whether they
14 * reflect on declaration files (for dependent libraries) or source files within the entry-point
15 * that is being compiled. The first type of queries are handled by the regular TypeScript
16 * reflection host, whereas the other queries are handled by an `NgccReflectionHost` that is
17 * specific to the entry-point's format.
18 */
19export declare class DelegatingReflectionHost implements NgccReflectionHost {
20 private tsHost;
21 private ngccHost;
22 constructor(tsHost: ReflectionHost, ngccHost: NgccReflectionHost);
23 getConstructorParameters(clazz: ClassDeclaration): CtorParameter[] | null;
24 getDeclarationOfIdentifier(id: ts.Identifier): Declaration | null;
25 getDecoratorsOfDeclaration(declaration: DeclarationNode): Decorator[] | null;
26 getDefinitionOfFunction(fn: ts.Node): FunctionDefinition | null;
27 getDtsDeclaration(declaration: DeclarationNode): ts.Declaration | null;
28 getExportsOfModule(module: ts.Node): Map<string, Declaration> | null;
29 getGenericArityOfClass(clazz: ClassDeclaration): number | null;
30 getImportOfIdentifier(id: ts.Identifier): Import | null;
31 getInternalNameOfClass(clazz: ClassDeclaration): ts.Identifier;
32 getAdjacentNameOfClass(clazz: ClassDeclaration): ts.Identifier;
33 getMembersOfClass(clazz: ClassDeclaration): ClassMember[];
34 getVariableValue(declaration: ts.VariableDeclaration): ts.Expression | null;
35 hasBaseClass(clazz: ClassDeclaration): boolean;
36 getBaseClassExpression(clazz: ClassDeclaration): ts.Expression | null;
37 isClass(node: ts.Node): node is ClassDeclaration;
38 findClassSymbols(sourceFile: ts.SourceFile): NgccClassSymbol[];
39 getClassSymbol(node: ts.Node): NgccClassSymbol | undefined;
40 getDecoratorsOfSymbol(symbol: NgccClassSymbol): Decorator[] | null;
41 getSwitchableDeclarations(module: ts.Node): SwitchableVariableDeclaration[];
42 getEndOfClass(classSymbol: NgccClassSymbol): ts.Node;
43 detectKnownDeclaration<T extends Declaration>(decl: T): T;
44 isStaticallyExported(decl: ts.Node): boolean;
45}
Note: See TracBrowser for help on using the repository browser.