source: trip-planner-front/node_modules/@angular/core/schematics/migrations/move-document/document_import_visitor.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: 1.1 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/core/schematics/migrations/move-document/document_import_visitor" />
9import * as ts from 'typescript';
10export declare const COMMON_IMPORT = "@angular/common";
11export declare const PLATFORM_BROWSER_IMPORT = "@angular/platform-browser";
12export declare const DOCUMENT_TOKEN_NAME = "DOCUMENT";
13/** This contains the metadata necessary to move items from one import to another */
14export interface ResolvedDocumentImport {
15 platformBrowserImport: ts.NamedImports | null;
16 commonImport: ts.NamedImports | null;
17 documentElement: ts.ImportSpecifier | null;
18}
19/** Visitor that can be used to find a set of imports in a TypeScript file. */
20export declare class DocumentImportVisitor {
21 typeChecker: ts.TypeChecker;
22 importsMap: Map<ts.SourceFile, ResolvedDocumentImport>;
23 constructor(typeChecker: ts.TypeChecker);
24 visitNode(node: ts.Node): void;
25 private visitNamedImport;
26 private getDocumentElement;
27}
Note: See TracBrowser for help on using the repository browser.