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

fix(ivy): restore @fileoverview annotations location for Closure #28723

Conversation

AndrewKushnir
Copy link
Contributor

Prior to this change, the @fileoverview annotations added by users in source files or by tsickle during compilation might have change a location due to the fact that Ngtsc may prepend extra imports or constants. As a result, the output file is considered invalid by Closure (misplaced @fileoverview annotation). In order to resolve the problem we relocate @fileoverview annotation if we detect that its host node shifted.

This PR resolves FW-1006.

PR Type

What kind of change does this PR introduce?

  • Bugfix

Does this PR introduce a breaking change?

  • Yes
  • No

@AndrewKushnir AndrewKushnir added type: bug/fix action: review The PR is still awaiting reviews from at least one requested reviewer target: major This PR is targeted for the next major release comp: ivy labels Feb 14, 2019
@AndrewKushnir AndrewKushnir requested a review from a team as a code owner February 14, 2019 02:19
@ngbot ngbot bot added this to the needsTriage milestone Feb 14, 2019
@AndrewKushnir AndrewKushnir force-pushed the FW-1006_tsickle_fileoverview_location branch from 3ea9c88 to c803f77 Compare February 14, 2019 19:16
@AndrewKushnir AndrewKushnir force-pushed the FW-1006_tsickle_fileoverview_location branch from 8e4510a to b8d5600 Compare February 20, 2019 23:08
@AndrewKushnir
Copy link
Contributor Author

AndrewKushnir commented Feb 20, 2019

Presubmit

@AndrewKushnir AndrewKushnir removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Feb 20, 2019
Prior to this change, the @fileoverview annotations added by users in source files or by tsickle during compilation might have change a location due to the fact that Ngtsc may prepend extra imports or constants. As a result, the output file is considered invalid by Closure (misplaced @fileoverview annotation). In order to resolve the problem we relocate @fileoverview annotation if we detect that its host node shifted.
@AndrewKushnir AndrewKushnir force-pushed the FW-1006_tsickle_fileoverview_location branch from b8d5600 to 9c3c938 Compare February 21, 2019 01:23
@AndrewKushnir AndrewKushnir added the action: merge The PR is ready for merge by the caretaker label Feb 21, 2019
@IgorMinar IgorMinar closed this in be121bb Feb 21, 2019
@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 Sep 14, 2019
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 cla: yes target: major This PR is targeted for the next major release type: bug/fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants