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

Dead code in @at-root query parsing #1861

Closed
connorskees opened this issue Dec 29, 2022 · 0 comments · Fixed by #1864
Closed

Dead code in @at-root query parsing #1861

connorskees opened this issue Dec 29, 2022 · 0 comments · Fixed by #1864

Comments

@connorskees
Copy link
Contributor

Interpolation _atRootQuery() {
if (scanner.peekChar() == $hash) {
var interpolation = singleInterpolation();
return Interpolation([interpolation], interpolation.span);
}

This branch can never be true, as this function is only called if the below condition is true:

if (scanner.peekChar() == $lparen) {
var query = _atRootQuery();

@nex3 nex3 mentioned this issue Jan 4, 2023
nex3 added a commit that referenced this issue Jan 4, 2023
@nex3 nex3 closed this as completed in #1864 Jan 4, 2023
nex3 added a commit that referenced this issue Jan 4, 2023
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 a pull request may close this issue.

1 participant