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 method for subclasses of FieldVariable to get the default type. #8453

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

gonfunko
Copy link
Contributor

@gonfunko gonfunko commented Aug 2, 2024

This PR adds a protected getDefaultType() method to FieldVariable. Scratch needs this to add menu items to the dropdown dependent on the type (list, regular variable, broadcast message) and it's conceivable that other subclasses may need this information as well, which is currently inaccessible to them.

@gonfunko gonfunko requested a review from BeksOmega August 2, 2024 17:50
@gonfunko gonfunko requested a review from a team as a code owner August 2, 2024 17:50
@github-actions github-actions bot added the PR: feature Adds a feature label Aug 2, 2024
@gonfunko gonfunko merged commit 6887940 into google:rc/v12.0.0 Aug 2, 2024
11 checks passed
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.

2 participants