Repository navigation
refactor(compiler): some small compiler refactorings - #43129
Closed
petebacondarwin wants to merge 7 commits into
Closed
petebacondarwin wants to merge 7 commits into
petebacondarwin wants to merge 7 commits into
Conversation
This import is not used in the file, so can be removed.
The compliance tests can check source-map segments against expectations encoded into the expectation files. Previously, the encoding of the expected segment was only delimited by whitespace, but this made it difficult to identify segments that started or ended with whitespace. Now these segment expectations are wrapped in double-quotes which makes it easier to read and understand the expectation files.
This commit removes 9 cycles in the dependency graph of the compiler code.
This function is general purpose and by moving it into the `chars.ts` file along with similar helpers, it can be reused in the lexer, for instance.
This is a simple tidy up commit to move to the more specific `===` comparison operator in the HTML lexer/parser.
… interpolations Such interpolations turned up during internal testing at Google, so this commit adds a test to prevent regressions.
…butes This tests a scenario that was failing in an internal project.
petebacondarwin
requested review from
AndrewKushnir
and removed request for
JoostK
August 12, 2021 10:50
JoostK
approved these changes
Aug 12, 2021
Contributor
Contributor
Contributor
|
@petebacondarwin FYI presubmits went well + I also verified that there are no changes in the extracted message IDs for the app that was affected previously by #42062. |
AndrewKushnir
removed their request for review
August 16, 2021 19:48
Contributor
|
Note to Caretaker: since this is a part of the PR that was reverted earlier (due to g3 issues), please sync this PR into g3 as a separate change to minimize the risks and simplify the rollback if needed. |
dylhunn
pushed a commit
that referenced
this pull request
Aug 16, 2021
This import is not used in the file, so can be removed. PR Close #43129
dylhunn
pushed a commit
that referenced
this pull request
Aug 16, 2021
…ts (#43129) The compliance tests can check source-map segments against expectations encoded into the expectation files. Previously, the encoding of the expected segment was only delimited by whitespace, but this made it difficult to identify segments that started or ended with whitespace. Now these segment expectations are wrapped in double-quotes which makes it easier to read and understand the expectation files. PR Close #43129
dylhunn
pushed a commit
that referenced
this pull request
Aug 16, 2021
This commit removes 9 cycles in the dependency graph of the compiler code. PR Close #43129
dylhunn
pushed a commit
that referenced
this pull request
Aug 16, 2021
dylhunn
pushed a commit
that referenced
this pull request
Aug 16, 2021
This is a simple tidy up commit to move to the more specific `===` comparison operator in the HTML lexer/parser. PR Close #43129
dylhunn
pushed a commit
that referenced
this pull request
Aug 16, 2021
…ts (#43129) The compliance tests can check source-map segments against expectations encoded into the expectation files. Previously, the encoding of the expected segment was only delimited by whitespace, but this made it difficult to identify segments that started or ended with whitespace. Now these segment expectations are wrapped in double-quotes which makes it easier to read and understand the expectation files. PR Close #43129
dylhunn
pushed a commit
that referenced
this pull request
Aug 16, 2021
This commit removes 9 cycles in the dependency graph of the compiler code. PR Close #43129
dylhunn
pushed a commit
that referenced
this pull request
Aug 16, 2021
dylhunn
pushed a commit
that referenced
this pull request
Aug 16, 2021
This is a simple tidy up commit to move to the more specific `===` comparison operator in the HTML lexer/parser. PR Close #43129
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
These commits were extracted from the reverted #42062 PR since they do not change any behaviour.
This PR let's us land those commits now, and will make the reworking of #42062 simpler.