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

Miscellaneous compiler/core refactorings #41040

Closed

Conversation

petebacondarwin
Copy link
Member

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 alxhub, JoostK and mhevery and removed request for AndrewKushnir March 2, 2021 12:06
@@ -288,67 +288,65 @@ export function ɵɵdefineComponent<T>(componentDefinition: {
* The set of schemas that declare elements to be allowed in the component's template.
*/
schemas?: SchemaMetadata[] | null;
}): never {
Copy link
Member 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.

Copy link
Member

@JoostK JoostK left a comment

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

packages/compiler/src/aot/compiler.ts Show resolved Hide resolved
packages/compiler/src/aot/compiler.ts Show resolved Hide resolved
packages/core/test/render3/jit_environment_spec.ts Outdated Show resolved Hide resolved
@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
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.
@AndrewKushnir
Copy link
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
Copy link
Contributor

@mhevery mhevery left a comment

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

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.

None yet

5 participants