attribute-selectors-rule.d.ts 1008 B

12345678910111213141516171819202122232425
  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. import * as ts from 'typescript';
  9. import { ResolvedResource } from '../../update-tool/component-resource-collector';
  10. import { MigrationRule } from '../../update-tool/migration-rule';
  11. import { RuleUpgradeData } from '../upgrade-data';
  12. /**
  13. * Migration rule that walks through every string literal, template and stylesheet
  14. * in order to switch deprecated attribute selectors to the updated selector.
  15. */
  16. export declare class AttributeSelectorsRule extends MigrationRule<RuleUpgradeData> {
  17. /** Required upgrade changes for specified target version. */
  18. data: any;
  19. ruleEnabled: any;
  20. visitNode(node: ts.Node): void;
  21. visitTemplate(template: ResolvedResource): void;
  22. visitStylesheet(stylesheet: ResolvedResource): void;
  23. private _visitStringLiteralLike;
  24. private _replaceSelector;
  25. }