1 | /// <amd-module name="@angular/compiler-cli/linker/src/file_linker/partial_linkers/partial_component_linker_1" />
|
---|
2 | /**
|
---|
3 | * @license
|
---|
4 | * Copyright Google LLC All Rights Reserved.
|
---|
5 | *
|
---|
6 | * Use of this source code is governed by an MIT-style license that can be
|
---|
7 | * found in the LICENSE file at https://angular.io/license
|
---|
8 | */
|
---|
9 | import { ConstantPool, R3PartialDeclaration } from '@angular/compiler';
|
---|
10 | import * as o from '@angular/compiler/src/output/output_ast';
|
---|
11 | import { AbsoluteFsPath } from '../../../../src/ngtsc/file_system';
|
---|
12 | import { AstObject } from '../../ast/ast_value';
|
---|
13 | import { GetSourceFileFn } from '../get_source_file';
|
---|
14 | import { PartialLinker } from './partial_linker';
|
---|
15 | /**
|
---|
16 | * A `PartialLinker` that is designed to process `ɵɵngDeclareComponent()` call expressions.
|
---|
17 | */
|
---|
18 | export declare class PartialComponentLinkerVersion1<TStatement, TExpression> implements PartialLinker<TExpression> {
|
---|
19 | private readonly getSourceFile;
|
---|
20 | private sourceUrl;
|
---|
21 | private code;
|
---|
22 | constructor(getSourceFile: GetSourceFileFn, sourceUrl: AbsoluteFsPath, code: string);
|
---|
23 | linkPartialDeclaration(constantPool: ConstantPool, metaObj: AstObject<R3PartialDeclaration, TExpression>): o.Expression;
|
---|
24 | /**
|
---|
25 | * This function derives the `R3ComponentMetadata` from the provided AST object.
|
---|
26 | */
|
---|
27 | private toR3ComponentMeta;
|
---|
28 | /**
|
---|
29 | * Update the range to remove the start and end chars, which should be quotes around the template.
|
---|
30 | */
|
---|
31 | private getTemplateInfo;
|
---|
32 | private tryExternalTemplate;
|
---|
33 | private templateFromPartialCode;
|
---|
34 | }
|
---|