1 | /// <amd-module name="@angular/compiler-cli/linker/src/file_linker/partial_linkers/partial_directive_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, ParseSourceSpan, R3DeclareDirectiveMetadata, R3DirectiveMetadata, 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 { Range } from '../../ast/ast_host';
|
---|
13 | import { AstObject } from '../../ast/ast_value';
|
---|
14 | import { PartialLinker } from './partial_linker';
|
---|
15 | /**
|
---|
16 | * A `PartialLinker` that is designed to process `ɵɵngDeclareDirective()` call expressions.
|
---|
17 | */
|
---|
18 | export declare class PartialDirectiveLinkerVersion1<TExpression> implements PartialLinker<TExpression> {
|
---|
19 | private sourceUrl;
|
---|
20 | private code;
|
---|
21 | constructor(sourceUrl: AbsoluteFsPath, code: string);
|
---|
22 | linkPartialDeclaration(constantPool: ConstantPool, metaObj: AstObject<R3PartialDeclaration, TExpression>): o.Expression;
|
---|
23 | }
|
---|
24 | /**
|
---|
25 | * Derives the `R3DirectiveMetadata` structure from the AST object.
|
---|
26 | */
|
---|
27 | export declare function toR3DirectiveMeta<TExpression>(metaObj: AstObject<R3DeclareDirectiveMetadata, TExpression>, code: string, sourceUrl: AbsoluteFsPath): R3DirectiveMetadata;
|
---|
28 | export declare function createSourceSpan(range: Range, code: string, sourceUrl: string): ParseSourceSpan;
|
---|