Skip to content

[TASK] Use SelectorComponent and Combinator in Selector::parse()#1471

Merged
oliverklee merged 1 commit intomainfrom
task/selector-parts
Feb 5, 2026
Merged

[TASK] Use SelectorComponent and Combinator in Selector::parse()#1471
oliverklee merged 1 commit intomainfrom
task/selector-parts

Conversation

@JakeQZ
Copy link
Collaborator

@JakeQZ JakeQZ commented Jan 23, 2026

Ultimately Selector will be represented by instances of these classes rather than a string.

This change is a stepping-stone towards that goal, to use the parsing functionality of those classes, but for now just converting the parsed result to a single string for internal representation.

Part of #1325.

@JakeQZ JakeQZ self-assigned this Jan 23, 2026
@JakeQZ JakeQZ added the refactor For PRs that refactor code without changing functionality label Jan 23, 2026
@JakeQZ JakeQZ marked this pull request as draft January 23, 2026 01:21
@coveralls
Copy link

coveralls commented Jan 23, 2026

Coverage Status

coverage: 72.562% (-0.4%) from 72.97%
when pulling 24aa508 on task/selector-parts
into 2f99028 on main.

JakeQZ added a commit that referenced this pull request Jan 23, 2026
Instead have the comments array passed by reference to be appended to.
This avoids various methods having to do an `array_merge`, and knowing if any
whitespace was consumed will be needed for #1471.
JakeQZ added a commit that referenced this pull request Jan 23, 2026
Instead have the comments array passed by reference to be appended to.
This avoids various methods having to do an `array_merge`, and knowing if any
whitespace was consumed will be needed for #1471.
JakeQZ added a commit that referenced this pull request Jan 23, 2026
Instead, have the comments array passed by reference to be appended to.
This avoids various methods having to do an `array_merge`.  Also, knowing if
any whitespace was consumed will be needed for #1471.
JakeQZ added a commit that referenced this pull request Jan 24, 2026
Instead, have the comments array passed by reference to be appended to.
This avoids various methods having to do an `array_merge`.  Also, knowing if
any whitespace was consumed will be needed for #1471.
JakeQZ added a commit that referenced this pull request Jan 24, 2026
Instead, have the comments array passed by reference to be appended to.
This avoids various methods having to do an `array_merge`.  Also, knowing if
any whitespace was consumed will be needed for #1471.
JakeQZ added a commit that referenced this pull request Jan 24, 2026
Instead, have the comments array passed by reference to be appended to.
This avoids various methods having to do an `array_merge`.  Also, knowing if
any whitespace was consumed will be needed for #1471.
@JakeQZ JakeQZ force-pushed the task/selector-parts branch 4 times, most recently from 30ded22 to a17903b Compare January 24, 2026 19:04
oliverklee pushed a commit that referenced this pull request Jan 24, 2026
Instead, have the comments array passed by reference to be appended to.
This avoids various methods having to do an `array_merge`.  Also, knowing if
any whitespace was consumed will be needed for #1471.
@JakeQZ JakeQZ force-pushed the task/selector-parts branch 3 times, most recently from ac7799c to ae72fe6 Compare January 25, 2026 23:11
@JakeQZ JakeQZ changed the title [TASK] Add SelectorPart interface and classes [TASK] Add SelectorComponetn interface and classes Jan 25, 2026
@JakeQZ JakeQZ changed the title [TASK] Add SelectorComponetn interface and classes [TASK] Add SelectorComponent interface and classes Jan 25, 2026
@JakeQZ JakeQZ force-pushed the task/selector-parts branch 2 times, most recently from a93a1be to d9a996e Compare January 25, 2026 23:47
@JakeQZ JakeQZ force-pushed the task/selector-parts branch 3 times, most recently from 1bde1f8 to 7a6b49f Compare February 5, 2026 00:07
@JakeQZ JakeQZ changed the title [TASK] Add SelectorComponent interface and classes [TASK] Use SelectorComponent and Combinator in Selector::parse() Feb 5, 2026
@JakeQZ JakeQZ force-pushed the task/selector-parts branch from 7a6b49f to 2645682 Compare February 5, 2026 00:35
Ultimately `Selector` will be represented by instances of these classes rather
than a string.

This change is a stepping-stone towards that goal, to use the parsing
functionality of those classes, but for now just converting the parsed result
to a single string for internal representation.

Part of #1325.
@JakeQZ JakeQZ force-pushed the task/selector-parts branch from 4e2da6f to 24aa508 Compare February 5, 2026 01:41
Copy link
Collaborator

@oliverklee oliverklee left a comment

Choose a reason for hiding this comment

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

LGTM.

@oliverklee oliverklee merged commit 6f398f8 into main Feb 5, 2026
24 checks passed
@oliverklee oliverklee deleted the task/selector-parts branch February 5, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor For PRs that refactor code without changing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants