Last change
on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.2 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/src/transformers/lower_expressions" />
|
---|
9 | import * as ts from 'typescript';
|
---|
10 | import { MetadataCache, MetadataTransformer, ValueTransform } from './metadata_cache';
|
---|
11 | export interface LoweringRequest {
|
---|
12 | kind: ts.SyntaxKind;
|
---|
13 | location: number;
|
---|
14 | end: number;
|
---|
15 | name: string;
|
---|
16 | }
|
---|
17 | export declare type RequestLocationMap = Map<number, LoweringRequest>;
|
---|
18 | export declare function getExpressionLoweringTransformFactory(requestsMap: RequestsMap, program: ts.Program): (context: ts.TransformationContext) => (sourceFile: ts.SourceFile) => ts.SourceFile;
|
---|
19 | export interface RequestsMap {
|
---|
20 | getRequests(sourceFile: ts.SourceFile): RequestLocationMap;
|
---|
21 | }
|
---|
22 | export declare class LowerMetadataTransform implements RequestsMap, MetadataTransformer {
|
---|
23 | private cache;
|
---|
24 | private requests;
|
---|
25 | private lowerableFieldNames;
|
---|
26 | constructor(lowerableFieldNames: string[]);
|
---|
27 | getRequests(sourceFile: ts.SourceFile): RequestLocationMap;
|
---|
28 | connect(cache: MetadataCache): void;
|
---|
29 | start(sourceFile: ts.SourceFile): ValueTransform | undefined;
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.