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

Expose cursor method in napi #615

Merged

Conversation

AntonyBlakey
Copy link
Contributor

No description provided.

@AntonyBlakey AntonyBlakey requested a review from a team as a code owner October 23, 2023 09:17
@changeset-bot
Copy link

changeset-bot bot commented Oct 23, 2023

🦋 Changeset detected

Latest commit: 73ebd6c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@nomicfoundation/slang Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@AntonyBlakey AntonyBlakey requested review from OmarTawfik and removed request for a team October 23, 2023 09:19
@AntonyBlakey AntonyBlakey self-assigned this Oct 23, 2023
@AntonyBlakey AntonyBlakey force-pushed the AntonyBlakey/add-cursor-to-napi branch from e58579e to 3f9332d Compare October 23, 2023 09:22
@OmarTawfik OmarTawfik disabled auto-merge October 23, 2023 12:19
}
export class TokenNode {
get type(): NodeType.Token;
get kind(): TokenKind;
get textLength(): TextIndex;
get text(): string;
get cursor(): Cursor;
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest adding a unit test that checks/asserts the cursor results in TypeScript.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I want to do that with the Iter work. But I will add a gumby test at least.

@AntonyBlakey AntonyBlakey force-pushed the AntonyBlakey/add-cursor-to-napi branch from 1e8ea50 to 73ebd6c Compare October 23, 2023 12:42
@AntonyBlakey AntonyBlakey added this pull request to the merge queue Oct 23, 2023
Merged via the queue into NomicFoundation:main with commit 06cbbe8 Oct 23, 2023
1 check passed
@AntonyBlakey AntonyBlakey deleted the AntonyBlakey/add-cursor-to-napi branch October 23, 2023 13:22
@github-actions github-actions bot mentioned this pull request Oct 23, 2023
github-merge-queue bot pushed a commit that referenced this pull request Oct 23, 2023
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and publish to npm
yourself or [setup this action to publish
automatically](https://github.com/changesets/action#with-publishing). If
you're not ready to do a release yet, that's fine, whenever you add more
changesets to main, this PR will be updated.


# Releases
## @nomicfoundation/[email protected]

### Patch Changes

- [#615](#615)
[`06cbbe8`](06cbbe8)
Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - `cursor`
method is now exposed in Typescript API

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

2 participants