css-selectors-rule.d.ts 985 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. * Rule that walks through every string literal, template and stylesheet in
  14. * order to migrate outdated CSS selectors to the new selector.
  15. */
  16. export declare class CssSelectorsRule extends MigrationRule<RuleUpgradeData> {
  17. /** Change data that upgrades to the 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. }