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 usage of StatementTag to fit with Truffle's expectations #67

Merged
merged 3 commits into from Dec 1, 2016

Conversation

smarr
Copy link
Owner

@smarr smarr commented Dec 1, 2016

Before this change, all expressions were tagged as statements, while they should not be tagged as such. The tagging causes problems with stepping strategies.

Statements are meant to be only the directly contained elements of method bodies or blocks, etc. So, essentially all sequences of expressions from the Newspeak grammar. Especially nested expressions are not tagged as statements anymore.

This required a few small extensions in Truffle to be able to have breakpoints on things that are not statements.

The main goal is to make stepping in the debugger more 'usual'. Especially necessary for the VS code debugger.

The semantics of StatementTag for the debugger requires that only classic statements are tagged. Otherwise, the stepping semantics are incorrect. Thus, expressions, nested in statements should not be tagged as statements.

Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
@smarr smarr added the enhancement Improves the implementation with something noteworthy label Dec 1, 2016
Necessary after changing the tagging of statements.

Signed-off-by: Stefan Marr <git@stefan-marr.de>
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.7%) to 78.401% when pulling a6eb62e on fix-statement-tags into ac34115 on master.

@smarr smarr merged commit 495da76 into master Dec 1, 2016
@smarr smarr deleted the fix-statement-tags branch December 1, 2016 12:31
@smarr smarr added this to the v0.1.0 milestone Mar 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves the implementation with something noteworthy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants