-
Notifications
You must be signed in to change notification settings - Fork 6
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
get the body of a block? #16
Labels
Comments
Here's another case that seems related. I expected this snippet:
When executed against this code:
Gives this output: When this is the output I expected to get: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Say we had the following TypeScript:
It would be nice to be able to easily select the interior arrow function.
A few things that might make this easy to do:
body
(Block
) of an elementbody
operation.get(selection, n)
, which would give thenth
element ofselection
. But it would be nice if it was generous in it's interpretation of the "listness" of the selection. E.g. if it's an array, the nth element but if it's a function it's the nth parameter. I'm not sure about this.While we're at it, it would be nice to support getting the value of an object this way as well. E.g. if
n
was a string, andselection
was an object, then you get the value of keyn
.The text was updated successfully, but these errors were encountered: