Skip to content

Miscellaneous compiler/core refactorings - #41040

Closed
petebacondarwin wants to merge 8 commits into
angular:masterfrom
petebacondarwin:compiler-refactorings
Closed

petebacondarwin wants to merge 8 commits into
angular:masterfrom
petebacondarwin:compiler-refactorings

Conversation

@petebacondarwin

Copy link
Copy Markdown
Contributor

See commits...

@google-cla google-cla Bot added the cla: yes label Mar 1, 2021
@petebacondarwin petebacondarwin added area: compiler Issues related to `ngc`, Angular's template compiler area: core Issues related to the framework runtime refactoring Issue that involves refactoring or code-cleanup state: WIP target: patch This PR is targeted for the next patch release labels Mar 1, 2021
@ngbot ngbot Bot modified the milestone: Backlog Mar 1, 2021
@petebacondarwin
petebacondarwin force-pushed the compiler-refactorings branch 4 times, most recently from cc3c89e to 1ac20ce Compare March 2, 2021 11:45
@petebacondarwin petebacondarwin added action: review The PR is still awaiting reviews from at least one requested reviewer and removed state: WIP labels Mar 2, 2021
@petebacondarwin
petebacondarwin marked this pull request as ready for review March 2, 2021 12:06
@pullapprove
pullapprove Bot requested a review from AndrewKushnir March 2, 2021 12:06
@petebacondarwin
petebacondarwin requested review from JoostK, alxhub and mhevery and removed request for AndrewKushnir March 2, 2021 12:06
* The set of schemas that declare elements to be allowed in the component's template.
*/
schemas?: SchemaMetadata[] | null;
}): never {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Most of the changes in this file are just whitespace indentation.

@JoostK JoostK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Type in the last commit:

Previously, ɵɵgetFactoryOf() was "privately" published from
@angular/core since in the passed -> past

Comment thread packages/compiler/src/aot/compiler.ts Resolved
Comment thread packages/compiler/src/aot/compiler.ts Resolved
@petebacondarwin
petebacondarwin force-pushed the compiler-refactorings branch from c454157 to 19c04f6 Compare March 2, 2021 20:53
@petebacondarwin petebacondarwin added action: merge The PR is ready for merge by the caretaker action: presubmit The PR is in need of a google3 presubmit labels Mar 3, 2021
@petebacondarwin
petebacondarwin requested a review from JoostK March 3, 2021 07:26
These constants were created in a very early phase of Ivy development.
They have never been used in the framework, no the build-optimizer tool.
@petebacondarwin
petebacondarwin force-pushed the compiler-refactorings branch from 19c04f6 to 58c692c Compare March 3, 2021 11:52
@AndrewKushnir

Copy link
Copy Markdown
Contributor

Presubmit.

@mhevery mhevery removed action: presubmit The PR is in need of a google3 presubmit action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 3, 2021

@mhevery mhevery left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

reviewed-for: global-approvers

@zarend zarend added action: presubmit The PR is in need of a google3 presubmit and removed action: merge The PR is ready for merge by the caretaker labels Mar 3, 2021
@AndrewKushnir AndrewKushnir added action: merge The PR is ready for merge by the caretaker and removed action: presubmit The PR is in need of a google3 presubmit labels Mar 3, 2021
@petebacondarwin
petebacondarwin removed the request for review from alxhub March 3, 2021 19:29
AndrewKushnir pushed a commit that referenced this pull request Mar 4, 2021
The `accessExportScope()` function is not used anymore.

PR Close #41040
AndrewKushnir pushed a commit that referenced this pull request Mar 4, 2021
…iated code (#41040)

This method does not appear to be used in the project.
This commit removes it and code that it exclusively
depended upon, or depended upon it.

PR Close #41040
AndrewKushnir pushed a commit that referenced this pull request Mar 4, 2021
This function is never actually generated directly so it can be removed
from the context passed to the JIT compiler.

PR Close #41040
AndrewKushnir pushed a commit that referenced this pull request Mar 4, 2021
Previously, `ɵɵgetFactoryOf()` was "privately" published from
`@angular/core` since in the past it was assumed that this
might be an instruction generated by the compiler.

This is not currently the case, so this commit removes it from
the private exports and renames it to indicate that it is a local
helper function.

PR Close #41040
AndrewKushnir pushed a commit that referenced this pull request Mar 4, 2021
…1040)

These constants were created in a very early phase of Ivy development.
They have never been used in the framework, no the build-optimizer tool.

PR Close #41040
AndrewKushnir pushed a commit that referenced this pull request Mar 4, 2021
…ies (#41040)

Before `unknown` was available, the `never` type was used to discourage
application developers from using "private" properties. The `unknown` type
is much better suited for this.

PR Close #41040
AndrewKushnir pushed a commit that referenced this pull request Mar 4, 2021
The `accessExportScope()` function is not used anymore.

PR Close #41040
AndrewKushnir pushed a commit that referenced this pull request Mar 4, 2021
…iated code (#41040)

This method does not appear to be used in the project.
This commit removes it and code that it exclusively
depended upon, or depended upon it.

PR Close #41040
AndrewKushnir pushed a commit that referenced this pull request Mar 4, 2021
This function is never actually generated directly so it can be removed
from the context passed to the JIT compiler.

PR Close #41040
AndrewKushnir pushed a commit that referenced this pull request Mar 4, 2021
Previously, `ɵɵgetFactoryOf()` was "privately" published from
`@angular/core` since in the past it was assumed that this
might be an instruction generated by the compiler.

This is not currently the case, so this commit removes it from
the private exports and renames it to indicate that it is a local
helper function.

PR Close #41040
AndrewKushnir pushed a commit that referenced this pull request Mar 4, 2021
…1040)

These constants were created in a very early phase of Ivy development.
They have never been used in the framework, no the build-optimizer tool.

PR Close #41040
@petebacondarwin
petebacondarwin deleted the compiler-refactorings branch March 4, 2021 20:57
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Apr 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: compiler Issues related to `ngc`, Angular's template compiler area: core Issues related to the framework runtime cla: yes refactoring Issue that involves refactoring or code-cleanup target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants