attribute-selectors.d.ts 1.1 KB

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