UNPKG

@angular/cdk

Version:

Angular Material Component Development Kit

27 lines (26 loc) 1.08 kB
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /// <amd-module name="@angular/cdk/schematics/ng-update/upgrade-rules/element-selectors-rule" /> import * as ts from 'typescript'; import { ResolvedResource } from '../../update-tool/component-resource-collector'; import { MigrationRule } from '../../update-tool/migration-rule'; import { RuleUpgradeData } from '../upgrade-data'; /** * Rule that walks through every string literal, template and stylesheet in order * to migrate outdated element selectors to the new one. */ export declare class ElementSelectorsRule extends MigrationRule<RuleUpgradeData> { /** Change data that upgrades to the specified target version. */ data: any; ruleEnabled: any; visitNode(node: ts.Node): void; visitTemplate(template: ResolvedResource): void; visitStylesheet(stylesheet: ResolvedResource): void; private _visitStringLiteralLike; private _replaceSelector; }