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

feat: Add a generator for all fields on a block. #8667

Merged
merged 3 commits into from
Jan 6, 2025

Conversation

gonfunko
Copy link
Contributor

@gonfunko gonfunko commented Nov 21, 2024

The basics

The details

Resolves

Fixes #5071

Proposed Changes

This PR adds a getFields() generator to Block that returns a generator that may be used to iterate through all the fields on the block. It also updates core to use this method in preference to nested for loops.

@gonfunko gonfunko requested a review from a team as a code owner November 21, 2024 18:57
@gonfunko gonfunko requested a review from cpcallen November 21, 2024 18:57
@github-actions github-actions bot added the PR: feature Adds a feature label Nov 21, 2024
core/block.ts Show resolved Hide resolved
@github-actions github-actions bot added PR: feature Adds a feature and removed PR: feature Adds a feature labels Jan 6, 2025
@gonfunko gonfunko merged commit 956f272 into google:rc/v12.0.0 Jan 6, 2025
7 checks passed
@gonfunko gonfunko deleted the field-generator branch January 6, 2025 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: feature Adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants