pxt icon indicating copy to clipboard operation
pxt copied to clipboard

Improve sig snippet to display alias statement

Open sae220 opened this issue 1 year ago • 1 comments

Before @ganicke 's PR (#10078), alias statements have same reference (or help doc) as original statements have.

old_remove_at

Thanks to his PR, _removeAtStatement (alias for removeAt) has an original page, but it is not altogether good, I guess. For blocks users, removeAt and _removeAtStatement looks different statements, but they are essentially the same. And of course, JavaScript/Python users shouldn't use _removeAtStatement.

old_remove_at_statement

So, I suggest to improve sig snippet to display alias statement. new_remove_at

And anyway _popStatement, _shiftStatement and _unshiftStatement (as _removeAtStatement) should have thier reference.

@ganicke @abchatra

sae220 avatar Sep 30 '24 14:09 sae220

@ganicke is this good to merge?

abchatra avatar Oct 14 '24 23:10 abchatra