angular-docs-cn/packages/language-service/ivy
Andrew Scott 459af57a31 refactor(compiler-cli): Adjust generated TCB when checkTypeOfPipes is false (#40523)
When `checkTypeOfPipes` is set to `false`, our TCB currently generates
the a statement like the following when pipes appear in the template:
`(_pipe1 as any).transform(args)`

This did enable us to get _some_ information from the Language Service
about pipes in this case because we still had access to the pipe
instance. However, because it is immediately cast to `any`, we cannot
get type information about the transform access. That means actions like "go to
definition", "find references", "quick info", etc. will return
incomplete information or fail altogether.

Instead, this commit changes the TCB to generate `(_pipe1.transform as any)(args)`.
This gives us the ability to get complete information for the LS
operations listed above.

PR Close #40523
2021-05-06 17:54:14 -04:00
..
test refactor(compiler-cli): Adjust generated TCB when checkTypeOfPipes is false (#40523) 2021-05-06 17:54:14 -04:00
testing feat(language-service): Enable renaming of pipes (#40523) 2021-05-06 17:54:13 -04:00
BUILD.bazel fix(compiler-cli): ensure the compiler tracks `ts.Program`s correctly (#41291) 2021-04-08 10:20:38 -07:00
adapters.ts fix(language-service): resolve to the pre-compiled style when compiled css url is provided (#41538) 2021-04-14 09:15:00 -07:00
attribute_completions.ts fix(language-service): Only provide Angular property completions in templates (#41278) 2021-04-01 11:37:30 -07:00
compiler_factory.ts refactor(compiler-cli): replace the `IncrementalDriver` with a new design (#41475) 2021-04-13 13:05:35 -07:00
completions.ts fix(compiler-cli): autocomplete literal types in templates. (#41456) (#41645) 2021-04-16 08:54:27 -07:00
definitions.ts fix(compiler-cli): ensure the compiler tracks `ts.Program`s correctly (#41291) 2021-04-08 10:20:38 -07:00
display_parts.ts feat(language-service): complete attributes on elements (#40032) 2020-12-14 12:08:41 -08:00
language_service.ts feat(language-service): Enable renaming of pipes (#40523) 2021-05-06 17:54:13 -04:00
quick_info.ts fix(compiler-cli): ensure the compiler tracks `ts.Program`s correctly (#41291) 2021-04-08 10:20:38 -07:00
references_and_rename.ts feat(language-service): Enable renaming of pipes (#40523) 2021-05-06 17:54:13 -04:00
references_and_rename_utils.ts feat(language-service): Enable renaming of pipes (#40523) 2021-05-06 17:54:13 -04:00
signature_help.ts feat(language-service): implement signature help (#41581) 2021-04-13 12:39:17 -07:00
template_target.ts refactor(language-service): specifically identify empty argument positions (#41581) 2021-04-13 12:39:17 -07:00
ts_plugin.ts feat(language-service): implement signature help (#41581) 2021-04-13 12:39:17 -07:00
ts_utils.ts feat(language-service): Enable renaming of pipes (#40523) 2021-05-06 17:54:13 -04:00
utils.ts fix(language-service): bound attributes should not break directive matching (#41597) 2021-04-13 18:23:49 -07:00