forked from ember-template-lint/ember-template-recast
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix 586 infinite recursion printing subnodes #1
Closed
courajs
wants to merge
15
commits into
update-attr-quote-type
from
fix-586-infinite-recursion-printing-subnodes
Closed
Fix 586 infinite recursion printing subnodes #1
courajs
wants to merge
15
commits into
update-attr-quote-type
from
fix-586-infinite-recursion-printing-subnodes
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bumps [@glimmer/syntax](https://github.com/glimmerjs/glimmer-vm) from 0.82.0 to 0.83.0. - [Release notes](https://github.com/glimmerjs/glimmer-vm/releases) - [Changelog](https://github.com/glimmerjs/glimmer-vm/blob/master/CHANGELOG.md) - [Commits](glimmerjs/glimmer-vm@v0.82.0...v0.83.0) --- updated-dependencies: - dependency-name: "@glimmer/syntax" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
…ependabot/npm_and_yarn/glimmer/syntax-0.83.0 Bump @glimmer/syntax from 0.82.0 to 0.83.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.1.0 to 8.2.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.1.0...v8.2.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@glimmer/reference](https://github.com/glimmerjs/glimmer-vm/tree/HEAD/packages/@glimmer/reference) from 0.82.0 to 0.83.0. - [Release notes](https://github.com/glimmerjs/glimmer-vm/releases) - [Changelog](https://github.com/glimmerjs/glimmer-vm/blob/master/CHANGELOG.md) - [Commits](https://github.com/glimmerjs/glimmer-vm/commits/v0.83.0/packages/@glimmer/reference) --- updated-dependencies: - dependency-name: "@glimmer/reference" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@glimmer/validator](https://github.com/glimmerjs/glimmer-vm/tree/HEAD/packages/@glimmer/validator) from 0.82.0 to 0.83.0. - [Release notes](https://github.com/glimmerjs/glimmer-vm/releases) - [Changelog](https://github.com/glimmerjs/glimmer-vm/blob/master/CHANGELOG.md) - [Commits](https://github.com/glimmerjs/glimmer-vm/commits/v0.83.0/packages/@glimmer/validator) --- updated-dependencies: - dependency-name: "@glimmer/validator" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…uote-type Allow updating `quoteType` and `isValueless` of AttrNodes, and `quoteType` of StringLiterals
- Single text element inside concat produces an extra pair of quotes
…est-587 Confirm that a single text element inside a concat doesn't produces an extra pair of quotes
- Test proving that when you reuse parts from previous concat statement in new concat statement you will get "Maximum callstack size exceeded"
…verflow - Seems like anything that comes out of `parse()` apart from the whole object will trigger the stack overflow.
Fixes ember-template-lint#586 Previously, calling print on node that came from our parse(), but was not the top-level node, would cause infinite recursion. (It would have NodeInfo, but not a registered parse result). This fixes the infinite loop, by just storing a reference to the top-level parse result in the node info, and using that. Importantly, this successfully preserves formatting for any sub-nodes we did parse ourselves, or any user-created nodes that require custom printing.
courajs
force-pushed
the
fix-586-infinite-recursion-printing-subnodes
branch
from
November 10, 2021 12:22
767302c
to
d9d9f5d
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes ember-template-lint#586