Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

fix the reported span for expressions #167

Merged
merged 3 commits into from
Jan 31, 2023
Merged

fix the reported span for expressions #167

merged 3 commits into from
Jan 31, 2023

Conversation

devoncarew
Copy link
Contributor

@devoncarew devoncarew commented Jan 28, 2023

Generally it looks like spans are only correct for the start position of a node. For example, for an Expressions node (a list of Expressions), the span would correspond with the first token from the first expression. We'd need to change how the parser worked in order for this library to be useful for something like producing minimal edits of css.

@kevmoo
Copy link
Contributor

kevmoo commented Jan 28, 2023

@leonsenft ?

@devoncarew devoncarew merged commit e6c8308 into main Jan 31, 2023
@devoncarew devoncarew deleted the expression_spans branch January 31, 2023 21:37
mosuem pushed a commit to dart-lang/tools that referenced this pull request Oct 25, 2024
* fix the reported span for expressions

* update changelog
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

fix expression spans
3 participants