Skip to content

refactor(compiler-cli): update type checker symbols to include more i… - #38844

Closed
atscott wants to merge 3 commits into
angular:masterfrom
atscott:ttcgetsymbolupdates
Closed

atscott wants to merge 3 commits into
angular:masterfrom
atscott:ttcgetsymbolupdates

Conversation

@atscott

@atscott atscott commented Sep 14, 2020

Copy link
Copy Markdown
Contributor

…nformation

This commit updates the symbols in the TemplateTypeCheck API and methods
for retrieving them:

  • Include isComponent and selector for directives so callers can determine which
    attributes on an element map to the matched directives.
  • Add a new TextAttributeSymbol and return this when requesting a symbol for a TextAttribute.
  • When requesting a symbol for PropertyWrite and MethodCall, use the
    nameSpan to retrieve symbols.
  • Add fix to retrieve generic directives attached to elements/templates.

@atscott atscott added 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 area: compiler Issues related to `ngc`, Angular's template compiler labels Sep 14, 2020
@atscott
atscott requested review from JoostK and alxhub September 14, 2020 20:06
@ngbot ngbot Bot added this to the needsTriage milestone Sep 14, 2020
@atscott
atscott force-pushed the ttcgetsymbolupdates branch 2 times, most recently from 3c58bdc to 734d139 Compare September 14, 2020 23:49
@atscott
atscott requested a review from kyliau September 15, 2020 17:46
@atscott
atscott requested a review from JoostK September 23, 2020 22:30
@atscott
atscott force-pushed the ttcgetsymbolupdates branch from 076f7f4 to 9b07975 Compare September 24, 2020 22:18
…nformation

This commit updates the symbols in the TemplateTypeCheck API and methods
for retrieving them:

* Include `isComponent` and `selector` for directives so callers can determine which
attributes on an element map to the matched directives.
* Add a new `TextAttributeSymbol` and return this when requesting a symbol for a `TextAttribute`.
* When requesting a symbol for `PropertyWrite` and `MethodCall`, use the
`nameSpan` to retrieve symbols.
* Add fix to retrieve generic directives attached to elements/templates.
@atscott
atscott force-pushed the ttcgetsymbolupdates branch from 9b07975 to bf5dd86 Compare September 24, 2020 22:48
@atscott
atscott requested a review from JoostK September 25, 2020 18:08
Comment on lines 148 to 149

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.

May be interesting to have a symbol analogous to DomBindingSymbol, but for events. Could be a follow up change.

@atscott
atscott force-pushed the ttcgetsymbolupdates branch from bf5dd86 to 58d0eb7 Compare September 25, 2020 18:18
@atscott atscott self-assigned this Sep 25, 2020
@atscott atscott added action: presubmit The PR is in need of a google3 presubmit and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Sep 25, 2020
@atscott

atscott commented Sep 25, 2020

Copy link
Copy Markdown
Contributor Author

presubmit

@atscott
atscott removed request for alxhub and kyliau September 25, 2020 19:44
@atscott atscott 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 Sep 25, 2020
@alxhub alxhub closed this in c74917a Sep 28, 2020
@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 Oct 29, 2020
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 cla: yes target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants