Skip to content

Conversation

@kchadha
Copy link
Contributor

@kchadha kchadha commented Jul 4, 2018

Resolves

Allows creating local variables.
Towards resolving #1278

Proposed Changes

Allows creating local variables. Adds variable to appropriate target based on a new isLocal flag from a var_create event.

Global vars now check for conflict against all target local variables instead of just the currently selected one.

Test Coverage

Manual testing.

Related PRs

This PR should be merged second.

This PR is related to the following PRs:

scratchfoundation/scratch-blocks#1621
scratchfoundation/scratch-gui#2548

@paulkaplan
Copy link
Contributor

Can you update this to include serializing scope to xml?

Copy link
Contributor

@paulkaplan paulkaplan left a comment

Choose a reason for hiding this comment

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

LG. Are there any existing tests for the var_create etc. events? If so we should probably add to them, if not then ...

@paulkaplan paulkaplan assigned kchadha and unassigned paulkaplan Jul 6, 2018
@kchadha kchadha merged commit 6c118cf into scratchfoundation:develop Jul 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants