Skip to content

BREAKING CHANGE: remove all trivia fields #306

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

Merged
merged 1 commit into from
Apr 18, 2019
Merged

BREAKING CHANGE: remove all trivia fields #306

merged 1 commit into from
Apr 18, 2019

Conversation

saschanaz
Copy link
Member

@saschanaz saschanaz commented Apr 18, 2019

Also generic now always returns string rather than null or an object.

@saschanaz saschanaz requested a review from marcoscaceres April 18, 2019 07:35
@saschanaz saschanaz merged commit 048e3d7 into gh-pages Apr 18, 2019
@saschanaz saschanaz deleted the no-trivia branch April 18, 2019 08:45
saschanaz added a commit that referenced this pull request Apr 24, 2021
This adds write() to eof object so that writer can stop special casing it. The tokeniser now also adds line/index fields to eof token for consistency with other tokens.

This removes `trivia` field from EOF. Theoretically it can be a breaking change, but trivia strings are not intended to be accessed outside of the writer function since #306. So I think it's safe to not mark it as breaking.
@saschanaz saschanaz mentioned this pull request Apr 24, 2021
2 tasks
saschanaz added a commit that referenced this pull request Aug 9, 2021
* refactor: wrap EOF token

This adds write() to eof object so that writer can stop special casing it. The tokeniser now also adds line/index fields to eof token for consistency with other tokens.

This removes `trivia` field from EOF. Theoretically it can be a breaking change, but trivia strings are not intended to be accessed outside of the writer function since #306. So I think it's safe to not mark it as breaking.

* Update token.js

* Update buffersource.json

* Update syntax.js
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