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

capturing definition wrapper #8

Open
rksm opened this issue Nov 7, 2016 · 0 comments
Open

capturing definition wrapper #8

rksm opened this issue Nov 7, 2016 · 0 comments

Comments

@rksm
Copy link
Member

rksm commented Nov 7, 2016

When using a definition wrapping function via lively.ast.capturing.rewriteToCaptureTopLevelVariables(..., {declarationWrapper: astForDeclFunc}) then simple assignments are correctly wrapped:

i = i+1 becomes _rec.i = _rec._define('i', 'assignment', _rec.i + 1, _rec);

However, expressions like i++ or i+=1 aren't correctly identified as modifications and not wrapped.

Fix that!

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

No branches or pull requests

1 participant