Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: some AnyDuringMigration #6430

Merged
merged 4 commits into from
Sep 15, 2022
Merged

Conversation

rachel-fenichel
Copy link
Collaborator

@rachel-fenichel rachel-fenichel commented Sep 14, 2022

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide
  • I ran npm run format and npm run lint

The details

Resolves

Part of the outstanding AnyDuringMigration issues.

Proposed Changes

Fix some leftover AnyDuringMigrations where no code change was needed.

Behavior Before Change

No change

Behavior After Change

No change

Reason for Changes

Cleanup

Test Coverage

Mocha

@rachel-fenichel rachel-fenichel changed the title Migration fix: some AnyDuringMigration Sep 14, 2022
@rachel-fenichel rachel-fenichel marked this pull request as ready for review September 14, 2022 21:36
@rachel-fenichel rachel-fenichel requested a review from a team as a code owner September 14, 2022 21:36
core/block.ts Outdated
@@ -761,8 +759,6 @@ export class Block implements IASTNodeLocation, IDeletable {
const blocks = [this];
const childBlocks = this.getChildren(ordered);
for (let child, i = 0; child = childBlocks[i]; i++) {
// AnyDuringMigration because: Argument of type 'Block[]' is not
// assignable to parameter of type 'this[]'.
blocks.push(...child.getDescendants(ordered) as AnyDuringMigration);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to remove the cast here as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant to leave the comment in because the cast was not trivially resolved. Fixed.

@rachel-fenichel rachel-fenichel merged commit c2cbed1 into google:develop Sep 15, 2022
@rachel-fenichel rachel-fenichel deleted the migration branch September 15, 2022 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants